diff options
author | Momo <momorientes@online.de> | 2011-09-01 12:17:21 +0200 |
---|---|---|
committer | Momo <momorientes@online.de> | 2011-09-01 12:17:21 +0200 |
commit | ff0030cd7fe92a09173c16bf7b483cde638dab46 (patch) | |
tree | 33c1cd58756ea023eb304a1504b3a079a7eae63a /oncology/dpfhack_display/fw/fulldump.py | |
parent | 77d4efad2e89fe9357b10b1bd173fbded82468fe (diff) | |
parent | abf8674a3fc02f172768be911c6e719290bf6bd5 (diff) |
Merge branch 'master' of https://github.com/krebscode/painload
Diffstat (limited to 'oncology/dpfhack_display/fw/fulldump.py')
-rwxr-xr-x | oncology/dpfhack_display/fw/fulldump.py | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/oncology/dpfhack_display/fw/fulldump.py b/oncology/dpfhack_display/fw/fulldump.py deleted file mode 100755 index 28c0ad2c..00000000 --- a/oncology/dpfhack_display/fw/fulldump.py +++ /dev/null @@ -1,29 +0,0 @@ -# Script to extract flash -# -# <hackfin@section5.ch> -# -# Argument is either: -# -# /dev/sgX : scsi device (unhacked mode) -# usb0 : developer mode (already hacked) - -import sys -sys.path.append("./Debug") -import dpf - -import detect - -d = dpf.open(sys.argv[1]) - -size = detect.detect_flash(d) - -# Offset, size -print "Reading %x bytes..." % size -buf = d.readFlash(0x00, size) - -f = open("full.bin", "wb") -f.write(buf) -f.close() - -d.close() - |