Questions tagged [packet-injection]

53 questions
0
votes
1 answer

Strange Payload when generating raw packet with Scappy

I am having an strange problem trying to generate a raw packet with Scappy. I am doing the following: eee=Ether(dst='08:00:11:11:11', src='08:00:11:11:22:22', type=0x888)/Raw(load='112233445566778888776655443322110901') But when I do a hexdump of…
0
votes
1 answer

Is NetflterSDK able to inject javascript into http stream?

I tried netfiltersdk.com , using their WFP driver to intercept HTTP traffic and block websites like Facebook. Works very well with their "PFHttpBlocker.exe 'facebook'" example. I want to inject javascript into the HTTP stream to for example close…
user670186
  • 2,588
  • 6
  • 37
  • 55
0
votes
0 answers

Sending ICMPv6 Messages using Impacket (ImpactPacket and Impact Decoder)

I can't seem to find a good documentation for sending packets on ICMPv6 Messages. There is a sample from Impacket but it uses Ping6 so it simply calls ICMP6.ICMP6.Echo_Request(1, seq_id,payload) and it will return a ping message. How should I…
0
votes
1 answer

Creating DNS packet with dnslib python

Using dnslib with python 2.6 I created the following code #!/usr/bin/env python from dnslib import * import sys a = DNSRecord.question(sys.argv[1]) print a.pack() when i try to do the following a = DNSRecord.question(sys.argv[1],"A MX NS AAAA…
user3831009
  • 3
  • 1
  • 3
0
votes
0 answers

How to forward captured packet/s to another network device using jnetpcap?

I would like to send a captured packet sniffed from network device 1 and will inject it to network device 2 without altering its contents (will act as a wire) So far I have tried byte[] buf = new byte[packet.getTotalSize()]; …
0
votes
1 answer

Decrypt tor traffic

I got a tor client using on mashine in my local network, so I capture all traffic. Also I can redirect all tor traffic on any server/client, add some clients in network, modify or inject every packet from this mashine. So, is there way to decrypt…
Nathan
  • 53
  • 1
  • 1
  • 5
-1
votes
2 answers

Simple Firewall Program

I want to make a simple Firewall/Packet-Filter program for windows using Visual C++ 2010. All I want to be able to do is see what websites my browsers go to and return custom text/HTML if I don't like the website. I really can't find any tutorials…
Matt
  • 1,151
  • 3
  • 13
  • 34
-1
votes
1 answer

Redirect all program packets through alerternate port

I have an application I need to debug. The application connects to a server using a specific UDP port, though the application can be configured to join any server with any UDP port. My goal is to be able to view all incoming data/packets from the…
Freddie
  • 21
  • 1
  • 11
1 2 3
4