the internet's safety

htcrack_py.txt

htcrack_py.txt
Posted Apr 7, 2007
Authored by d3hydr8 | Site darkcode.ath.cx

htpasswd cracker written in python.

tags | cracker, python
MD5 | e97b2007bfb05168e467e6d5ca5950dd

htcrack_py.txt

Change Mirror Download
#!/usr/bin/python
#Attempts to crack .htpasswd against wordlist
#also cracks FrontPage passwds.
#http://darkcode.ath.cx/
#d3hydr8[at]gmail[dot]com

import crypt, sys

if len(sys.argv) != 3:
print "Usage: ./htcrack.py <password> <wordlist>"
print "ex: ./htcrack.py user:62P1DYLgPe5S6 /home/d3hydr8/wordlist.txt"
sys.exit(1)

pw = sys.argv[1].split(":",1)
try:
words = open(sys.argv[2], "r")
except(IOError):
print "Error: Check your wordlist path\n"
sys.exit(1)
wds = words.readlines()
print "\n-d3hydr8[at]gmail[dot]com htcrack v[1.0]-"
print " - http://darkcode.ath.cx -"
print "\n",len(wds),"words loaded..."
for w in wds:
if crypt.crypt(w[:-1], pw[1][:2]) == pw[1]:
print "\nCracked:",pw[0]+":"+w,"\n"



Comments

RSS Feed Subscribe to this comment feed

No comments yet, be the first!

Login or Register to post a comment

File Archive:

May 2012

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    May 1st
    37 Files
  • 2
    May 2nd
    53 Files
  • 3
    May 3rd
    33 Files
  • 4
    May 4th
    4 Files
  • 5
    May 5th
    10 Files
  • 6
    May 6th
    17 Files
  • 7
    May 7th
    19 Files
  • 8
    May 8th
    36 Files
  • 9
    May 9th
    34 Files
  • 10
    May 10th
    35 Files
  • 11
    May 11th
    20 Files
  • 12
    May 12th
    18 Files
  • 13
    May 13th
    11 Files
  • 14
    May 14th
    27 Files
  • 15
    May 15th
    58 Files
  • 16
    May 16th
    54 Files
  • 17
    May 17th
    25 Files
  • 18
    May 18th
    53 Files
  • 19
    May 19th
    9 Files
  • 20
    May 20th
    15 Files
  • 21
    May 21st
    25 Files
  • 22
    May 22nd
    32 Files
  • 23
    May 23rd
    35 Files
  • 24
    May 24th
    26 Files
  • 25
    May 25th
    25 Files
  • 26
    May 26th
    0 Files
  • 27
    May 27th
    0 Files
  • 28
    May 28th
    0 Files
  • 29
    May 29th
    0 Files
  • 30
    May 30th
    0 Files
  • 31
    May 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2012 Packet Storm. All rights reserved.

close