2011-03-16 04:50:25 +00:00
|
|
|
#!/usr/bin/env ruby
|
|
|
|
|
2011-03-17 23:57:11 +00:00
|
|
|
dat = nil
|
2011-03-16 04:50:25 +00:00
|
|
|
dat = File.open(ARGV[0], 'rb') { |fd| fd.read }
|
2011-03-17 23:57:11 +00:00
|
|
|
if dat
|
|
|
|
puts "config_off = 0x%x" % dat.index("\x00\x08CONFIGZZ")
|
|
|
|
puts "cn_off = 0x%x" % dat.index("\x00\x07AppletX")
|
|
|
|
else
|
|
|
|
"No data?!"
|
|
|
|
end
|
2011-03-16 04:50:25 +00:00
|
|
|
|