parrotsec / hexinject Goto Github PK
View Code? Open in Web Editor NEWHexInject is a very versatile packet injector and sniffer, that provide a command-line framework for raw network access.
HexInject is a very versatile packet injector and sniffer, that provide a command-line framework for raw network access.
== HEXINJECT == 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. == TOOLS == hexinject: The main sniffer and injector. prettypacket: Disassemble raw packets (received on its standard input) and print their field. Can also print example packets (useful if you want to know the structure of an header). hex2raw: Convert hexstring (the textual format used by hexinject) to raw data, and vice-versa. packets.tcl: Experimental packet forger, written in TCL. It uses a simple packet representation format based on APD (http://wiki.hping.org/26). == COMPILE == HexInject is based only on the pcap libraries, so it's should be easy to compile on systems that supports them. Dependencies: libpcap-dev tcl (for packets.tcl) Compile: To compile the tools just type "make" and cross your fingers... :) == INFO == Website: http://hexinject.sourceforge.net/ Guide: http://hexinject.sourceforge.net/hexinject_introduction.pdf Author: Emanuele Acri <[email protected]> License: BSD License (2011)
Hi,
this repo seems outdated - http://hexinject.sourceforge.net/ is at version 1.6
Also, in version 1.6, there's a compilation error for debian/ubuntu
this can be resolved using this Makefile:
CC = gcc
CFLAGS = -Wall
LDFLAGS = -lpcap
all:
clean:
rm -f hexinject prettypacket hex2raw *~
$ make
gcc -o hexinject hexinject.c -lpcap
In file included from hexinject.h:19:0,
from hexinject.c:8:
hexstring.h: In function โstr_to_hexโ:
hexstring.h:32:9: warning: implicit declaration of function โisdigitโ [-Wimplicit-function-declaration]
if(isdigit(str[0])) {
^~~~~~~
In file included from hexinject.h:20:0,
from hexinject.c:8:
hexdump.h: In function โhex_dumpโ:
hexdump.h:40:13: warning: implicit declaration of function โisalnumโ [-Wimplicit-function-declaration]
if (isalnum(c) == 0) {
^~~~~~~
In file included from hexinject.h:21:0,
from hexinject.c:8:
prettypacket.h: At top level:
prettypacket.h:147:8: warning: return type defaults to โintโ [-Wimplicit-int]
inline field_print (const char *packet_buffer, int field_size, int *counter, const char *field_text) {
^~~~~~~~~~~
hexinject.c: In function โsniff_hexstr_loopโ:
hexinject.c:88:9: warning: implicit declaration of function โusleepโ [-Wimplicit-function-declaration]
usleep(options.sleep_time);
^~~~~~
/tmp/user/1000/ccGP04yq.o: In function tcp_print': hexinject.c:(.text+0x885): undefined reference to
field_print'
hexinject.c:(.text+0x8a1): undefined reference to field_print' hexinject.c:(.text+0x8bd): undefined reference to
field_print'
hexinject.c:(.text+0x8d9): undefined reference to field_print' hexinject.c:(.text+0x8f5): undefined reference to
field_print'
/tmp/user/1000/ccGP04yq.o:hexinject.c:(.text+0x911): more undefined references to field_print' follow /tmp/user/1000/ccGP04yq.o: In function
ip_print':
hexinject.c:(.text+0xcf2): undefined reference to protocol_8bit_extract' hexinject.c:(.text+0xd14): undefined reference to
field_print'
hexinject.c:(.text+0xd30): undefined reference to field_print' hexinject.c:(.text+0xd4c): undefined reference to
field_print'
hexinject.c:(.text+0xd68): undefined reference to field_print' /tmp/user/1000/ccGP04yq.o: In function
arp_print':
hexinject.c:(.text+0xde6): undefined reference to field_print' /tmp/user/1000/ccGP04yq.o:hexinject.c:(.text+0xe02): more undefined references to
field_print' follow
/tmp/user/1000/ccGP04yq.o: In function ethernet_print': hexinject.c:(.text+0xf55): undefined reference to
protocol_48bit_extract'
hexinject.c:(.text+0xf75): undefined reference to field_print' hexinject.c:(.text+0xf91): undefined reference to
field_print'
hexinject.c:(.text+0xfa2): undefined reference to protocol_16bit_extract' hexinject.c:(.text+0xfc4): undefined reference to
field_print'
/tmp/user/1000/ccGP04yq.o: In function isl_print': hexinject.c:(.text+0x1074): undefined reference to
field_print'
hexinject.c:(.text+0x1085): undefined reference to protocol_8bit_extract' hexinject.c:(.text+0x10ab): undefined reference to
field_print'
hexinject.c:(.text+0x10c7): undefined reference to field_print' hexinject.c:(.text+0x10e3): undefined reference to
field_print'
hexinject.c:(.text+0x10ff): undefined reference to field_print' hexinject.c:(.text+0x111b): undefined reference to
field_print'
/tmp/user/1000/ccGP04yq.o:hexinject.c:(.text+0x1137): more undefined references to field_print' follow /tmp/user/1000/ccGP04yq.o: In function
llc_print':
hexinject.c:(.text+0x1558): undefined reference to protocol_8bit_extract' hexinject.c:(.text+0x157a): undefined reference to
field_print'
hexinject.c:(.text+0x158b): undefined reference to protocol_8bit_extract' hexinject.c:(.text+0x15ad): undefined reference to
field_print'
hexinject.c:(.text+0x15c9): undefined reference to field_print' hexinject.c:(.text+0x1646): undefined reference to
field_print'
hexinject.c:(.text+0x1657): undefined reference to protocol_16bit_extract' hexinject.c:(.text+0x1679): undefined reference to
field_print'
collect2: error: ld returned 1 exit status
Makefile:2: recipe for target 'all' failed
make: *** [all] Error 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.