Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #60470

Re: Cracking hashes with Python

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.tele.dk!feed118.news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.027
X-Spam-Evidence '*H*': 0.95; '*S*': 0.00; 'subject:Python': 0.06; 'binary': 0.07; 'string': 0.09; 'function,': 0.09; 'latter': 0.09; 'string;': 0.09; 'assume': 0.14; 'code?': 0.16; 'easier.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'hashes': 0.16; 'help;': 0.16; 'hex': 0.16; 'honesty': 0.16; 'length,': 0.16; 'md5': 0.16; 'means.': 0.16; 'words.': 0.16; 'wrote:': 0.18; 'bit': 0.19; 'this?': 0.23; '(by': 0.24; 'certainly': 0.24; 'password.': 0.24; 'string,': 0.24; 'text,': 0.24; '(or': 0.24; "i've": 0.25; 'script': 0.25; 'posts': 0.26; 'right.': 0.26; 'post': 0.26; 'certain': 0.27; 'header:In-Reply- To:1': 0.27; 'idea': 0.28; 'am,': 0.29; "doesn't": 0.30; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; 'code': 0.31; 'that.': 0.31; 'embed': 0.31; 'go.': 0.31; 'anyone': 0.31; 'guess': 0.33; 'subject:with': 0.35; 'basic': 0.35; "can't": 0.35; 'something': 0.35; 'form.': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'google': 0.35; 'there': 0.35; 'thanks': 0.36; "i'll": 0.36; 'possible': 0.36; 'list': 0.37; 'email addr:python.org': 0.37; 'project': 0.37; 'being': 0.38; 'nov': 0.38; 'to:addr:python- list': 0.38; 'anything': 0.39; 'does': 0.39; 'to:addr:python.org': 0.39; 'mailing': 0.39; 'how': 0.40; 'even': 0.60; 'read': 0.60; 'tell': 0.60; 'simply': 0.61; "you're": 0.61; 'you.': 0.62; 'back': 0.62; 'information': 0.63; 'more': 0.64; 'school': 0.64; 'email name:python-list': 0.65; 'worth': 0.66; 'here': 0.66; 'news': 0.67; '26,': 0.68; 'results': 0.69; 'groups.': 0.74; '10:32': 0.84; 'thing).': 0.84; 'together,': 0.84; 'ugly,': 0.84; '2013': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=o8+N1LdGMUMgYCcWdweA9k2JgdKHuiDNUJBlCTKAW3E=; b=rRhRJrJ6EvDcHNrrqHp/7UvDg44bFccHZObUtvWMeTr7qMDyEfu3IHeVPdF8ythOYB fk4+e1Db2d/Mk2XQiXH4nojHQu9o9KfkX7kAQ6PZjtza0maCnTgHU9cWZXK8fYSC2w5s C04vSVtW2SxoFSv6WJAnVfDBf+kQQ6oc3SYjHPhsMixZKtY62Q9B9++qFJZ4TSnYHSVu j2Q6epAsESHi8/qus4YtovxBSGy4tegptCNfYdkWy2UdMXwM0Nmr325bBWfAHYbCwr5g /f4PS9chBeyAx1jrdg0l7Cl19EE5ndmvarE99QOfbRJ1ptkxmg7iEej6HO6Tbs2CZlb1 Qg9A==
MIME-Version 1.0
X-Received by 10.66.132.69 with SMTP id os5mr10178826pab.114.1385423272430; Mon, 25 Nov 2013 15:47:52 -0800 (PST)
In-Reply-To <0a4ae59b-fff8-40dd-b264-823ea596ad82@googlegroups.com>
References <0a4ae59b-fff8-40dd-b264-823ea596ad82@googlegroups.com>
Date Tue, 26 Nov 2013 10:47:52 +1100
Subject Re: Cracking hashes with Python
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.3207.1385423276.18130.python-list@python.org> (permalink)
Lines 43
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1385423276 news.xs4all.nl 15905 [2001:888:2000:d::a6]:56921
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:60470

Show key headers only | View raw


On Tue, Nov 26, 2013 at 10:32 AM, TheRandomPast <wishingforsam@gmail.com> wrote:
> I have a school project to do where I've to download MD5 Hashes from a particular website and write a code that will crack them. Does anyone know where I'll find out more information on how to do this? There's only 4 hashes that I need to do so it doesn't have to be a large script just needs to be able to download the hashes from the website. Can anyone help me out?

Do you actually need to download them from that web site, or can you
simply embed them into your code? The latter would be far easier.

I'm going to assume that you don't need to do anything more
complicated than brute-force these, and I'll also assume that they're
unsalted hashes.

With a cryptographic hash function, you take text, put it into the
function, and get back a number (or a hex or binary string, which
comes to the same thing). You can't go from the number to the string;
however, you can generate a large number of strings to see if any of
them results in the same number. You can take "large number" all the
way, and generate every possible string of a certain length, or you
can go through a dictionary and generate words. Once you find
something that matches, you have a plausible guess that this is the
password.

There's a basic idea of what "cracking" a hash means. Put a bit of
code together, see how you go. If you get stuck, post your code and
how you're stuck, and we'll try to help; but we won't simply write
your code for you. (By the way, thanks for being up-front about it
being a school project. The honesty is appreciated, even though we
would almost certainly be able to tell even if you didn't. :) )

One last thing: Please get off Google Groups. It makes your posts look
ugly, which makes you look bad, and that's (probably!) unfair. Use a
better news client, or subscribe to the mailing list
python-list@python.org and read and post through that. There are a
number of regulars here who simply trash all Google Groups posts
unread, because they're just not worth reading - switching clients
will help you be heard, and will mean you don't annoy people with
form. Of course, if you want to annoy us with substance, that's your
God-given right. :)

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Cracking hashes with Python TheRandomPast <wishingforsam@gmail.com> - 2013-11-25 15:32 -0800
  Re: Cracking hashes with Python Chris Angelico <rosuav@gmail.com> - 2013-11-26 10:47 +1100
    Re: Cracking hashes with Python TheRandomPast <wishingforsam@gmail.com> - 2013-11-25 16:01 -0800
      Re: Cracking hashes with Python Chris Angelico <rosuav@gmail.com> - 2013-11-26 11:19 +1100
  Re: Cracking hashes with Python Steven D'Aprano <steve@pearwood.info> - 2013-11-26 02:55 +0000
    RE: Cracking hashes with Python Frank Cui <ycui@outlook.com> - 2013-11-25 23:46 -0300
      Re: Cracking hashes with Python TheRandomPast <wishingforsam@gmail.com> - 2013-11-26 02:30 -0800
        Re: Cracking hashes with Python Chris Angelico <rosuav@gmail.com> - 2013-11-26 21:39 +1100
        Re: Cracking hashes with Python "TheRandomPast ." <wishingforsam@gmail.com> - 2013-11-26 11:46 +0000
        Re: Cracking hashes with Python Chris Angelico <rosuav@gmail.com> - 2013-11-26 23:48 +1100
        Re: Cracking hashes with Python Robert Kern <robert.kern@gmail.com> - 2013-11-26 13:00 +0000
        Re: Cracking hashes with Python "TheRandomPast ." <wishingforsam@gmail.com> - 2013-11-26 14:18 +0000
          Re: Cracking hashes with Python Denis McMahon <denismfmcmahon@gmail.com> - 2013-11-26 18:33 +0000
        Re: Cracking hashes with Python Chris Angelico <rosuav@gmail.com> - 2013-11-27 01:46 +1100
        Re: Cracking hashes with Python "TheRandomPast ." <wishingforsam@gmail.com> - 2013-11-26 15:13 +0000
        Re: Cracking hashes with Python Denis McMahon <denismfmcmahon@gmail.com> - 2013-11-26 18:17 +0000
          Re: Cracking hashes with Python "TheRandomPast ." <wishingforsam@gmail.com> - 2013-11-26 23:06 +0000
          Re: Cracking hashes with Python Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-11-27 01:04 +0000
          Re: Cracking hashes with Python Chris Angelico <rosuav@gmail.com> - 2013-11-27 13:28 +1100
          Re: Cracking hashes with Python Tim Delaney <timothy.c.delaney@gmail.com> - 2013-11-27 13:55 +1100
          Re: Cracking hashes with Python Chris Angelico <rosuav@gmail.com> - 2013-11-27 13:58 +1100
          Re: Cracking hashes with Python "TheRandomPast ." <wishingforsam@gmail.com> - 2013-11-27 12:40 +0000
            Re: Cracking hashes with Python Denis McMahon <denismfmcmahon@gmail.com> - 2013-11-27 21:18 +0000
          Re: Cracking hashes with Python Chris Angelico <rosuav@gmail.com> - 2013-11-28 00:27 +1100
          Re: Cracking hashes with Python MRAB <python@mrabarnett.plus.com> - 2013-11-27 17:44 +0000

csiph-web