Files
shellcode/x86_32/Example_Code/crypt_des_tool.py
Daniel Ashton cc0cee84ff init
2016-05-30 09:06:47 +02:00

20 lines
287 B
Python

#!/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