Here is my first attempt to package the latest version of HexInject :
HexInject :
HexInject has now reached version 1.5 (Feb 21 2013) and a few changes have been made. In particular the features have been redistributed between multiple tools, following the unix philosophy.
With this new organization its easier to create powerful shell pipelines, including also external tools.
HexInject is a very versatile packet injector and sniffer, that provide a command-line framework for raw network access.
It's designed to work together with others command-line utilities, and for this reason it facilitates the creation of powerful shell scripts capable of reading, intercepting and modifying network traffic in a transparent manner.
Overview :
hexinject remains the main sniffer and injector.
prettypacket disassembles raw packets (received on its standard input) and print their field. It can also print example packets (useful if you want to know the structure of an header).
hex2raw converts hexstring (the textual format used by hexinject) to raw data, and vice-versa. A basic xxd tool.
packets.tcl is an experimental packet forger, written in TCL. It uses a simple packet representation format based on APD (http://wiki.hping.org/26). The output of the tool can be piped to hexinject raw inject mode.
-bash-2.05b# apt-get install hexinject && hexinject --help
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
mbarcode-plugin-webrequest
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
tcl8.5
Suggested packages:
tclreadline
The following NEW packages will be installed:
hexinject tcl8.5
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 1575kB of archives.
After this operation, 4526kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://repository.maemo.org fremantle-1.3/free tcl8.5 8.5.8-2maemo2 [1554kB]
Get:2 http://repository.maemo.org fremantle/free hexinject 1.5-1maemo0 [20,5kB]
Fetched 1575kB in 23s (67,6kB/s)
Selecting previously deselected package tcl8.5.
(Reading database ... 51089 files and directories currently installed.)
Unpacking tcl8.5 (from .../tcl8.5_8.5.8-2maemo2_armel.deb) ...
Selecting previously deselected package hexinject.
Unpacking hexinject (from .../hexinject_1.5-1maemo0_armel.deb) ...
Setting up tcl8.5 (8.5.8-2maemo2) ...
Setting up hexinject (1.5-1maemo0) ...
hexinject: invalid option -- -
HexInject 1.5 [hexadecimal packet injector/sniffer]
written by: Emanuele Acri <crossbower@gmail.com>
Usage:
hexinject <mode> <options>
Options:
-s sniff mode
-p inject mode
-r raw mode (instead of the default hexadecimal mode)
-f <filter> custom pcap filter
-i <device> network device to use
-F <file> pcap file to use as device (sniff mode only)
-c <count> number of packets to capture
-t <time> sleep time in microseconds (default 100)
-I list all available network devices
Injection options:
-C disable automatic packet checksum
-S disable automatic packet size
Interface options:
-P disable promiscuous mode
-M put the wireless interface in monitor mode
(experimental: use airmon-ng instead...)
Other options:
-h help screen
-bash-2.05b#
Here is my first attempt to package the latest version of HexInject :
HexInject :
HexInject has now reached version 1.5 (Feb 21 2013) and a few changes have been made. In particular the features have been redistributed between multiple tools, following the unix philosophy.
With this new organization its easier to create powerful shell pipelines, including also external tools.
HexInject is a very versatile packet injector and sniffer, that provide a command-line framework for raw network access.
It's designed to work together with others command-line utilities, and for this reason it facilitates the creation of powerful shell scripts capable of reading, intercepting and modifying network traffic in a transparent manner.
Overview :
Homepage :
http://hexinject.sourceforge.net/
Download packages from extra-devel :
Activate all repositories following this tutorial : Repositories Activation
Then, as usual, as root, install with :
Hope you like it ...
A++