ute Force or Dictionary. I want an error to be shown if the
> hash is less than or more than 32 characters but at present this
> chklength() doesn't work as I thought it would.
>
> Can anyone point out an obvious error that I am missing?
Yes - you don't need to type in th
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
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
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
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) !=
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
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
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
--
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 checkPasswor
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(passwo
out for this reason every year but nothing ever changes.
ok forget about python for a minute.
write down the steps you need to follow to solve the problem in plain
english.
1) Get the list of hashes from a website
2) Brute force the hashes using a dictionary
But 2 needs a dictionary:
1) Load a
print "cracking hash:", hash
some code goes here ...
print "original string was:", result
Algorithms for cracking md5 hashes is not a python topic, but rather a
cryptography topic. When you find an algorithm to use, then if you have
trouble converting it into
each word you get is
> terminated by exactly a single newline. It'd be clearer to, instead of
> slicing off the last character with the smiley [:-1] (not sure what
> that represents - maybe he has a pen lid sticking out of his mouth?),
> try stripping off whitespace. Strings have a met
le newline. It'd be clearer to, instead of
slicing off the last character with the smiley [:-1] (not sure what
that represents - maybe he has a pen lid sticking out of his mouth?),
try stripping off whitespace. Strings have a method that'll do that
for you.
> if hashes == value:
>
code. I hope it looks better? I'm sorry if it doesn't. I'm
trying to get the hang of posting by email :)
[code] import sys, re, hashlib
def dict_attack():
hashes = raw_input('\nPlease specify hash value: ')
chklength(hashes)
def chklength(hashes):
if len(has
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
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
lue. Am i just being
stupid?
>import sys, re, hashlib
>def chklength(hashes):
> if len(hashes) != 32:
> print '[-] Improper length for md5 hash.'
> sys.exit(1)
>def dict_check():
> md5hashes = raw_input('\nPlease enter the Hash value to be decry
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
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
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
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 th
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
l.python.org/mailman/listinfo/python-list
You can sign up by email, read the emails, respond to emails.
Alternatively, look for a news client for your platform - Mozilla
Thunderbird is a popular option.
Downloading the hashes from the web site depends a bit on how they're
formatted. Do you get
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 anyo
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
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
Hi,
I've been experimenting a little with dictionary attacks against password
hashes.
It turned out that Python is plenty fast for this task, if you use precomputed
hash
databases. I used a few rather large dictionary files (most of the words of the
English
language, and most of the wor
Thanks to all for the feedback. it worked.
--RR
Tim Chase wrote:
> > how do i create a hash of hash similar to perl using dict in python
> > $x{$y}{z}=$z
>
> Pretty much the same as in perl, only minus half the crazy abuses
> of the ASCII character-set.
>
> Okay...well, not quite half the abuses
> how do i create a hash of hash similar to perl using dict in python
> $x{$y}{z}=$z
Pretty much the same as in perl, only minus half the crazy abuses
of the ASCII character-set.
Okay...well, not quite half the abuses in this case...
>>> x = {}
>>> y = 42
>>> z = 'foonting turlingdromes'
>>
In <[EMAIL PROTECTED]>, sfo wrote:
> how do i create a hash of hash similar to perl using dict in python
> $x{$y}{z}=$z
Just put dictionaries as values into a dictionary.
Ciao,
Marc 'BlackJack' Rintsch
--
http://mail.python.org/mailman/listinfo/python-list
sfo wrote:
> how do i create a hash of hash similar to perl using dict in python
> $x{$y}{z}=$z
Haven't done any Perl in a long while (thankfully ;-) ) so I'm not
quite sure on your syntax there, but here's how to do it in Python:
>>> x = {'y': {'z': 'My value'}}
>>> x['y']['z']
'My value'
Much
how do i create a hash of hash similar to perl using dict in python
$x{$y}{z}=$z
thanks.
--RR
--
http://mail.python.org/mailman/listinfo/python-list
Peter Hansen wrote:
Michael McGarry wrote:
Are there hashes in Python?
Define hash. Or look at Python's 'dict' type, or the hash()
function and decide for yourself if that's what you meant.
-Peter
Yes, I guess the dict type is what I am looking for.
Thank you,
Michael
--
ht
Michael McGarry wrote:
Are there hashes in Python?
Define hash. Or look at Python's 'dict' type, or the hash()
function and decide for yourself if that's what you meant.
-Peter
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
Are there hashes in Python?
Michael
--
http://mail.python.org/mailman/listinfo/python-list
36 matches
Mail list logo