Wait, what?
Is Mr. Canadian Sunshine (aka Skyline) high again or did I tell you that? :)
Printable View
Naw, he said to you it was going to work outside halo and we'd have to do networking and you were like mb thats not that easy :D
I was going to work on it, but since im on XP I cant test it or anything so pretty hard for me to develop it.
I have a complete source in C# if you want :P
For security measures I suggest you use Netcat (a.k.a. nc) or take a look at its source.
Here is a batch file example named passnc comprised of five parts:
I. connectnc.bat <- Local computer
@cls
@color 8
@echo.
@echo -----------------------------------------
@echo USAGE: connectnc.bat [password]
@echo -----------------------------------------
@echo.
@echo %1 | nc -vv 127.0.0.1 42 -w 1
@echo Authorizing ...
@echo.
@nc -vv 127.0.0.1 43
@color
@cls
@echo.
@echo -----------------------------------------
@echo Disconnected
@echo -----------------------------------------
II. downps.txt <- Server
~leave blank~
III .pass.txt <- Server
*PASSWORD*
IV. passnc.bat <- Server
@cls
@type NUL > downps.txt
@echo.
@echo -------------------------------------------
@echo PASSNC is listening on port 42.
@echo -------------------------------------------
@echo.
:START
@nc -l -p 42 > downps.txt
@fc downps.txt pass.txt | find /i "FC: no differences encountered" > nul
@if errorlevel==1 goto WRONG
@color 8
@echo Access Granted on %date%-%time%
@type NUL > downps.txt
@echo.
@nc -l -p 43 -e cmd.exe
@goto START
:WRONG
@color fc
@echo Access Denied on %date%-%time%
@echo.
@type NUL > downps.txt
@goto START
V. Netcat itself (~60kb) <- Server
Don't forget to adjust the password file, ip address and the port number :lol:
Ever heard of the command 'echo off' ?
Tss...batching.
Make sure you really don't mess up the security on this thing...for example if the server checks the password...HEY! how about I'll do anything to crack the app down so you can find some flaws to fix :P
But off course..you guys have to build it first.