Is there a utility for generating UDP and TCP packets from raw data in a file?

I am looking for a utility that can generate UDP or TCP packets from the raw data that I provide to it in a file. Of course, I must provide options for creating such packages, as shown below:

UDP port #, TCP IP address, IP type (IPv4 or IPv6), etc.

I can provide these options on the command line or in some configuration file. But it should be able to generate UDP or TCP packet from it and give it to me in some text file for viewing. I need this because I want to use this data, as in putting the data into one of the ethernet drivers.

+3
source share
4 answers

, , hping.

+1

, , , , UDP TCP IP, "" ? , TCP, "" (, ..).

( UDP, TCP- . netcat netcat6 IPv6. tcpdump wirehark PCAP. PCAP ( UDP/TCP, IP Ethernet)

, ethernet .

hping, , , , .

0

Nmap folk netcat, Ncat, Nmap 5.

0

Python also has low overhead to do something in this direction.

http://www.amk.ca/python/howto/sockets/ contains a good tutorial on how to get started.

0
source

Source: https://habr.com/ru/post/1715544/


All Articles