Questions tagged [packet-injection]

54 questions
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,679
  • 4
  • 27
  • 48
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
  • 189
  • 3
  • 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
  • 233
  • 2
  • 13
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
  • 17,881
  • 35
  • 113
  • 172
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…
2
votes
1 answer

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
  • 4,374
  • 2
  • 16
  • 22
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…
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,279
  • 3
  • 16
  • 32
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
  • 17,881
  • 35
  • 113
  • 172
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
  • 8
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
  • 575
  • 1
  • 9
  • 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
  • 2,656
  • 4
  • 23
  • 38
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,689
  • 11
  • 48
  • 71
1
vote
0 answers

modify tcp packet payload with Windivert but than connection finished

i am working on an project and i need to edit a tcp packet data. I use Windivert for this, I can find my packet and edit also i dont vhange packet length just replace some walues with random values(i try this with socket rediretion and edit it will…
kerrro
  • 11
  • 1
1
2 3 4