11/11/2023 0 Comments Pi wireshark captures#upload_file(fileName,"/",fileName, "YOUR_EMAIL","YOUR_PASSWORD") #Uploads the dump file to dropbox Print "Currently dumping file number " + str(count) + "." TcpDumpProcess = subprocess.Popen() #Sets up the TCPDump command #from dbupload import upload_file #Used for Dropbox uploadingįrom datetime import datetime # Used the genreate the filenameĬount = 0 #Counts the number of files that have been dumpedįileName = str(datetime.now().day) + "-" + str(datetime.now().month) + "-" + str(datetime.now().year) + " AT " + str(datetime.now().hour) + "-" + str(datetime.now().minute) The second script that starts after the one above is this python script. Adds the interfaces to bridge0 and starts the bridge. This script removed the IP address from eth0 and eth1. The first is this shell script below: ifconfig eth0 0.0.0.0 When the Raspberry pi starts it loads two scripts. The adapter i used is a USB to Fast Ethernet 10100 Mbps Network LAN Adapter Vista Linux 27723. A second USB to Ethernet adapter is used to provide the second interface. The raspberry pi is placed in the middle and any data travelling between each device is captured by it. I made a YouTube video in which i explain how it works and below you will find both the shell script and python script i used to setup the bridge and dump the packets respectively. I have setup a network sniffer that i can use to capture packets between two networking devices.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |