Results 1 to 7 of 7

Thread: Packet Headers

  1. #1

    Thread Starter
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    I doubt i'll get an answer to this...but here goes.
    How would i intercept ALL packets being transmited and be able to edit them and send then on their way?

    D!m
    Dim

  2. #2
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    Canada
    Posts
    264
    Please Explain ! :-)

    In the beginning the universe was created. This has made a lot of people very angry and is generally regarded as a bad idea.

    - Douglas Adams
    The Hitchhiker's Guide to the Galaxy

  3. #3
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Like a firewall? You'd need to hook into the networking subsystem at a very low level.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  4. #4
    Guest
    I remember you asked this question before Dim, I had an idea, but it didn't work .

    But, as parksie said, a firewall catches events. Here is www.planet-source-code.com's results: Firewall

  5. #5

    Thread Starter
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    I can't seem to find any examples of a firewall that actually does what it's supposed to. Has anyone seen any good examples that they can reffer me too.
    If not, then an idea of how to get started on creating one that will capture ALL packets being transmited on ALL ports.
    Would simply listening on all ports with winsock do it?
    Code:
    Dim i As Integer
    For i = 1 To 65500 'not sure what the exact number is
        Winsock1.LocalPort = i
        Winsock1.Listen
    Next i
    and then have the data that arives/leaves enter a textbox. But how would i be able to pause the packet, edit it, and then allow it to continue on it way.
    Thank you,
    D!m
    Dim

  6. #6
    Lively Member
    Join Date
    Nov 1999
    Location
    Melbourne, Victoria, Australia
    Posts
    126

    Unhappy

    You cant monitor packets and edit them and resend using simple winsock. You will need to go low level as stated before, dont even bother trying to do it with visual basic or any windows program for that matter. If you really wanna do so, learn unix/linux and install a firewall and run a packet sniffer on your lan, even then, you still CANT edit packets and resend them.
    Regards,

    Paul Rivoli
    ---------------------
    [email protected]
    http://members.dingoblue.net.au/~privoli

  7. #7

    Thread Starter
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    I'm aware of the way to do it under unix...editing headers. But i was thinking that it would be possible to do it in windows. I guess i was wrong...thanx for all you help people.


    D!m
    Dim

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width