summaryrefslogtreecommitdiff
path: root/loader/client/client_windows.cpp
blob: 3f44d176174b3795d42a0c0c6a404afceed38e94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// moneybot client
// written with love by
// im friendly and boris

#include <Windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <iostream>
#include <winternl.h>

#pragma comment( lib, "ws2_32.lib" )

#include "connect.hpp"
#include "syscall.hpp"

/*
	-> connect
	-> login
	-> check hwid
	-> check sub
	-> request game
	-> network dll (no header)
	-> allocate, send address to server
	-> send original endscene address, send endscene pointer
	-> send virtualprotect export
	-> receive shellcode from server
	-> write file and run shellcode
*/
int main( ) {
	// START.
	client::c_connect c( "127.0.0.1" );
	if( !c.setup( ) )
		return 1;
	
	if( !c.connect( ) )
		return 2;
	
	c.handle( );

	system( "pause" );

	return 0;
}