init
This commit is contained in:
19
x86_32/Example_Code/crypt_des_tool.py
Normal file
19
x86_32/Example_Code/crypt_des_tool.py
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env python2
|
||||
#
|
||||
# crypt des tool for shellcoding lab at hack4
|
||||
# ~dash
|
||||
|
||||
import sys
|
||||
import crypt
|
||||
|
||||
def usage():
|
||||
print "%s <password>" % (sys.argv[0])
|
||||
|
||||
if len(sys.argv)<2:
|
||||
usage()
|
||||
exit()
|
||||
|
||||
password = sys.argv[1]
|
||||
pw = crypt.crypt(password,'AB')
|
||||
print "Password: %s" % pw
|
||||
|
||||
Reference in New Issue
Block a user