Questions tagged [packet-injection]
53 questions
5
votes
2 answers
How to perform DNS lookup with multiple questions?
DNS standard allows for specifying more than 1 question per query (I mean inside single DNS packet). I'm writing Snort plugin for DNS analyzis and I need to test whether it behaves properly when there's DNS query containing multiple questions.
DNS…

Lapsio
- 6,384
- 4
- 20
- 26
5
votes
2 answers
Change TCP Payload with nfqueue/scapy
Hello I am using nfqueue and scapy and I my goal is to recieve packets at my NFQUEUE, change the payload and resend them.
I can change fields like the TTL without any kind of problem, but when it comes to change the payload, I am encoutering…

aDoN
- 1,877
- 4
- 39
- 55
5
votes
1 answer
How can hping be so fast to send packets?
I have compared two tools for the speed of sending packets, hping and packETHcli. The command line options for packETHcli is
./packETHcli -i eth0 -m 2 -n 0 -d -1 -f icmpSample.pcap
and for hping is
hping --flood 192.168.0.1
But in iptraf, it…

longbowk
- 219
- 5
- 14
4
votes
1 answer
Python - scapy timeout option not working at all
I am having an issue with scapy's timeout option when sniffing packets. From what I understand, if you use something like this :
test = sniff(filter="ip and icmp ", timeout = 2)
print(test)
your sniffing should time out after 2 seconds. However,…

In the stars
- 253
- 4
- 17
4
votes
0 answers
Sending deauthentication packets on android using android pcap source code
I am looking for confirmation on if what I want to do is even possible, and any suggestions on how to approach what I want to do. I am wanting to create a wifi jamming device to show people how their wifi devices are vulnerable to jamming simply by…

Austin Gibb
- 303
- 1
- 4
- 12
2
votes
2 answers
Capturing, forging and injecting packets
In order to build a measurement tool, I need to capture packets, forge them and re-inject them into the network. What are some tools or libraries that I could look into?
Thanks.

Ricky Robinson
- 21,798
- 42
- 129
- 185
2
votes
1 answer
jpcap EXCEPTION_ACCESS_VIOLATION when writingPacket
I'm creating a small utility for writing various data payloads to a pcap dump file using jpcap. For each payload I create a packet as described in the "Send packets through a network interface" example and send it:
byte[] data = new…

user1038312
- 21
- 2
2
votes
0 answers
How can I drop a packet with SharpPacp using WinDivert driver?
I know SharpPcap is mainly developed for packet sniffing not modifying or filtering, but now I can see in its repository that WinDivert is going to be added into project but couldn't find any documentation.
How can I tell SharpPcap to use that…

BarbaCoder
- 39
- 2
2
votes
0 answers
Python script used to modify tcp packets using nfqueue and scapy
I have this python script that I'm using to change the content of a TCP packet using nfqueue to intercept the packet and scapy to modified it. But after i change the packet when I try to accept the packet i get this error.
callback failure…

Roberto Ponte
- 63
- 3
2
votes
1 answer
How are access units aligned within PES packets in Apple's HLS?
Does Apple specify this? How many access units should one put in a PES packet payload?
Also, I'm wondering which prefix start codes (if any) are present in PES packets. I assume that the one preceding the first NAL unit within an access unit is…

matt-pielat
- 1,659
- 3
- 20
- 33
2
votes
1 answer
tcpreplay: -T option
In tcpreplay there is a very useful feature which, according to the official FAQ's, is called with parameter -T :
The packet length (in this case 8892 bytes) is greater then the
maximum transmition unit (MTU) on the outgoing interface. Tcpreplay
…

Ricky Robinson
- 21,798
- 42
- 129
- 185
2
votes
1 answer
Piping binary data to a command from a perl variable
For a homework assignment related to security, DNS cache poisoning, and Kaminsky attacks, I am building a Perl script that uses Nemesis to send packets to a local DNS server (this is all being done on a closed, host-only VMWare network). I have done…

Suki
- 111
- 2
- 9
2
votes
2 answers
Modify HTTP url on the fly
Is it possible to modify users' HTTP request to
www.example.com/options
instead of
www.example.com/options_and_params
My scenario is that about 30000 users connect to my company's network backbone and I want to add one or more server (with the…

Alex Chen
- 645
- 2
- 10
- 25
1
vote
1 answer
Packet manipulation with Pcap.net project
I am using Pcap.net to send packets using send buffer with Wireshark file (pcap extension) and my question is there is any way to change the packet's IP during or before playback?
Here I fill the buffer with the packets from the file before the…

user979033
- 5,430
- 7
- 32
- 50
1
vote
0 answers
How to fork SNMP trap packets using Perl?
I have a need to receive SNMP traps and forward them to four different trap collection servers. SNMP traps are stateless UDP so I'm thinking it should be fairly easy to do...
I'm thinking perl is the way to go...
For each packet the tool would need…

Brad Hein
- 10,997
- 12
- 51
- 74