File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / hping2 / utils / README.HEX2BIN
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 22:11:37 2012 UTC (13 years, 1 month ago) by misho
Branches: hping2, MAIN
CVS tags: v2_0_0rc3p7, v2_0_0rc3p5, v2_0_0rc3p4, v2_0_0rc3p0, v2_0_0rc3, HEAD
hping2

    1: hex2bin is an utility to convert a string in hexadecimal format like
    2: "2b2b2b415448300d" (an example to test a stupid modem vulnerability)
    3: in the binary equivalent. For example:
    4: 
    5: # echo -n "2b2b2b415448300d" | ./hex2bin > modem.string
    6: 
    7: # cat modem.string
    8: +++ATH0
    9: 
   10: # ls -l modem.string
   11: -rw-r--r--   1 antirez  users           8 Nov 17 16:01 modem.string
   12: 
   13: # hping2 --file ./modem.string -d 8 --icmp target.host.org
   14: 
   15: using switch '-r' hex2bin perform exactly the inverse operation.
   16: for example:
   17: 
   18: echo "antirez" | ./hex2bin -r
   19: 
   20: 616e746972657a0a

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>