Skip to content

Instantly share code, notes, and snippets.

@kmiasko
Created March 24, 2016 23:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kmiasko/31c0f7112f376e47f7cd to your computer and use it in GitHub Desktop.
Save kmiasko/31c0f7112f376e47f7cd to your computer and use it in GitHub Desktop.
λ szuja tp → file TL-SC3230N_V1_6.E.2.14440_20140731.pck
TL-SC3230N_V1_6.E.2.14440_20140731.pck: data
λ szuja tp → binwalk TL-SC3230N_V1_6.E.2.14440_20140731.pck
DECIMAL HEXADECIMAL DESCRIPTION
--------------------------------------------------------------------------------
300 0x12C Linux kernel ARM boot executable zImage (big-endian)
λ szuja tp → dd if=TL-SC3230N_V1_6.E.2.14440_20140731.pck of=zImage bs=300 skip=1
43006+1 records in
43006+1 records out
12901956 bytes (13 MB, 12 MiB) copied, 0,120086 s, 107 MB/s
λ szuja tp → file zImage
zImage: Linux kernel ARM boot executable zImage (big-endian)
λ szuja tp → objcopy -I binary -O binary --reverse-bytes=4 zImage zImageLittle
λ szuja tp → file zImageLittle
zImageLittle: Linux kernel ARM boot executable zImage (little-endian)
λ szuja tp → binwalk zImageLittle
DECIMAL HEXADECIMAL DESCRIPTION
--------------------------------------------------------------------------------
0 0x0 Linux kernel ARM boot executable zImage (little-endian)
13069 0x330D gzip compressed data, maximum compression, from Unix, last modified: 2014-07-31 05:01:34
10994445 0xA7C30D Certificate in DER format (x509 v3), header length: 4, sequence length: 26328
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment