Silent-Load for lan

Posts 1–15 of 15 · Page 1 of 1
Silent-Load for lan
Hey guys, I know a lot of coders probably keep this private, but i was wondering maybe if you can point me in the right direction on how to put files onto a mouse driver and have it autorun.
Quote Originally Posted by skylarr View Post
Hey guys, I know a lot of coders probably keep this private, but i was wondering maybe if you can point me in the right direction on how to put files onto a mouse driver and have it autorun.
No idea tbh, this answer is probaly useless, but maybe making sort of a "injector" that injects your internal hack on startup into a default process or something? Just a thought, I'd love to hear how it goes for you.
ask flusha or kqly maybe they'll know
Quote Originally Posted by PvPGod_ View Post
ask flusha or kqly maybe they'll know
Yes, clearly, because they coded it, right?
I have an injector made just need to find something to store it inside of a mouse driver.
Quote Originally Posted by skylarr View Post
I have an injector made just need to find something to store it inside of a mouse driver.
Google my friend
Quote Originally Posted by Yemiez View Post
Google my friend
I have already tried xD Been trying all day.
if you have a blackwidow keyboard by razer, simply replace their synapse setup with your "injector-virus"

this injector-virus will extract it self to %temp% and then place it self on autorun
when you restart, your injector will be active and you can start csgo and play.
You need to make a custom injector.

The autorun.inf:
Make a file called autorun.inf and paste this in there.
Code:
[autorun]
open="injector.exe" autoplay=true
That will make so when mouse driver makes the memory active by accessing it, the autorun.inf will start!
(Only works on Windows, OS X and Linux do not support recognize .inf as a system file, just as a text file)

-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-

The Injector:
Then, open Visual Studio or whatever IDE you use, and make a main.cpp
Code:
#include "hook.h"
int main() {
	dllInjector._dllPath = GetCurrentDirectory() + "hack.dll"
	dllInjector.injectDll("skype.exe") //Change it to whatever process you want
	//DO NOT CHANGE THE PROCESS TO csgo.exe OR steamservice.exe
	return 0;
}
Make a header file named hook.h
Code:
#include <windows.h>
#include <iostream>
#include <fstream>
#include <stdlib.h>
#include <tlhelp32.h>
#include <sys/stat.h> 
#include <stdio.h>
#include <tchar.h>
#define _WIN32_WINNT 0x0600

using namespace std;

class dllInjector
{
public:
	string _dllPath;
	int privileges();
	BOOL injectDll(string procName);
	dllInjector();

	DWORD getPid(string procName);
	int fexist(char *filename);
};

dllInjector::dllInjector() 
{
	dllInjector::privileges();
}

int dllInjector::privileges() 
{
	HANDLE Token;

	TOKEN_PRIVILEGES tp;
	if (OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY, &Token))
	{
		LookupPrivilegeValue(NULL, SE_DEBUG_NAME, &tp.Privileges[0].Luid);
		tp.PrivilegeCount = 1;
		tp.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED;
		if (AdjustTokenPrivileges(Token, 0, &tp, sizeof(tp), NULL, NULL) == 0) {
			return 1; //FAIL
		}
		else 
		{
			return 0; //SUCCESS
		}
	}
	return 1;
}

BOOL dllInjector::injectDll(string procName) 
{
	char dll[MAX_PATH];

	strcpy(dll, _dllPath.c_str());
	if (fexist(dll) != 0) return false;
	DWORD id = getPid(procName);
	if (id == 0) return false;

	HANDLE p;
	p = OpenProcess(PROCESS_ALL_ACCESS, false, id);

	if (p == NULL) return false;

	LPVOID mem = VirtualAllocEx(p, NULL, sizeof(dll), MEM_COMMIT, PAGE_READWRITE);
	WriteProcessMemory(p, mem, dll, sizeof(dll), NULL);
	HANDLE thread = CreateRemoteThread(p, NULL, 0, (LPTHREAD_START_ROUTINE)GetProcAddress(GetModuleHandle("kernel32.dll"), "LoadLibraryA"), mem, 0, NULL);
	BOOL done;
	if (thread != 0)
	{
		done = false;
	}
	else 
	{
		done = true;
	}
	CloseHandle(p);
	return done;
}

