sensing data passed through lan card of a pc
-
If you're talking about capturing only your applications data, then it's quite easy to do. If you're talking about logging any data that's going in or out of the nic, that's much more difficult, and you can't do it with the socket classes. You'll need WinPcap[^] for that. BTW, logging all of the data is going to take a TON of resources and could easily slow down the entire machine as well as consume large amounts of memory and disk space. Keeping track of converstations that you could report on is going to be a bit tedious. You'd have to keep track of which IP's and ports are connected to which other IP's and ports and sort your data based on those. You'll also have to create your own packet analyzer because looking at raw packet data just isn't useful to human managers. What you're making is a standard network sniffer and packet analyzer and this is a HUGE project. BTW, since an estimated one third of the traffic going acrossed the nic is encrypted now-a-days, you won't be able to see what's in those packets. It's just be a ton of garbage data that won't make any sense at all.
A guide to posting questions on CodeProject[^]
Dave Kreskowiakyes as my project requirement i have to create log of data that is shared with other computers and upload or download from internet...... so acc. to you socket class is not helpfull, ok then. Can we track shared files details? well thank you very much for your reply. it helped me lot...... :)
-
yes as my project requirement i have to create log of data that is shared with other computers and upload or download from internet...... so acc. to you socket class is not helpfull, ok then. Can we track shared files details? well thank you very much for your reply. it helped me lot...... :)
I already told you what you use to capture network traffic. My instincts are screaming at me not to ask this question, but WHY are you trying to see all the network traffic and what does this have to do with tracking shared files?
A guide to posting questions on CodeProject[^]
Dave Kreskowiak -
hello everyone, i m stuck at this problem. how to track or sens lan card data using c#. i have to keep eye on a computer communication with other and have to show log of data that is communicated over a netwok. after lot of searching as i m able to understand it is possible through socket programming. if i m wrong then let me know........ :) someone help to find out this problem and also suggest me its a big project or a small module.... i m really thankfull to you...............
-
Why do you need to create this rather than just finding an existing application that already does it?
ok, ok friends actually its not my requirement...... my project requirement to monitor lan card data that is passed through lan card........ :( i know it's complicated. but now i have to know, related classes in c# and size of project. actually i already done to monitor shared folder using wmi classes but it required refreshing again n again... :( and also it is not able to monitor data that is communicate over internet. if you know existing project then plz tell me. thank you so much...
-
ok, ok friends actually its not my requirement...... my project requirement to monitor lan card data that is passed through lan card........ :( i know it's complicated. but now i have to know, related classes in c# and size of project. actually i already done to monitor shared folder using wmi classes but it required refreshing again n again... :( and also it is not able to monitor data that is communicate over internet. if you know existing project then plz tell me. thank you so much...
I can't really tell what you are asking there but I think you are suggesting that you don't actually need to implement it yourself. So you can look for 'wireshark'. There is also a many commercial apps, generally firewalls I believe, which can record IP traffic.
-
I already told you what you use to capture network traffic. My instincts are screaming at me not to ask this question, but WHY are you trying to see all the network traffic and what does this have to do with tracking shared files?
A guide to posting questions on CodeProject[^]
Dave KreskowiakActually i m doning a project related with network monitoring can we track name of files that is passed through lan card of personal computer as admin. i already done to find shared folders detail using WMI class. but its not sufficient it require to refresh code again n again. so plz tell me its a big project or a simple module. thank you again....... :)
-
Actually i m doning a project related with network monitoring can we track name of files that is passed through lan card of personal computer as admin. i already done to find shared folders detail using WMI class. but its not sufficient it require to refresh code again n again. so plz tell me its a big project or a simple module. thank you again....... :)
Even with this description, it's the exact same project. The only way to get a filename out of it is if you understand the SMB protocol and anaylze each packet, looking for the appropriate fields. You can find the specifications for SMB and SMB2 here[^] and here[^]. It would also help if you had a real network sniffer and looked at what's really going over the wire when you perform the operations you are looking for. Having said all that, that only covers copying a file from one machine to another using normal Windows file copy methods. It doesn't cover HTTP or FTP or any other non-SMB based application protocol.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak -
Even with this description, it's the exact same project. The only way to get a filename out of it is if you understand the SMB protocol and anaylze each packet, looking for the appropriate fields. You can find the specifications for SMB and SMB2 here[^] and here[^]. It would also help if you had a real network sniffer and looked at what's really going over the wire when you perform the operations you are looking for. Having said all that, that only covers copying a file from one machine to another using normal Windows file copy methods. It doesn't cover HTTP or FTP or any other non-SMB based application protocol.
A guide to posting questions on CodeProject[^]
Dave Kreskowiaknow i m able to understand depth of this project. its really big one. its level is high an d i m beginner. so i change my idea, ok packet sniffer is good one. firstly i m trying to find download complete event that system shows after downloading. thank you so much :)
-
now i m able to understand depth of this project. its really big one. its level is high an d i m beginner. so i change my idea, ok packet sniffer is good one. firstly i m trying to find download complete event that system shows after downloading. thank you so much :)
There isn't one.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak -
There isn't one.
A guide to posting questions on CodeProject[^]
Dave Kreskowiakok then i will try to find ip packets and other details....... :)