Git Product home page Git Product logo

udpcrafter's Introduction

udpcrafter

This program crafts an Ethernet frame which transport an UDP datagram and then sends it through a chosen Ethernet interface. It allows to spoof both IP src address and src MAC address.

PREREQUISITES

An ethernet link. To configure it:

1 - Directly connect 2 computers through an ethernet cable

2 - Assign to both computers ethernet interfaces an IP address in the same subnet

ifconfig eth0 10.0.0.1 netmask 255.255.255.0 up.

ifconfig enp0s3 10.0.0.2 netmask 255.255.255.0 up.

USAGE

usage: craft srcip dstip srcmac dstmac srcport dstport ethif data

EXAMPLE

On one computer listen udp connections on 5555 port

nc -ulvvp 5555

On the other

gcc udpcrafter.c -o udpcrafter

./udpcrafter 10.0.0.8 10.0.0.2 aa:bb:cc:dd:ee:ff a2:bd:ee:a9:d7:ff 4444 5555 eth0 hello

You can check the content of the fields using Wireshark

UI

udpcrafter's People

Contributors

midist0xf avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.