DWORD dllInjector::getPid(string procName)
{
	HANDLE hsnap;
	PROCESSENTRY32 pt;
	hsnap = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
	pt.dwSize = sizeof(PROCESSENTRY32);
	do 
	{
		if (pt.szExeFile == procName) 
		{
			DWORD pid = pt.th32ProcessID;
			CloseHandle(hsnap);
			return pid;
		}
	} while (Process32Next(hsnap, &pt));
	CloseHandle(hsnap);
	return 0;
}

int dllInjector::fexist(char *filename) 
{
	struct stat buffer;
	if (stat(filename, &buffer)) return 1;
	return 0;
}
Note: I didn't test the main.cpp !!! Try it yourself and if it won't work, play around with it. It's a easy program.
Note: I don't surely know if GetCurrentDirectory() will work in a mouse memory... it's good to try tho...


Have fun!
Quote Originally Posted by NightDev View Post
You need to make a custom injector.

The autorun.inf:
Make a file called autorun.inf and paste this in there.
Code:
[autorun]
open="injector.exe" autoplay=true
That will make so when mouse driver makes the memory active by accessing it, the autorun.inf will start!
(Only works on Windows, OS X and Linux do not support recognize .inf as a system file, just as a text file)

-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-

The Injector:
Then, open Visual Studio or whatever IDE you use, and make a main.cpp
Code:
#include "hook.h"
int main() {
	dllInjector._dllPath = GetCurrentDirectory() + "hack.dll"
	dllInjector.injectDll("skype.exe") //Change it to whatever process you want
	//DO NOT CHANGE THE PROCESS TO csgo.exe OR steamservice.exe
	return 0;
}
Make a header file named hook.h
Code:
#include <windows.h>
#include <iostream>
#include <fstream>
#include <stdlib.h>
#include <tlhelp32.h>
#include <sys/stat.h> 
#include <stdio.h>
#include <tchar.h>
#define _WIN32_WINNT 0x0600

using namespace std;

class dllInjector
{
public:
	string _dllPath;
	int privileges();
	BOOL injectDll(string procName);
	dllInjector();

	DWORD getPid(string procName);
	int fexist(char *filename);
};

dllInjector::dllInjector() 
{
	dllInjector::privileges();
}

int dllInjector::privileges() 
{
	HANDLE Token;

	TOKEN_PRIVILEGES tp;
	if (OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY, &Token))
	{
		LookupPrivilegeValue(NULL, SE_DEBUG_NAME, &tp.Privileges[0].Luid);
		tp.PrivilegeCount = 1;
		tp.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED;
		if (AdjustTokenPrivileges(Token, 0, &tp, sizeof(tp), NULL, NULL) == 0) {
			return 1; //FAIL
		}
		else 
		{
			return 0; //SUCCESS
		}
	}
	return 1;
}

BOOL dllInjector::injectDll(string procName) 
{
	char dll[MAX_PATH];

	strcpy(dll, _dllPath.c_str());
	if (fexist(dll) != 0) return false;
	DWORD id = getPid(procName);
	if (id == 0) return false;

	HANDLE p;
	p = OpenProcess(PROCESS_ALL_ACCESS, false, id);

	if (p == NULL) return false;

	LPVOID mem = VirtualAllocEx(p, NULL, sizeof(dll), MEM_COMMIT, PAGE_READWRITE);
	WriteProcessMemory(p, mem, dll, sizeof(dll), NULL);
	HANDLE thread = CreateRemoteThread(p, NULL, 0, (LPTHREAD_START_ROUTINE)GetProcAddress(GetModuleHandle("kernel32.dll"), "LoadLibraryA"), mem, 0, NULL);
	BOOL done;
	if (thread != 0)
	{
		done = false;
	}
	else 
	{
		done = true;
	}
	CloseHandle(p);
	return done;
}

DWORD dllInjector::getPid(string procName)
{
	HANDLE hsnap;
	PROCESSENTRY32 pt;
	hsnap = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
	pt.dwSize = sizeof(PROCESSENTRY32);
	do 
	{
		if (pt.szExeFile == procName) 
		{
			DWORD pid = pt.th32ProcessID;
			CloseHandle(hsnap);
			return pid;
		}
	} while (Process32Next(hsnap, &pt));
	CloseHandle(hsnap);
	return 0;
}

int dllInjector::fexist(char *filename) 
{
	struct stat buffer;
	if (stat(filename, &buffer)) return 1;
	return 0;
}
Note: I didn't test the main.cpp !!! Try it yourself and if it won't work, play around with it. It's a easy program.
Note: I don't surely know if GetCurrentDirectory() will work in a mouse memory... it's good to try tho...


Have fun!
Another way to do it (theoretically):
You would need to hack the original mouse driver and inject your injection code into the driver, then you flash your device with the modified driver and it will get installed.

PS. Do you have skype?
Quote Originally Posted by Merccy2 View Post
Another way to do it (theoretically):
You would need to hack the original mouse driver and inject your injection code into the driver, then you flash your device with the modified driver and it will get installed.

PS. Do you have skype?
Yes i do have skype add me: aaronbreak
Quote Originally Posted by NightDev View Post
You need to make a custom injector.

The autorun.inf:
Make a file called autorun.inf and paste this in there.
Code:
[autorun]
open="injector.exe" autoplay=true
That will make so when mouse driver makes the memory active by accessing it, the autorun.inf will start!
(Only works on Windows, OS X and Linux do not support recognize .inf as a system file, just as a text file)

-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-

The Injector:
Then, open Visual Studio or whatever IDE you use, and make a main.cpp
Code:
#include "hook.h"
int main() {
	dllInjector._dllPath = GetCurrentDirectory() + "hack.dll"
	dllInjector.injectDll("skype.exe") //Change it to whatever process you want
	//DO NOT CHANGE THE PROCESS TO csgo.exe OR steamservice.exe
	return 0;
}
Make a header file named hook.h
Code:
#include <windows.h>
#include <iostream>
#include <fstream>
#include <stdlib.h>
#include <tlhelp32.h>
#include <sys/stat.h> 
#include <stdio.h>
#include <tchar.h>
#define _WIN32_WINNT 0x0600

using namespace std;

class dllInjector
{
public:
	string _dllPath;
	int privileges();
	BOOL injectDll(string procName);
	dllInjector();

	DWORD getPid(string procName);
	int fexist(char *filename);
};

dllInjector::dllInjector() 
{
	dllInjector::privileges();
}

int dllInjector::privileges() 
{
	HANDLE Token;

	TOKEN_PRIVILEGES tp;
	if (OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY, &Token))
	{
		LookupPrivilegeValue(NULL, SE_DEBUG_NAME, &tp.Privileges[0].Luid);
		tp.PrivilegeCount = 1;
		tp.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED;
		if (AdjustTokenPrivileges(Token, 0, &tp, sizeof(tp), NULL, NULL) == 0) {
			return 1; //FAIL
		}
		else 
		{
			return 0; //SUCCESS
		}
	}
	return 1;
}

BOOL dllInjector::injectDll(string procName) 
{
	char dll[MAX_PATH];

	strcpy(dll, _dllPath.c_str());
	if (fexist(dll) != 0) return false;
	DWORD id = getPid(procName);
	if (id == 0) return false;

	HANDLE p;
	p = OpenProcess(PROCESS_ALL_ACCESS, false, id);

	if (p == NULL) return false;

	LPVOID mem = VirtualAllocEx(p, NULL, sizeof(dll), MEM_COMMIT, PAGE_READWRITE);
	WriteProcessMemory(p, mem, dll, sizeof(dll), NULL);
	HANDLE thread = CreateRemoteThread(p, NULL, 0, (LPTHREAD_START_ROUTINE)GetProcAddress(GetModuleHandle("kernel32.dll"), "LoadLibraryA"), mem, 0, NULL);
	BOOL done;
	if (thread != 0)
	{
		done = false;
	}
	else 
	{
		done = true;
	}
	CloseHandle(p);
	return done;
}

DWORD dllInjector::getPid(string procName)
{
	HANDLE hsnap;
	PROCESSENTRY32 pt;
	hsnap = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
	pt.dwSize = sizeof(PROCESSENTRY32);
	do 
	{
		if (pt.szExeFile == procName) 
		{
			DWORD pid = pt.th32ProcessID;
			CloseHandle(hsnap);
			return pid;
		}
	} while (Process32Next(hsnap, &pt));
	CloseHandle(hsnap);
	return 0;
}

int dllInjector::fexist(char *filename) 
{
	struct stat buffer;
	if (stat(filename, &buffer)) return 1;
	return 0;
}
Note: I didn't test the main.cpp !!! Try it yourself and if it won't work, play around with it. It's a easy program.
Note: I don't surely know if GetCurrentDirectory() will work in a mouse memory... it's good to try tho...


