X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=client%2Fgoodfet.glitch;h=823b8de85c41d0223f6d923192569e7a4cee8208;hp=69d7b830076415ad4f3d02b8d7fba1dfeca3f0e0;hb=5c2a6eba496141f211f252be1d82d5964b23115b;hpb=b90b77172a80809a4fb1fb32260241a9e1a75b61 diff --git a/client/goodfet.glitch b/client/goodfet.glitch index 69d7b83..823b8de 100755 --- a/client/goodfet.glitch +++ b/client/goodfet.glitch @@ -27,13 +27,25 @@ sequence for a new chip is as follows. On a sample chip for the same model as the target, 1) Run 'goodfet $chip learn' in order to learn the glitching voltages. -2) Run 'goodfet $chip explore' to find a time at which to glitch. +2) Run 'goodfet $chip crunch' in order to precompute glitching ranges. +3) Run 'goodfet $chip explore' to find a time at which to glitch. Then on a chip to be extracted, 3) Run 'goodfet $chip exploit' to exploit a chip and recover its firmware.""" sys.exit(); +if(sys.argv[2]=="graphx11"): + glitcher.graphx11(); + exit(); +if(sys.argv[2]=="graph"): + glitcher.graph(); + exit(); + +if(sys.argv[2]=="crunch"): + glitcher.crunch(); + exit(); + glitcher.setup(sys.argv[1]); if(sys.argv[2]=="learn"): @@ -43,8 +55,3 @@ if(sys.argv[2]=="explore"): if(sys.argv[2]=="exploit"): print "Coming soon."; -if(sys.argv[2]=="graphx11"): - glitcher.graphx11(); - -if(sys.argv[2]=="graph"): - glitcher.graph();