Subversion Repositories freemyipod

Rev

Rev 722 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 722 Rev 788
Line 25... Line 25...
25
import sys
25
import sys
26
import libipodcrypto
26
import libipodcrypto
27
 
27
 
28
 
28
 
29
def usage():
29
def usage():
30
  print ""
30
  print("")
31
  print "Please provide a command and (if needed) parameters as command line arguments"
31
  print("Please provide a command and (if needed) parameters as command line arguments")
32
  print ""
32
  print("")
33
  print "Available commands:"
33
  print("Available commands:")
34
  print "  s5l8701-cryptdfu <infile> <outfile>"
34
  print("  s5l8701-cryptdfu <infile> <outfile>")
35
  print "  s5l8701-decryptdfu <infile> <outfile>"
35
  print("  s5l8701-decryptdfu <infile> <outfile>")
36
  print "  s5l8701-cryptfirmware <infile> <outfile>"
36
  print("  s5l8701-cryptfirmware <infile> <outfile>")
37
  print "  s5l8701-decryptfirmware <infile> <outfile>"
37
  print("  s5l8701-decryptfirmware <infile> <outfile>")
38
  print "  s5l8702-cryptnor <infile> <outfile>"
38
  print("  s5l8702-cryptnor <infile> <outfile>")
39
  print "  s5l8702-decryptnor <infile> <outfile>"
39
  print("  s5l8702-decryptnor <infile> <outfile>")
40
  print "  s5l8702-genpwnage <infile> <outfile>"
40
  print("  s5l8702-genpwnage <infile> <outfile>")
41
  print "  s5l8720-genpwnage <infile> <outfile>"
41
  print("  s5l8720-genpwnage <infile> <outfile>")
42
  exit(2)
42
  exit(2)
43
 
43
 
44
 
44
 
45
def parsecommand(argv):
45
def parsecommand(argv):
46
  if len(argv) != 4: usage()
46
  if len(argv) != 4: usage()