Subversion Repositories freemyipod

Rev

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

Rev 272 Rev 277
Line 33... Line 33...
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>"
-
 
39
  print "  s5l8702-decryptnor <infile> <outfile>"
38
  exit(2)
40
  exit(2)
39
 
41
 
40
 
42
 
41
def parsecommand(argv):
43
def parsecommand(argv):
42
  if len(argv) != 4: usage()
44
  if len(argv) != 4: usage()
Line 51... Line 53...
51
    libipodcrypto.s5l8701cryptfirmwarefile(argv[2], argv[3])
53
    libipodcrypto.s5l8701cryptfirmwarefile(argv[2], argv[3])
52
 
54
 
53
  elif argv[1] == "s5l8701-decryptfirmware":
55
  elif argv[1] == "s5l8701-decryptfirmware":
54
    libipodcrypto.s5l8701decryptfirmwarefile(argv[2], argv[3])
56
    libipodcrypto.s5l8701decryptfirmwarefile(argv[2], argv[3])
55
 
57
 
-
 
58
  elif argv[1] == "s5l8702-cryptnor":
-
 
59
    libipodcrypto.s5l8702cryptnorfile(argv[2], argv[3])
-
 
60
 
-
 
61
  elif argv[1] == "s5l8702-decryptnor":
-
 
62
    libipodcrypto.s5l8702decryptnorfile(argv[2], argv[3])
-
 
63
 
56
  else: usage()
64
  else: usage()
57
 
65
 
58
 
66
 
59
parsecommand(sys.argv)
67
parsecommand(sys.argv)