From f0424e31f233776a93d13caa98a4422385aedcd0 Mon Sep 17 00:00:00 2001 From: Unknown Date: Mon, 26 Nov 2018 21:49:09 +0000 Subject: fuck niggas --- client/client_windows.cpp | 73 +++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 70 insertions(+), 3 deletions(-) (limited to 'client/client_windows.cpp') diff --git a/client/client_windows.cpp b/client/client_windows.cpp index 76bd776..77fb949 100644 --- a/client/client_windows.cpp +++ b/client/client_windows.cpp @@ -3,15 +3,44 @@ #include #include #include +#include #pragma comment( lib, "ws2_32.lib" ) #include "connect.hpp" +/* + 1. Connect + 2. Send hello message + 3. Receive hello message from server, + 4. Enter and send username + 5. Enter and send password + 6. Send and let server check hardware id. + 7. Recieve list of games. + 8. Select game and send to server + 9. Receive space of dll. + 10. Allocate space for dll. + 11. Send base address of dll. + 12. Server does relocations. + 13. Server sends dll + 14. Client Manual maps dll + 15. Send game module list and possibly PE headers + 16. Server sends back needed module base addresses and possibly size. + 17. Call DLLMain with correct parameters (Included Base Addresses) + 18. In cheat DLLMain set up base addresses and do cheat stuff. +*/ + + + + +// note below is just pseudo unprotected code... +// will make not retarded soon. int main( ) { - std::string ip; - std::cin >> ip; + // TEMPORARY, WE NEED TO ENCRYPT IP STRING SO WE DON'T HAVE DDOS NOOBS. + std::string ip = "192.168.0.8"; + // std::cin >> ip; + // START. client::c_connect c( ip.c_str( ) ); if( !c.setup( ) ) return 1; @@ -19,7 +48,42 @@ int main( ) { if( !c.connect( ) ) return 2; + c.send_msg( "hello" ); + + auto msg = c.get_string( ); + if ( msg != xors( "hello" ) ) { + std::cout << "connection failed." << std::endl; + return 0; + } + + std::string username{ }, password{ }; + std::cout << "Enter your username" << std::endl << "> "; + std::cin >> username; + + c.send_msg( username.c_str( ) ); + msg = c.get_string( ); + if ( msg != xors( "correct username" ) ) { + std::cout << "incorrect username" << std::endl; + return 0; // remember to close connection on server when bad values were sent. + } + + std::cout << "Enter your password" << std::endl << "> "; + std::cin >> password; + c.send_msg( password.c_str( ) ); + if ( c.get_string( ) != xors( "correct password" ) ) { + std::cout << "incorrect password"; + return 0; // remember to close connection on server when bad values were sent. + } + + + + + + + + + /* const char* yes = "hello server"; char buf[ 255 ]; memcpy( buf, yes, strlen( yes ) ); @@ -39,8 +103,11 @@ int main( ) { printf( "\n" ); c.send_msg( ( uint8_t* )( buf ), strlen( yes ) ); + */ + + // c.~c_connect( ); + - c.~c_connect( ); system( "pause" ); return 0; } -- cgit v1.2.3