sniffing

How to catch all HTTP traffic (local proxy)

試著忘記壹切 提交于 2019-12-09 04:53:28
问题 I am looking to get access to all HTTP traffic on my machine (my windows machine - not a server). From what I understand having a local proxy through which all traffic routes is the way to go. I have been Googling but failed to find any resources (in respect to Ruby) to help me out. Any tips or links are much appreciated. 回答1: There's an HTTP Proxy in WEBrick (part of Ruby stdlib) and here's an implementation example. If you like living on the edge there's also em-proxy by Ilya Grigorik. This

sniffing and tampering requests and responses of web sites, how prevent?

我只是一个虾纸丫 提交于 2019-12-08 08:03:28
问题 i am working on security and other stuff about my web sites. in my country online payments work like paypal. mean you should pass some parameters such as Amount,MerchantID,ReturnURL,ResNum(OrderID) by post method to bank and bank will pass some parameters such as MID,Status,ResNum to you after payment. during this requests and responses somebody can use the software below to sniff and tamper: http://www.fiddler2.com/fiddler2/ please see this video: http://www.fiddler2.com/fiddler/help/video/

sniffing and tampering requests and responses of web sites, how prevent?

你说的曾经没有我的故事 提交于 2019-12-06 16:28:26
i am working on security and other stuff about my web sites. in my country online payments work like paypal. mean you should pass some parameters such as Amount,MerchantID,ReturnURL,ResNum(OrderID) by post method to bank and bank will pass some parameters such as MID,Status,ResNum to you after payment. during this requests and responses somebody can use the software below to sniff and tamper: http://www.fiddler2.com/fiddler2/ please see this video: http://www.fiddler2.com/fiddler/help/video/ i test it and it also works on https by using a certificate. wow... how can i prevent this sniffing and

Implementing (secure) Api Keys in an app

别来无恙 提交于 2019-12-06 15:56:24
I wrote a Web Application and I would like to allow other developers to get the information from it. The server Im working on is not that awsome and cant handle that many request, so the idea is to generate and assign api keys to everyone that wants to query our information. With Api keys I can limit the daily requests and perhaps collect some statistics to see what information is really useful for the other developers. The thing is, Im concerned about the security aspect of it. Since the Api key is going to be sent to our server (via GET/POST etc), someone could sniff the request with

how should I use strace to snif the serial port?

梦想的初衷 提交于 2019-12-06 02:12:04
问题 I am writing an application in linux and need to access the serial port. For debugging purposes I need to snif what comes and/or goes through the serial port. I looked around and found out I can use strace to do that. So I tried the following: -I print the file_descriptor of the serial device that I use. (after restarting my application a few times, I reassured myself that the file_descriptor number my application gets from kernel is "4" -if i start my application as strace -e write=4 ./myapp

Raw Socket Sniffing in Golang

霸气de小男生 提交于 2019-12-05 14:54:52
问题 I have a question concerning tcp packet sniffing with golang. We have written a small tool which captures all incoming TCP packets comming from a fibre Tap. The current implementation uses a libpcap wrapper under Linux. We need to port this tool to Windows. Of course, it is not possible at the moment. So my question is, is there a cross platform solution for sniffing packets? We only need TCP packets, IP headers , no Ethernet Data and not all features of libpcap. If there is no cross platform

Is there a low level Network library to sniff and change network traffic? [closed]

五迷三道 提交于 2019-12-04 13:51:27
问题 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 last year . I am looking for a way to sniff network packets and encode them with C# (in summary: alter network traffic). I don't know how to explain my request but I need something like "Keyboard Hook". Is there any library or software in .net or Windows API? 回答1: I don't think this is possible by default. But there are

how should I use strace to snif the serial port?

末鹿安然 提交于 2019-12-04 07:25:55
I am writing an application in linux and need to access the serial port. For debugging purposes I need to snif what comes and/or goes through the serial port. I looked around and found out I can use strace to do that. So I tried the following: -I print the file_descriptor of the serial device that I use. (after restarting my application a few times, I reassured myself that the file_descriptor number my application gets from kernel is "4" -if i start my application as strace -e write=4 ./myapp , I would expect to get messages in the terminal, from file_descriptor "4" only. instead I get looots

Raw Socket Sniffing in Golang

笑着哭i 提交于 2019-12-04 00:45:51
I have a question concerning tcp packet sniffing with golang. We have written a small tool which captures all incoming TCP packets comming from a fibre Tap. The current implementation uses a libpcap wrapper under Linux. We need to port this tool to Windows. Of course, it is not possible at the moment. So my question is, is there a cross platform solution for sniffing packets? We only need TCP packets, IP headers , no Ethernet Data and not all features of libpcap. If there is no cross platform solution, two Code implementation would be ok, too. I know one can use raw sockets under Linux (and

Simple Raw Packet Sniffer In Python

为君一笑 提交于 2019-12-03 20:40:32
First, I'm a beginner in python. I developed a simple raw packet sniffer utilizing the PF_PACKET interface that operates at layer 2. The sniffer simply figures out the following... - Ethernet Header (Source - Destination - Protocol) - IP Header (Source IP - Destination IP) - TCP Header(Source Port - Destination Port) Here's the code I've written so far... #!/usr/bin/env python import struct import socket import binascii rawSocket=socket.socket(socket.PF_PACKET,socket.SOCK_RAW,socket.htons(0x0800)) #ifconfig eth0 promisc up receivedPacket=rawSocket.recv(2048) #Ethernet Header... ethernetHeader