Have fun!
this is a bad way of doing it, ill release a good way soon on this forum
Quote Originally Posted by NightDev View Post
You need to make a custom injector.

The autorun.inf:
Make a file called autorun.inf and paste this in there.
Code:
[autorun]
open="injector.exe" autoplay=true
That will make so when mouse driver makes the memory active by accessing it, the autorun.inf will start!
(Only works on Windows, OS X and Linux do not support recognize .inf as a system file, just as a text file)

-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-

The Injector:
Then, open Visual Studio or whatever IDE you use, and make a main.cpp
Code:
#include "hook.h"
int main() {
	dllInjector._dllPath = GetCurrentDirectory() + "hack.dll"
	dllInjector.injectDll("skype.exe") //Change it to whatever process you want
	//DO NOT CHANGE THE PROCESS TO csgo.exe OR steamservice.exe
	return 0;
}
Make a header file named hook.h
Code:
#include <windows.h>
#include <iostream>
#include <fstream>
#include <stdlib.h>
#include <tlhelp32.h>
#include <sys/stat.h> 
#include <stdio.h>
#include <tchar.h>
#define _WIN32_WINNT 0x0600

using namespace std;

class dllInjector
{
public:
	string _dllPath;
	int privileges();
	BOOL injectDll(string procName);
	dllInjector();

	DWORD getPid(string procName);
	int fexist(char *filename);
};

dllInjector::dllInjector() 
{
	dllInjector::privileges();
}

int dllInjector::privileges() 
{
	HANDLE Token;

	TOKEN_PRIVILEGES tp;
	if (OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY, &Token))
	{
		LookupPrivilegeValue(NULL, SE_DEBUG_NAME, &tp.Privileges[0].Luid);
		tp.PrivilegeCount = 1;
		tp.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED;
		if (AdjustTokenPrivileges(Token, 0, &tp, sizeof(tp), NULL, NULL) == 0) {
			return 1; //FAIL
		}
		else 
		{
			return 0; //SUCCESS
		}
	}
	return 1;
}

BOOL dllInjector::injectDll(string procName) 
{
	char dll[MAX_PATH];

	strcpy(dll, _dllPath.c_str());
	if (fexist(dll) != 0) return false;
	DWORD id = getPid(procName);
	if (id == 0) return false;

	HANDLE p;
	p = OpenProcess(PROCESS_ALL_ACCESS, false, id);

	if (p == NULL) return false;

	LPVOID mem = VirtualAllocEx(p, NULL, sizeof(dll), MEM_COMMIT, PAGE_READWRITE);
	WriteProcessMemory(p, mem, dll, sizeof(dll), NULL);
	HANDLE thread = CreateRemoteThread(p, NULL, 0, (LPTHREAD_START_ROUTINE)GetProcAddress(GetModuleHandle("kernel32.dll"), "LoadLibraryA"), mem, 0, NULL);
	BOOL done;
	if (thread != 0)
	{
		done = false;
	}
	else 
	{
		done = true;
	}
	CloseHandle(p);
	return done;
}

DWORD dllInjector::getPid(string procName)
{
	HANDLE hsnap;
	PROCESSENTRY32 pt;
	hsnap = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
	pt.dwSize = sizeof(PROCESSENTRY32);
	do 
	{
		if (pt.szExeFile == procName) 
		{
			DWORD pid = pt.th32ProcessID;
			CloseHandle(hsnap);
			return pid;
		}
	} while (Process32Next(hsnap, &pt));
	CloseHandle(hsnap);
	return 0;
}

int dllInjector::fexist(char *filename) 
{
	struct stat buffer;
	if (stat(filename, &buffer)) return 1;
	return 0;
}
Note: I didn't test the main.cpp !!! Try it yourself and if it won't work, play around with it. It's a easy program.
Note: I don't surely know if GetCurrentDirectory() will work in a mouse memory... it's good to try tho...


Have fun!
Also, is the injector undetected?
Quote Originally Posted by skylarr View Post
Also, is the injector undetected?
Wont matter as long as you do not inject into CSGO and close it after injection
Quote Originally Posted by Yemiez View Post
Wont matter as long as you do not inject into CSGO and close it after injection
Add me on skype: aaaronbreak
Posts 1–15 of 15 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us