diff options
| author | JustSomePwner <crotchyalt@gmail.com> | 2018-08-30 14:01:54 +0200 |
|---|---|---|
| committer | JustSomePwner <crotchyalt@gmail.com> | 2018-08-30 14:01:54 +0200 |
| commit | 7ccb819f867493f8ec202ea3b39c94c198c64584 (patch) | |
| tree | 94622e61af0ff359e3d6689cf274d74f60b2492a /tf2/Source.cpp | |
| parent | 564d979b79e8a5aaa5014eba0ecd36c61575934f (diff) | |
first
Diffstat (limited to 'tf2/Source.cpp')
| -rw-r--r-- | tf2/Source.cpp | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/tf2/Source.cpp b/tf2/Source.cpp new file mode 100644 index 0000000..3bd44af --- /dev/null +++ b/tf2/Source.cpp @@ -0,0 +1,42 @@ +#pragma warning (disable:4018)
+
+#include <Windows.h>
+#include <iostream>
+
+#include "console.hpp"
+#include "interfaces.h"
+#include "search.h"
+#include "hooks.h"
+#include <thread>
+#include "base_cheat.h"
+
+HMODULE g_dll;
+
+void main_thread( HMODULE module ) {
+
+ cl.initialize( );
+
+
+
+ while ( !( GetAsyncKeyState( VK_END ) & 0x8000 ) ) {
+ std::this_thread::sleep_for( std::chrono::milliseconds( 100 ) );
+ }
+
+}
+
+bool __stdcall DllMain(
+ _In_ HINSTANCE hinstDLL,
+ _In_ DWORD fdwReason,
+ _In_ LPVOID lpvReserved ) {
+ if ( fdwReason == DLL_PROCESS_ATTACH /*&& ( uintptr_t )( lpvReserved ) == 20*/ ) { //nigga suck who dick?
+ DisableThreadLibraryCalls( hinstDLL );
+ g_dll = hinstDLL;
+ // coca cola coca cola yayo bought me everything
+
+ //no i did not dummy
+
+ CreateThread( nullptr, 0, reinterpret_cast< LPTHREAD_START_ROUTINE >( main_thread ), hinstDLL, 0, nullptr );
+ }
+
+ return true;
+}
\ No newline at end of file |
