Re: Cracking hashes with Python

2013-11-27 Thread Denis McMahon
On Wed, 27 Nov 2013 12:40:41 +, TheRandomPast . wrote: > And dictionary is working, as is the brute force however the issue I > have having is with my chklength() as no matter how many characters I > input it skips the !=32 and goes straight to asking the user to chose > either Brute Force or

Re: Cracking hashes with Python

2013-11-27 Thread MRAB
On 27/11/2013 12:40, TheRandomPast . wrote: Hi, So apparently when I've been staring at code all day and tired my brain doesn't tell my hands to type half of what I want it to. I apologise for my last post. This is my code; import md5 import sys characters=range(48,57)+range(65,90)+range(97,1

Re: Cracking hashes with Python

2013-11-27 Thread Laszlo Nagy
On 2013-11-26 00:58, Marc wrote: Hashes, by definition, are not reversible mathematically. The only way to figure out what they represent is to take plaintext that might be the plaintext based on anything you might know about the original plaintext (which is often nothing) and hash it; then see

Re: Cracking hashes with Python

2013-11-27 Thread Chris Angelico
On Wed, Nov 27, 2013 at 11:40 PM, TheRandomPast . wrote: > And dictionary is working, as is the brute force however the issue I have > having is with my chklength() as no matter how many characters I input it > skips the !=32 and goes straight to asking the user to chose either Brute > Force or Di

Re: Cracking hashes with Python

2013-11-27 Thread TheRandomPast .
Hi, So apparently when I've been staring at code all day and tired my brain doesn't tell my hands to type half of what I want it to. I apologise for my last post. This is my code; import md5 import sys characters=range(48,57)+range(65,90)+range(97,122) def chklength(hash): if len(hash) !=

Re: Cracking hashes with Python

2013-11-26 Thread Chris Angelico
On Wed, Nov 27, 2013 at 1:55 PM, Tim Delaney wrote: > Before I go look it up, I'm guessing that the etymology of "stumped" is > actually coming from the problem of a plough getting stuck on a stump (i.e. > can't progress any further). Not much of an issue anymore since the > invention of the stump

Re: Cracking hashes with Python

2013-11-26 Thread Tim Delaney
On 27 November 2013 13:28, Chris Angelico wrote: > On Wed, Nov 27, 2013 at 12:04 PM, Mark Lawrence > wrote: > > On 26/11/2013 23:06, TheRandomPast . wrote: > >> I'm stumped. > > > > Good to see another cricketer on the list :) > > May I be bowled enough to suggest that "stumped" doesn't necessar

Re: Cracking hashes with Python

2013-11-26 Thread Chris Angelico
On Wed, Nov 27, 2013 at 12:04 PM, Mark Lawrence wrote: > On 26/11/2013 23:06, TheRandomPast . wrote: >> I'm stumped. > > Good to see another cricketer on the list :) May I be bowled enough to suggest that "stumped" doesn't necessarily imply a background in cricket? *dives for cover* ChrisA --

Re: Cracking hashes with Python

2013-11-26 Thread Mark Lawrence
On 26/11/2013 23:06, TheRandomPast . wrote: This is my code import md5 import sys def chklength(hashes): if len(hashes) != 32: print '[-] Improper length for md5 hash.' sys.exit(1) characters=range(48,57)+range(65,90)+range(97,122) def checkPassword(password): #print

Re: Cracking hashes with Python

2013-11-26 Thread TheRandomPast .
This is my code import md5 import sys def chklength(hashes): if len(hashes) != 32: print '[-] Improper length for md5 hash.' sys.exit(1) characters=range(48,57)+range(65,90)+range(97,122) def checkPassword(password): #print password m = md5.new(password) if (m.hexd

Re: Cracking hashes with Python

2013-11-26 Thread Denis McMahon
On Tue, 26 Nov 2013 14:18:33 +, TheRandomPast . wrote: > - Teacher has taught us nothing about MD5. This being the script he > wanted us to write came as a surprise to everyone but complaints about > projects are constantly ignored. This particular teacher is complained > about for this reason

Re: Cracking hashes with Python

2013-11-26 Thread Denis McMahon
On Tue, 26 Nov 2013 02:30:03 -0800, TheRandomPast wrote: >>for value in values: > print value ..^^^ so change this to: crackMD5Hash( value ) >> import hashlib >> def crackMD5Hash(): Nah def crackMD5Hash( hash ): print "cracking hash:", hash

Re: Cracking hashes with Python

