packet-capture

packet capture: can a packet with the FIN flag also have data?

隐身守侯 提交于 2019-12-19 17:40:53
问题 I'm working on a packet capture program. Is it possible for an IP packet to have the FIN flag set but also have data? 回答1: Strictly speaking, it is possible to put data in a TCP FIN packet... Quoting from RFC 793 (emphasis mine): The SYN and FIN are the only controls requiring this protection, and these controls are used only at connection opening and closing. For sequence number purposes, the SYN is considered to occur before the first actual data octet of the segment in which it occurs,

packet capture: can a packet with the FIN flag also have data?

懵懂的女人 提交于 2019-12-19 17:40:49
问题 I'm working on a packet capture program. Is it possible for an IP packet to have the FIN flag set but also have data? 回答1: Strictly speaking, it is possible to put data in a TCP FIN packet... Quoting from RFC 793 (emphasis mine): The SYN and FIN are the only controls requiring this protection, and these controls are used only at connection opening and closing. For sequence number purposes, the SYN is considered to occur before the first actual data octet of the segment in which it occurs,

How to export printable text only(or any other packet property) in wireshark

℡╲_俬逩灬. 提交于 2019-12-19 04:02:40
问题 Long story short - I'm capturing SQLs from vendor tool to Oracle database by using Wireshark. It already has decoder for TNS protocol (which is great) and I can access text of SQL by Right Click->Copy->Bytes(Printable Text Only). The problem is that there are tons of packets and doing right-click on each of them could take ages. I was wondering if there any way to export 'Printable Text Only' right from Wireshark. Ideally I want to have a text file with statements. Any help will be highly

Bluetooth sniffer - preferably mac osx

牧云@^-^@ 提交于 2019-12-17 21:44:26
问题 I am trying to find a bluetooth packet sniffer to capture bluetooth signals from close by devices. I would like for this application to work on mac osx. I have had difficulty finding anything at all so my requirements are low right now - something that shows signal strength and mac address would be a good start. 回答1: Actually, Xcode does not include the bluetooth utilities by default. You need to open Xcode, go to Xcode>Open Developer Tool>More developer tools, then login with your Apple

iPhone and WireShark [closed]

老子叫甜甜 提交于 2019-12-17 17:28:20
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed last year . How can I sniff packets from my iPhone on my network? can someone give me some instructions? I tried Googling, but nothing teaches how to sniff iPhone packets、 I am on windows. 回答1: You can use Paros to sniff the network traffic from your iPhone. See this excellent step by step post

Android firewall with VpnService

微笑、不失礼 提交于 2019-12-17 08:24:49
问题 I'm trying to implement a simple firewall for android with VpnService for BS project. I choose VpnService because it will be working on non-rooted devices. It will log connections and let you filter connection. (Based on IP) There is an application doing this so it is possible. Google play app store I did some research and found that VpnService creates a Tun interface. Nothing more. (No VPN implementation just a tunnel) It lets you give an adress to this interface and add routes. It returns a

Android firewall with VpnService

泪湿孤枕 提交于 2019-12-17 08:24:06
问题 I'm trying to implement a simple firewall for android with VpnService for BS project. I choose VpnService because it will be working on non-rooted devices. It will log connections and let you filter connection. (Based on IP) There is an application doing this so it is possible. Google play app store I did some research and found that VpnService creates a Tun interface. Nothing more. (No VPN implementation just a tunnel) It lets you give an adress to this interface and add routes. It returns a

How do I turn on nanosecond precision when capturing live traffic?

£可爱£侵袭症+ 提交于 2019-12-13 00:34:44
问题 How do I tell libpcap v1.6.2 to store nanosecond values in struct pcap_pkthdr::ts.tv_usec (instead of microsecond values) when capturing live packets? (Note: This question is similar to How to enable nanosecond resolution when capturing live packets in libpcap? but that question is vague enough that I decided to ask a new question.) For offline and "dead" captures, the following functions can be used to tell libpcap to fill the struct pcap_pkthdr 's ts.tv_usec member with nanosecond values:

How to determine packet direction using libpcap?

旧街凉风 提交于 2019-12-11 10:25:14
问题 I am working on project using libpcap. Now, I need to know the direction of packet (inbound or outbound) once I got the packet in callback function. I am going to write the methods to compare IP and MAC address between client and these information extract from packet. Am I right? Could you please help me some comments or advices on this problem? Thank you for your time. 回答1: The source or target IP address is sufficient. If the source is local, it's outbound. If the target is local, it's

How can I extract HTML code with Scapy?

三世轮回 提交于 2019-12-11 05:42:43
问题 I recently began to use the scapy library for Python 2.x I found there to be minimal documentation on the sniff() function. I began to play around with it and found that I can veiw TCP packets at a very low level. So far I have only found informational data. For example: Here is what I put in the scapy terminal: A = sniff(filter="tcp and host 216.58.193.78", count=2) This is a request to google.com asking for the homepage: <Ether dst=e8:de:27:55:17:f3 src=00:24:1d:20:a6:1b type=0x800 |<IP