# Simple dumping application
from forensic1394 import Bus
from time import sleep
b = Bus()
# Enable SBP-2 support for access to Linux/Windows targets
b.enable_sbp2()
# Sleep to give the bus time to reinitialise
sleep(2.0)
# Attempt to open the first attached device d = b.devices()[0]
d.open()
# If this fails, try reducing the request size
d._request_size = 512
f = open('memorydump','wb')
for addr in range(1*1024*1024,2*1024*1024*1024,1*1024*1024):
data = d.read(addr, 1*1024*1024)
f.write(data
Show replies by date