annotate contrib/splice3/LINUX/splice3-deshadow.py @ 626:ed8cff39b9a7 draft

added splice3 to resdb/contrib
author d3v11 <d3v11@d3v11.ano>
date Fri, 23 Sep 2011 00:12:08 -0500
parents
children 15bbd88257a6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
626
ed8cff39b9a7 added splice3 to resdb/contrib
d3v11 <d3v11@d3v11.ano>
parents:
diff changeset
1 #!/usr/bin/python2.7
ed8cff39b9a7 added splice3 to resdb/contrib
d3v11 <d3v11@d3v11.ano>
parents:
diff changeset
2 import sys; sys.tracebacklimit = 0
ed8cff39b9a7 added splice3 to resdb/contrib
d3v11 <d3v11@d3v11.ano>
parents:
diff changeset
3 from crypt import crypt
ed8cff39b9a7 added splice3 to resdb/contrib
d3v11 <d3v11@d3v11.ano>
parents:
diff changeset
4 TestHash = crypt(sys.argv[1], sys.argv[2])
ed8cff39b9a7 added splice3 to resdb/contrib
d3v11 <d3v11@d3v11.ano>
parents:
diff changeset
5 HashValue = sys.argv[3]
ed8cff39b9a7 added splice3 to resdb/contrib
d3v11 <d3v11@d3v11.ano>
parents:
diff changeset
6 if TestHash.__contains__(HashValue):
ed8cff39b9a7 added splice3 to resdb/contrib
d3v11 <d3v11@d3v11.ano>
parents:
diff changeset
7 print "SHADOW CRACKED"