Annotation of embedaddon/hping2/utils/README.HEX2BIN, revision 1.1.1.1

1.1       misho       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>