2013-11-26 Thread TheRandomPast .
Thanks. I'll take that on board and let you know how I get on. Thanks for all your help. On Tue, Nov 26, 2013 at 2:46 PM, Chris Angelico wrote: > On Wed, Nov 27, 2013 at 1:18 AM, TheRandomPast . > wrote: > > This is my code. I hope it looks better? I'm sorry if it doesn't. I'm > trying > > to

Re: Cracking hashes with Python

2013-11-26 Thread Chris Angelico
On Wed, Nov 27, 2013 at 1:18 AM, TheRandomPast . wrote: > This is my code. I hope it looks better? I'm sorry if it doesn't. I'm trying > to get the hang of posting by email :) There are no BBCode tags here, so [code] doesn't help you at all. Other than that, looks good. Though if you're going to

Re: Cracking hashes with Python

2013-11-26 Thread TheRandomPast .
@RobertKern - Teacher has taught us nothing about MD5. This being the script he wanted us to write came as a surprise to everyone but complaints about projects are constantly ignored. This particular teacher is complained about for this reason every year but nothing ever changes. This is my code

Re: Cracking hashes with Python

2013-11-26 Thread Robert Kern
On 2013-11-26 10:30, TheRandomPast wrote: and I've started the second part, the part to crack them. If anyone could tell me where I'd find more information on this subject and how to crack them that would be great. What resources did your teacher give you? What have you been taught in class

Re: Cracking hashes with Python

2013-11-26 Thread Chris Angelico
On Tue, Nov 26, 2013 at 10:46 PM, TheRandomPast . wrote: > Thanks. From what I've been able to find online I've created a dictionary > file with words and the words I know the hash values to be and I'm trying to > get it to use that however when I run this I get no errors but it doesn't do > anyth

Re: Cracking hashes with Python

2013-11-26 Thread TheRandomPast .
Hi, Thanks. From what I've been able to find online I've created a dictionary file with words and the words I know the hash values to be and I'm trying to get it to use that however when I run this I get no errors but it doesn't do anything, like ask me to input my hash value. Am i just being stup

Re: Cracking hashes with Python

2013-11-26 Thread Chris Angelico
On Tue, Nov 26, 2013 at 9:30 PM, TheRandomPast wrote: > and I've started the second part, the part to crack them. If anyone could > tell me where I'd find more information on this subject and how to crack them > that would be great. As I print them on screen I was thinking I could write a > pro

Re: Cracking hashes with Python

2013-11-26 Thread TheRandomPast
alue. You can see the tool at  > http://www.md5crack.com/home. > > Yatong > > > > From: st...@pearwood.info > > Subject: Re: Cracking hashes with Python > > Date: Tue, 26 Nov 2013 02:55:58 + > > To: pytho...@python.org > > > > On Mon, 25 Nov 2

RE: Cracking hashes with Python

2013-11-25 Thread Frank Cui
e to "crack" or "decrypt" a md5 hash value by searching through a value-hash database to find the most commonly used password under a given hash value. You can see the tool at http://www.md5crack.com/home. Yatong > From: st...@pearwood.info > Subject: Re: Cracking hashes w

Re: Cracking hashes with Python

2013-11-25 Thread Steven D'Aprano
On Mon, 25 Nov 2013 15:32:41 -0800, TheRandomPast wrote: > Hi, > > 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. A school project. Right. Heh. :-) And which website's hashes would this be? > Does anyone > kno

RE: Cracking hashes with Python

2013-11-25 Thread Marc
Hashes, by definition, are not reversible mathematically. The only way to figure out what they represent is to take plaintext that might be the plaintext based on anything you might know about the original plaintext (which is often nothing) and hash it; then see if the hash matches the one you hav

Re: Cracking hashes with Python

2013-11-25 Thread Chris Angelico
On Tue, Nov 26, 2013 at 11:01 AM, TheRandomPast wrote: > Hi, thanks for replying. I don't like google groups layout either I was just > unsure as to what to use. I already have some code on the go I just couldn't > figure out the best way to do what I wanted to do so I thought I'd ask and > see

Re: Cracking hashes with Python

2013-11-25 Thread TheRandomPast
On Monday, 25 November 2013 23:47:52 UTC, Chris Angelico wrote: > On Tue, Nov 26, 2013 at 10:32 AM, TheRandomPast 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 fin

Re: Cracking hashes with Python

2013-11-25 Thread Chris Angelico
On Tue, Nov 26, 2013 at 10:32 AM, TheRandomPast 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 n

Cracking hashes with Python

2013-11-25 Thread TheRandomPast
Hi, 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 nee