packet-injection

Change TCP Payload with nfqueue/scapy

丶灬走出姿态 提交于 2019-12-18 02:57:42
问题 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 problems. When I change the payload, I sniff the packet with wireshark and apparently I send the packet with the payload modified, but the server doesn't answer. This is my code: #!/usr/bin/env python import nfqueue from scapy.all import * def callback

to monitor local pc network and block ip's is winpcap is the tool?

安稳与你 提交于 2019-12-11 18:34:09
问题 i need to build network monitor that sniff the network and to hold ip policy that will enable me to block the network based on this policy for example: if im getting incoming http protocol from ip that is in my ip policy black list and now i like to block it and for example redirect this http request so it could contain now my http packet ( packet injection ? ) dose winpcap can do the job ? To be more to the point basically what i need is to build simple url blocking app .. Which approach

How are access units aligned within PES packets in Apple's HLS?

早过忘川 提交于 2019-12-06 10:53:40
问题 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 useless and mustn't be put. Right? I'd like to know how it's done specifically in HLS - not necessarily any other MPEG-2 TS application. 回答1: I'd like to know how it's done specifically in HLS - not necessarily any other MPEG-2 TS application. HLS is a

How are access units aligned within PES packets in Apple's HLS?

╄→гoц情女王★ 提交于 2019-12-04 17:43:13
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 useless and mustn't be put. Right? I'd like to know how it's done specifically in HLS - not necessarily any other MPEG-2 TS application. I'd like to know how it's done specifically in HLS - not necessarily any other MPEG-2 TS application. HLS is a standard MPEG-2 TS stream. HLS does not do it any differently, except limit to a single audio and singe

Change TCP Payload with nfqueue/scapy

爷,独闯天下 提交于 2019-11-29 00:23:52
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 problems. When I change the payload, I sniff the packet with wireshark and apparently I send the packet with the payload modified, but the server doesn't answer. This is my code: #!/usr/bin/env python import nfqueue from scapy.all import * def callback(payload): data = payload.get_data() pkt = IP(data) pkt[TCP].payload = str(pkt[TCP].payload).replace("ABC"