Giter Club home page Giter Club logo

hexinject's Introduction

 == 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)


hexinject's People

Contributors

palinurosec avatar simmesson avatar

Stargazers

 avatar  avatar โ„‚๐• ๐• ๐• ๐• (๐•˜๐•š๐•ฅ๐•™๐•ฆ๐•“.๐•”๐• ๐•ž/โ„‚๐• ๐• ๐• ๐•) avatar Lao Zhang avatar  avatar  avatar  avatar Abel Durรกn Guerrero avatar Mudassar Ali avatar N3XUS avatar Mauro Risonho de Paula Assumpรงรฃo avatar  avatar Adam Swanda avatar Michalis Papadopoullos avatar  avatar A.AL-Dallal avatar looter avatar Sam Sheffres avatar  avatar Erik P avatar

Watchers

James Cloos avatar Francesco Bonanno avatar  avatar  avatar Abel Durรกn Guerrero avatar  avatar

hexinject's Issues

Version 1.6 is out

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:
$(CC) $(CFLAGS) -o hexinject hexinject.c $(LDFLAGS)
$(CC) $(CFLAGS) -o prettypacket prettypacket.c $(LDFLAGS)
$(CC) $(CFLAGS) -o hex2raw hex2raw.c $(LDFLAGS)

clean:
rm -f hexinject prettypacket hex2raw *~

Build Fail - ubuntu 16.04 - 4.10.0-20-generic

$ 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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.