Differences

This shows you the differences between two versions of the page.

Link to this comparison view

cli [2017/08/21 11:07]
cli [2024/02/07 22:46] (current)
rzr [MISC]
Line 1: Line 1:
 +===== MISC ====
 +
 +  * https://github.com/peco/peco# ToDo
 +  * https://github.com/evilsocket/shellz# SsH
 +  * http://www.catb.org/esr/writings/taoup/html/ch10s05.html# OpT
 +  * https://github.com/jlevy/the-art-of-command-line#
 +  * https://earthly.dev/blog/command-line-tools/# TooL
 +  * https://github.com/kellyjonbrazil/jc# JsoN
 +  * https://github.com/igor-petruk/scriptisto
 +
 +
 +===== bgrep =====
 +
 +
 +  file=vmlinuz-3.1.0-1-orion5x
 +  strings $file | grep -i lzma
 +  #| LZMA data is corrupt
 +
 +  xxd /local/rootfs-debian-arm-lenny/usr/lib/locales-all/supported.tar.lzma | head
 +  #| 0000000: 5d00 0080 00ff ffff ffff ffff ff00 170b  ]...............
 +
 +  # header="1f8b0800" # gzip
 +  # header="425a6839" # bzip2
 +  header="fd377a585a00" # xz
 +  header="5d0000" # lzma
 +   
 +  bgrep "$header"  $file 
 +
 +  # offset=`grep -P -a -b -m 1 --only-matching $'\x5d\x00\x00' $file | cut -f 1 -d :` 
 +  offset=$(bgrep "$header"  $file | tail -n 1 | cut -d' ' -f 2) #TODO: LooP
 +  offset=$(printf "%d" 0x$offset) # 
 +  
 +  dd if=$file bs=1 skip=$offset | lzcat > tmp-$offset.out
 +  # lzcat: Decoder error  
 +
 +  size=$(wc -c "$file" | cut -f 1 -d' ') # 1471040
 +  for i in $(seq 1 $size) ; do dd if=$file bs=1 skip=$i | lzcat > tmp/$i.tmp && mv tmp/$i.tmp tmp/$i.out; done
 +
 +  dd if=vmlinuz-3.1.0-1-orion5x skip=7193 bs=1 | xxd | head -n 1
 +  0000000: 5d00 0000 02ff ffff ffff ffff ff00 69bc  ].............i.
 +
 +  strings tmp.out # vmlinux md5=cbd611f32d572c5aec31b22809a2ed35
 +  #| %s version %s (Debian 3.1.1-1) (ben@decadent.org.uk) (gcc version 4.6.2 (Debian 4.6.2-4) ) %s
 +  #| Linux version 3.1.0-1-orion5x (Debian 3.1.1-1) (ben@decadent.org.uk) (gcc version 4.6.2 (Debian 4.6.2-4) ) #1 Tue Nov 15 06:07:47 UTC 2011
 +
 +  file=uImage.buffalo # vmlinux md5=cbd611f32d572c5aec31b22809a2ed35
 +  #| %s version %s (Debian 3.1.1-1) (ben@decadent.org.uk) (gcc version 4.6.2 (Debian 4.6.2-4) ) %s
 +  #| Linux version 3.1.0-1-orion5x (Debian 3.1.1-1) (ben@decadent.org.uk) (gcc version 4.6.2 (Debian 4.6.2-4) ) #1 Tue Nov 15 06:07:47 UTC 2011
 +
 +  #file=vmlinuz-3.1.0-1-orion5x-skip_7193.out # ToDo
 +  #header=454c46
 +  #offset=$(bgrep "$header"  $file | head -n 1 | cut -d' ' -f 2) #TODO: LooP
 +  #offset=$(printf "%d" 0x$offset) # 
 +  #dd if=$file  skip=$offset bs=1 | nm --demangle /dev/stdin
 +
 +
 +  echo "==> searching for gzip header in $zImage"
 +  skip=`grep -P -a -b -m 1 --only-matching $'\x1F\x8B\x08' $zImage | cut -f 1 -d :`
 +
 +  * http://en.wikipedia.org/wiki/Vmlinux
 +  * http://buffalo.nas-central.org/wiki/How_to_Extract_an_uImage
 +
 +
 +===== SoftWare =====
 +
 +  * https://github.com/Nukesor/pueue
 +  * https://github.com/hasura/graphqurl# GraphQl
 +
 +
 +===== MISC =====
 +
 +  * http://guillaumecollic.com/2014/02/ligne-de-commande-plus-agreable-sous-windows/
 +  * https://www.gnu.org/software/zile/
 +  * http://kkovacs.eu/cool-but-obscure-unix-tools/# NCurses
 +  * http://forum.meego.com/showthread.php?t=5878# ToDo Wizard GuI
 +  * https://github.com/tmbinc/bgrep/pull/2
 +  * http://stackoverflow.com/questions/4180081/linux-binary-grep
 +  * http://code.google.com/p/xdelta/# [[DifF]]
 +  * https://www.gnu.org/software/parallel/man.html#example__parallelizing_rsync
 +  * https://github.com/stealth/grab# GreP FasT
 +  * https://sift-tool.org/samples# GreP MultiLine
 +  * https://github.com/busterc/xcv# CutNPaste NodeJs
 +  * https://github.com/facebook/PathPicker# GiT
 +
 +
 +
 +
 +===== MORE =====
 +
 +@TaG: TooL [[term]] [[grep]] [[diff]] [[ARMv5]] BasH RsynC EditoR
 +
 +{{http://i.imgur.com/rT1m0.png}}
 +
 +<html>
 +<iframe width="560" height="315" src="//www.youtube-nocookie.com/embed/PEatVELhJok" frameborder="0" allowfullscreen></iframe>
 +</html>
 +
  
cli.txt ยท Last modified: 2024/02/07 22:46 by rzr
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki