View Single Post
UNKNOWNFILE UNKNOWNFILE's Avatar

JCF Member

Joined: Aug 2005

Posts: 1,146

UNKNOWNFILE is doing well so far

Jan 21, 2006, 08:27 PM
UNKNOWNFILE is offline
I've put together a mircscript which I call "NetMon" which currently connects to a specified server and logs TCP data for 30 seconds then quits. Here's the code. Packets not included.
Code:
/*
NetMon source code
(C)2006 Peter S. Conway
*/
alias spy {
  if ($1 == $null) { /echo -t Specify the server you idiot. | halt }
  /echo -t Opening spy to $1 $+ ...
  /set %ip $1
  /sockopen spy $1 10052
  /write Log_ $+ %ip $+ .txt Log initiated at $date $time EDT by UNKNOWNFILE
}

on 1:SOCKOPEN:spy: {
  bread joinpack.bin 0 9 &info
  sockwrite spy &info
  bread netmon_sendname.bin 0 16 &info
  sockwrite spy &info
  bread somepack.bin 0 16 &info
  sockwrite spy &info
  bread sayhi.bin 0 93 &info
}

on 1:SOCKREAD:spy: {
  sockread &summat
  /bwrite Log_ $+ %ip $+ .txt -1 -1 &summat
 /echo -t Data recieved from server.
}

on 1:SOCKCLOSE:spy: {
  /echo -t Connection dropped from server. Be sure to save the logs!
}
So, any suggestions?
__________________
I'm sick and tired of this community. So goodbye.

PS: Unreal > JJ2.