![]() ![]() I run the pcap executable in lap-1 hoping that I would able to capture packets transferred between lap-3 and lap-2 but pcap running in lap-1 is not able to do so with promiscuous mode on. So considering this, I made acting lap-3 as server and lap-2 remains as client. I googled about promiscuous mode and what I could infer was if device opens an interface in promiscuous mode it would able to capture all packets attached to that network. Then I turned off promiscuous mode and also in pcap_live_open function. Also in pcap_live_open method I have set promiscuous mode flag. ![]() ![]() I have turned on promiscuous mode using sudo ifconfig eth0 promisc. I'm able to capture packets using pcap in lap1. Using netcat I sent data from lap2 to lap1. I made lap-1 as server and listen on 9333 port. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |