blob: eeb79506ee49cec8a3890df52d4760fb79da2ee7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/usr/bin/python
import _pyext2
import struct, os, sys
fs = _pyext2.Ext2Fs("test.img")
f = fs.open_file("/boot/vmlinuz-2.6.11-1.1177_FC4")
buf = f.read()
o = open("vmlinuz", "wb+")
o.write(buf)
o.close()
f.close()
|