packet-capture

How to capture HTTP response with C#?

≯℡__Kan透↙ 提交于 2019-12-25 03:06:50
问题 How do I capture HTTP response when the request is made by web browser? Webpage retrieves data (with post) from a service. Service returns a json object. What I want is to capture that json and parse it in realtime. What would be the simplest way to do it? 回答1: Your best bet is to use Fiddler, perhaps with the JSON viewer add-on. From the homepage: Fiddler is a Web Debugging Proxy which logs all HTTP(S) traffic between your computer and the Internet. Fiddler allows you to inspect all HTTP(S)

Network Sniffing/SSL Pinning : Not able to get post through the login page in a mobile app when detecting traffic with Fiddler

匆匆过客 提交于 2019-12-25 00:54:21
问题 I am debugging network calls of one of the client's application whom code I am not having. The steps I have gone thorough is as below. 1) Install fiddler in a windows system. 2) unable HTTPS decryption. 3) set the system proxy to match the client's country. (USA) 4) install the app on iOS to which is on same network. 5) Installed the Fiddler certificate in phone, added to trusted certificate 6) Applied the manual proxy matching the same internal IP of the windows system. (not the system proxy

BerkeleyPacketFilter, filter by TCP and port

让人想犯罪 __ 提交于 2019-12-24 10:46:43
问题 Filter by TCP and port, using the BerkeleyPacketFilter Having problem converting the code on tutorial from Pcap.net. Need to be able to filter packets by TCP and insert port value. I am not able to understand the BerkeleyPacketFilter syntax. //choose port Console.WriteLine("Choose port nr"); string portnr = Console.ReadLine(); int port = Int32.Parse(portnr); // Compile the filter using (BerkeleyPacketFilter filter = communicator.CreateFilter(port)) { // Set the filter communicator.SetFilter

Convert HEX to ASCII, data from GPS tracker

吃可爱长大的小学妹 提交于 2019-12-23 01:52:30
问题 I have just bought a GPS Tracker, it can send SMS to cellphone just fine. It also supports reporting to a server via GPRS. I have setup the device to contact my own server on port 8123, it's a FreeBSD server and i have checked that i recieve packets on that port. I successfully have setup a listener server written in PHP, and i can receive data from the device. But how do i convert the partial HEX data to something usefull (ASCII)? Example data string: $$^@T^@E Y'^WÿU210104.000,A,5534.4079,N

Which .NET library / wrapper do you recommend for sniffing packets?

梦想与她 提交于 2019-12-23 01:29:17
问题 As far as I understand all sniffing libraries in .NET just a wrapper around WinpCap, which is OK. If you know any other better option please write as answer. Have you used any of them? Which one is the best according to your experience? I'm only looking for libraries which have commercial friendly licenses, Also commercial libraries are OK as soon as they got a decent price tag 回答1: Why not use Microsoft Network Monitor? It's free, supported, and has an API you can use, in addition to a set

Adding payload in packet

不打扰是莪最后的温柔 提交于 2019-12-21 09:12:31
问题 Can I insert image or document (in MBs) as a data in packet using scapy? This is what I did to send data. data = "University of texas at San Antonio" a = IP(dst="129.132.2.21")/TCP()/data send(a) 回答1: Yes, you can send raw data like this. In this example, data will be ASCII encoded. >>> data = 'University of Texas at San Antonio' >>> a = IP(dst='129.132.2.21') / TCP() / Raw(load=data) >>> sendp(a) 来源: https://stackoverflow.com/questions/6605118/adding-payload-in-packet

How to copy hex data of captured packet form wireshark

泄露秘密 提交于 2019-12-21 03:44:08
问题 here is the example this is the captured packet data 00000000 00 6e 0b 00 .n.. 00000004 4d 5a e8 00 00 00 00 5b 52 45 55 89 e5 81 c3 81 MZ.....[ REU..... 00000014 12 00 00 ff d3 89 c3 57 68 04 00 00 00 50 ff d0 .......W h....P.. 00000024 68 f0 b5 a2 56 68 05 00 00 00 50 ff d3 00 00 00 h...Vh.. ..P..... 00000034 00 00 00 00 00 00 00 00 00 00 00 00 e0 00 00 00 ........ ........ 00000044 0e 1f ba 0e 00 b4 09 cd 21 b8 01 4c cd 21 54 68 ........ !..L.!Th 00000054 69 73 20 70 72 6f 67 72 61 6d 20

Analyzing Bluetooth Low Energy Traffic

假装没事ソ 提交于 2019-12-20 15:01:09
问题 While trying to study BLE I am wondering if it is possible to analyse it through tools like Wireshark and snort? I came across one by the name "ubertooth" but that's a USB device which needs to be purchased in order for us to do DPI on BLE frames, right? Is it possible to capture and analyse BLE frames on Wireshark? 回答1: Yes it's possible to use wireshark to analyse BLE packets, but you will need additional hardware. Sniffing a connection requires support from the baseband layer which is

How to use structure with dynamically changing size of data?

為{幸葍}努か 提交于 2019-12-20 07:34:55
问题 Question for C only, C++ and vectors do not solve problem. I have such structure: typedef __packed struct Packet_s { U8 head; U16 len; U32 id; U8 data; U8 end; U16 crc; } Packet_t, *Packet_p; ( EDIT : U8 is uint8_t (unsigned char) and so on) For example, I've received packet(hex): 24 0B 00 07 00 00 00 AA 0D 16 1C where head = 0x24 len = 0x0B 0x00 id = 0x07 0x00 0x00 0x00 data = 0xAA end = 0x0D crc = 0x16 0x1C I can copy it from incoming buffer like this U8 Buffer[SIZE]; // receives all bytes

Any good .net packet sniffers around? [closed]

风流意气都作罢 提交于 2019-12-20 03:08:23
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I am looking for one to use from my c# application. Anyone knows a free one? 回答1: Take a look at SharpPcap, which is a .NET-Wrapper for WinPcap. 回答2: A Network Sniffer in C# Packet Sniffer in C# 来源: https://stackoverflow.com/questions/1271001/any-good-net-packet-sniffers-around