Hi again, I mistakenly said remote machine in my earlier message, in fact it was on the desktop. However, when I activete "ARP spoofing" when I choose a remote host, then switch to the remote host, I cant browse anymore any website
Hi and thanks for your comment ! Did you enable IP forwarding on your machine?because Otherwise, ARP spoofing will block the internet on the target device.
Yes I have enabled IP Forwarding but can you please tell me which port should be allowed on the remote machine? The tool discover all machines that Windows firewall are disabled, I have only one which has its firewall enabled which the tool does nit list in the found devices.
Also, on 1 machine, I enable ARP sniff, I browse to 1 web site the tool displays details as expected, however, browsing to other web sites are not captured
It depends on the DNS cache, for example if the website exists in DNS cache then it will be not displayed in the sniffer program ,so what you have to do now is to delete the dns cache on the target machine and try again,note : to delete Dns cache Please use the following command :
ipconfig /flushdns
Hi, so many thanks for making this available and your hard work. Please correct me if I am mistaken, to capture packets on a remote machine from my desktop, I should use "Arp" spoofing? As when I tried this scenario without enabling ARP spoofing nothing gets displayed. Also, I have a couple of suggestions/comments: 1st, is it possible to choose 2 adapters instead of 1 as I have 2 Nics on my desktop, sometines NIC1 responds sometimes NIC2 so I needed to do the tests and switch beteween both. 2nd when I resize the form different elements don't get resized accordingly.
Hi and thanks for your comment ! yes you have to enable arp spoofing when you trying to capture packets from others device in the same network ,, with regard to your suggestions you can ,,adding some futures and using the arp class ,, capture packets from more than one devices in the same time .
with regard to your 2nd suggestion such as futures are just available in platforms like wpf so you have just to change the GUI and use the Grid tag in xaml ...
Ammar, I downloaded the code source, opened it in VS 2022, not able to find the ARP class and there is only 1 win form. I tried to debug or rebuild I get the following errors
Error CS0246 The type or namespace name 'IPClass' could not be found (are you missing a using directive or an assembly reference?) Network Scanner C:\Projects\CodeProject\NetworkScannerAndSniffer\Network Scanner\Network Scanner\NetworkScanner.cs 318 Active
along with a swiggly line under IPClass line 318 in NetworkScanner.cs
Generally I can't detect/fix the error, I first have to look at the project as it loaded by you. Could you please send me a screenshot to see how it loaded into your computer,if you cannot upload the screenshot here please send it to my email ammaralbush1997@gmail.com i will then give you an answer for how to correctly compile the code ..
best regards
Ammar Albush
Sorry, my bad, I have downloaded the code source from Part 1, now I downloaded it from Part 3 and it compiles and works fine. However, I enabled IP forwarding on the target machine and flushed the DNS on this machine, still, when I enable ARP sniff I cant browse anything and the tool does not display anything. I will send you 2 screenshots where I used the 2 NICs on the desktop machine
i can not compile the code, i have the error "MSB3821 Couldn't process file NetworkScanner.resx due to its being in the Internet or Restricted zone or having the mark of web on the file"
How can i fix it pleas?
Hi , thank you for your comment , could you please try the folowing solution from stackoverflow
1_Open the file explorer.
2_Navigate to project/solution directory
3_Search for *.resx. --> You will get list of resx files
4_Right click the resx file, open the properties and check the option 'Unblock'
5_Repeat #3 for each resx file.
6_Reload the project