Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. sensing data passed through lan card of a pc

sensing data passed through lan card of a pc

Scheduled Pinned Locked Moved C#
helpcsharpalgorithmstutorial
12 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Dave Kreskowiak

    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 Kreskowiak

    A Offline
    A Offline
    Aisha sharma
    wrote on last edited by
    #3

    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...... :)

    D 1 Reply Last reply
    0
    • A Aisha sharma

      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...... :)

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #4

      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

      A 1 Reply Last reply
      0
      • A Aisha sharma

        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...............

        J Offline
        J Offline
        jschell
        wrote on last edited by
        #5

        Why do you need to create this rather than just finding an existing application that already does it?

        A 1 Reply Last reply
        0
        • J jschell

          Why do you need to create this rather than just finding an existing application that already does it?

          A Offline
          A Offline
          Aisha sharma
          wrote on last edited by
          #6

          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...

          J 1 Reply Last reply
          0
          • A Aisha sharma

            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...

            J Offline
            J Offline
            jschell
            wrote on last edited by
            #7

            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.

            1 Reply Last reply
            0
            • D Dave Kreskowiak

              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

              A Offline
              A Offline
              Aisha sharma
              wrote on last edited by
              #8

              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....... :)

              D 1 Reply Last reply
              0
              • A Aisha sharma

                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....... :)

                D Offline
                D Offline
                Dave Kreskowiak
                wrote on last edited by
                #9

                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

                A 1 Reply Last reply
                0
                • D 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 Kreskowiak

                  A Offline
                  A Offline
                  Aisha sharma
                  wrote on last edited by
                  #10

                  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 :)

                  D 1 Reply Last reply
                  0
                  • A Aisha sharma

                    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 :)

                    D Offline
                    D Offline
                    Dave Kreskowiak
                    wrote on last edited by
                    #11

                    There isn't one.

                    A guide to posting questions on CodeProject[^]
                    Dave Kreskowiak

                    A 1 Reply Last reply
                    0
                    • D Dave Kreskowiak

                      There isn't one.

                      A guide to posting questions on CodeProject[^]
                      Dave Kreskowiak

                      A Offline
                      A Offline
                      Aisha sharma
                      wrote on last edited by
                      #12

                      ok then i will try to find ip packets and other details....... :)

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups