blob: 92398443b2af17320ae1eccf7651c55545d8d052 (
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
45
46
|
// moneybot server
// written with love by
// im friendly and boris
#ifdef WIN64
#include <Windows.h>
#pragma comment(lib, "ws2_32.lib")
#else
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#endif
#include <cstdio>
#include <cstdlib>
#include <string>
#include <fstream>
#include <thread>
#include "server.hpp"
#include "manual_map.hpp"
server::c_server g_server;
int main( ) {
//inject::c_pe_file file("test.bin");
//file.test();
int result = g_server.init( );
if( !result ) {
while( true ) {
g_server.listen( );
//Sleep( 1 );
}
}
// yas
if(result)
printf( "server init error (%d)\n", result );
system( "pause" );
return 0;
}
|