annotate contrib/splicex/src/splicex-deshadow.py @ 688:2e33b56d4f0d draft

SpliceX improvements
author resdb <resdb@d3v11-VM.(none)>
date Sun, 23 Oct 2011 08:31:11 -0500
parents
children dc8f88270f6a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
688
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
1 #!PYTHON
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
2 import sys; sys.tracebacklimit = 0
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
3 from crypt import crypt
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
4 TestHash = crypt(sys.argv[1], sys.argv[2])
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
5 HashValue = sys.argv[3]
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
6 if TestHash.__contains__(HashValue):
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
7 print("SHADOW CRACKED")