Author Topic: hashcheker.py [MD5]  (Read 3353 times)

0 Members and 1 Guest are viewing this topic.

Offline kiddies

  • NULL
  • Posts: 3
  • Cookies: 1
    • View Profile
hashcheker.py [MD5]
« on: May 03, 2011, 08:39:00 pm »
Code: [Select]
#!/usr/bin/python
#This tool just for crack your md5 password
#This application not stable in regex
#
#programmer : kiddies A.k.A peneter
#email : kecoak2004@yahoo.com
#blog : http://devilz-kiddies.blogspot.com
#
#thanks : mywisdom, gunslinger, jimmyromanticdevil, 5ynl0rd(my masta) and you
#community : devilzc0de, anti-jasakom, jasakom, echo, codecall, leetcoder and all


import urllib2, urllib, re, time
import sys, os

if sys.platform == 'linux-1386' or sys.platform == 'linux2' or sys.platform == 'darwin':
SysCls = 'clear'
else:
SysCls = 'cls'

os.system(SysCls)
print '''
######################################################################
# DDDDD iii lll 00000 dd #
# DD DD eee vv vv lll zzzzz cccc 00 00 dd eee #
# DD DD ee e vv vv iii lll zz cc 00 00 dddddd ee e #
# DD DD eeeee vvv iii lll zz cc 00 00 dd dd eeeee #
# DDDDDD eeeee v iii lll zzzzz ccccc 00000 dddddd eeeee #
# #
# #
# This Tool for cracking MD5 password #
# Programmer : kiddies A.k.A peneter Devilzc0de BlackHat Edition #
######################################################################\n\n'''
hash_crack = raw_input('input your hash : ')
url = 'http://hashchecker.de/hash.cgi?action=check&wert=1&hash=' + hash_crack
params = {'hash':hash_crack}
enc = urllib.urlencode(params)
opening = urllib2.urlopen(url, enc)

page = opening.read()

result = re.search(r'', page)

print result.group()

opening.close()

there is error in regex...
« Last Edit: May 04, 2011, 11:08:36 pm by ande »

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: hashcheker.py [MD5]
« Reply #1 on: May 26, 2011, 11:35:21 am »
you don't need to "compile" it, just run it with python.

Linux: ./hashchecker.py OR python hashchecker.py
Winblowz: python hashchecker.py

and it doesn't work, as you said, though I don't think it is a regex error:

Code: [Select]
kulverstukas@kulverstukas-desktop:~$ ./hashchecker.py
  File "./hashchecker.py", line 17
    SysCls = 'clear'
         ^
IndentationError: expected an indented block

Offline I_Learning_I

  • Knight
  • **
  • Posts: 267
  • Cookies: 26
  • Nor black or white, not even grey. What hat am I?
    • View Profile
    • Hacking F0r Fr33
Re: hashcheker.py [MD5]
« Reply #2 on: May 26, 2011, 11:57:17 am »
nice info..

but i cant compile it?could you show me the step?
Python isn't compiled (usually), you save it as .py and then you do:
python ./file.py
Python is a scripting language that will use the source-code and then pass it to an interpreter that will execute the source-code, it's not like C/C++ where you can compile it, make a .exe and runs everywhere, Python, although it can be compiled, it's usually distributed the source-code and you pass it to the interpreter.

EDIT:Warning - while you were typing a new reply has been posted. You may wish to review your post.
C'mon Kulverstukas >.<

Also may I ask what's your OS? Looks like an IF problem.
« Last Edit: May 26, 2011, 11:58:28 am by I_Learning_I »
Thanks for reading,
I_Learning_I

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: hashcheker.py [MD5]
« Reply #3 on: May 26, 2011, 02:38:52 pm »
Also may I ask what's your OS? Looks like an IF problem.

Ubuntu 10.04 :)

Offline 10n1z3d

  • Serf
  • *
  • Posts: 42
  • Cookies: 8
    • View Profile
Re: hashcheker.py [MD5]
« Reply #4 on: June 13, 2011, 04:28:42 pm »
Python is a scripting language that will use the source-code and then pass it to an interpreter that will execute the source-code, it's not like C/C++ where you can compile it, make a .exe and runs everywhere, Python, although it can be compiled, it's usually distributed the source-code and you pass it to the interpreter.

Actually python modules are compiled to Python byte-code (.pyc files). The compiled files doesn't run any faster than a normal .py file, but the difference is that the compiled files are loaded much faster.

Now, the reason that the above code doesn't work is that it's missing 4-spaced indentation on lines 17 and 19. This should work fine:

Code: [Select]
#!/usr/bin/python
#This tool just for crack your md5 password
#This application not stable in regex
#
#programmer : kiddies A.k.A peneter
#email : kecoak2004@yahoo.com
#blog : http://devilz-kiddies.blogspot.com
#
#thanks : mywisdom, gunslinger, jimmyromanticdevil, 5ynl0rd(my masta) and you
#community : devilzc0de, anti-jasakom, jasakom, echo, codecall, leetcoder and all


import urllib2, urllib, re, time
import sys, os

if sys.platform == 'linux-1386' or sys.platform == 'linux2' or sys.platform == 'darwin':
    SysCls = 'clear'
else:
    SysCls = 'cls'

os.system(SysCls)
print '''
######################################################################
# DDDDD iii lll 00000 dd #
# DD DD eee vv vv lll zzzzz cccc 00 00 dd eee #
# DD DD ee e vv vv iii lll zz cc 00 00 dddddd ee e #
# DD DD eeeee vvv iii lll zz cc 00 00 dd dd eeeee #
# DDDDDD eeeee v iii lll zzzzz ccccc 00000 dddddd eeeee #
# #
# #
# This Tool for cracking MD5 password #
# Programmer : kiddies A.k.A peneter Devilzc0de BlackHat Edition #
######################################################################\n\n'''
hash_crack = raw_input('input your hash : ')
url = 'http://hashchecker.de/hash.cgi?action=check&wert=1&hash=' + hash_crack
params = {'hash':hash_crack}
enc = urllib.urlencode(params)
opening = urllib2.urlopen(url, enc)

page = opening.read()

result = re.search(r'', page)

print result.group()

opening.close()
« Last Edit: June 13, 2011, 04:32:34 pm by 10n1z3d »
Code: [Select]
python -c "print ''.join(chr(x) for x in [int(oct(39)) + 2, 24 * 2, 313 % 203, 0x31, (2 ** 7) - 6, int('051'), (3 << 6) - 92])"