Bypass Xigncode
Who can share me with their Xigncode bypass source code?, I am making SF2 bypass but can't find anything, Please PM me or leave a reply, or PM for add on Skype, Steam, etc...
#define WINVER 0x0500
#include <iostream>
#include <windows.h>
using namespace std;
BOOL EnableDebugPrivilege(BOOL bEnable) //gives you debug priv, usually not needed, but it fixed a problem for me
{
HANDLE hToken = NULL;
LUID luid;
if (!OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES, &hToken)) return FALSE;
if (!LookupPrivilegeValue(NULL, SE_DEBUG_NAME, &luid)) return FALSE;
TOKEN_PRIVILEGES tokenPriv;
tokenPriv.PrivilegeCount = 1;
tokenPriv.Privileges[0].Luid = luid;
tokenPriv.Privileges[0].Attributes = bEnable ? SE_PRIVILEGE_ENABLED : 0;
if (!AdjustTokenPrivileges(hToken, FALSE, &tokenPriv, sizeof(TOKEN_PRIVILEGES), NULL, NULL)) return FALSE;
return TRUE;
}
int main()
{
HWND ava_wind;
string windowName = "Alliance of Valiant Arms";
cout << "Waiting for AVA..." << endl;
while(true){
ava_wind = FindWindow(NULL, windowName.c_str());
if(ava_wind != 0){
break;
}
Sleep(1);
}
/*TCHAR title[500];
while(true){
ava_wind = GetForegroundWindow();
if(GetWindowText(ava_wind, title, 500)+1 == 25){ //this checks the length of the window name
break;
}
Sleep(1);
}*/
EnableDebugPrivilege(true);
DWORD* process_ID = new DWORD;
GetWindowThreadProcessId(ava_wind, process_ID);
HANDLE hProcess = OpenProcess(PROCESS_VM_OPERATION|PROCESS_VM_WRITE|PROCESS_VM_READ, FALSE, *process_ID);
if(!hProcess){
cout << GetLastError() << endl;
cout << "Could not open the process!" << endl;
}
else{
if(VirtualAllocEx(hProcess, NULL, 1, MEM_RESERVE | MEM_COMMIT, PAGE_READWRITE) != NULL){}
else{
cout << "VirtualAllocEx Failed" << endl;
cout << GetLastError() << endl; //get what error it returned
}
int newdata = 0xC3; //RETN in asm
DWORD newdatasize = sizeof(newdata);
if(WriteProcessMemory(hProcess, (LPVOID)0x041000, &newdata, newdatasize, NULL)){ //wrong address
cout << "XIGNCode Bypassed" << endl;
}
else{
cout << GetLastError() << endl;
cout << "Error cannot WriteProcessMemory!" << endl;
}
CloseHandle(hProcess);
}
Sleep(10000);
return 0;
}
#include <Windows.h>#include <iostream>#include <tlhelp32.h>#include <stdio.h>using namespace std;DWORD GetProcessId(const TCHAR* lpProcessName){ DWORD dwProcessId = 0; PROCESSENTRY32 entry; entry.dwSize = sizeof(PROCESSENTRY32); HANDLE snapshot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, NULL); if (snapshot != INVALID_HANDLE_VALUE) { if (Process32First(snapshot, &entry)) { do { if (_wcsicmp(entry.szExeFile, lpProcessName) == 0) { dwProcessId = entry.th32ProcessID; break; } } while (Process32Next(snapshot, &entry)); } CloseHandle(snapshot); } return dwProcessId;}void suspend(DWORD processId){ HANDLE hThreadSnapshot = CreateToolhelp32Snapshot(TH32CS_SNAPTHREAD, 0); THREADENTRY32 threadEntry; threadEntry.dwSize = sizeof(THREADENTRY32); if (hThreadSnapshot != INVALID_HANDLE_VALUE) { if (Thread32First(hThreadSnapshot, &threadEntry)) { do { if (threadEntry.th32OwnerProcessID == processId) { HANDLE hThread = OpenThread(THREAD_ALL_ACCESS, FALSE, threadEntry.th32ThreadID); if (hThread) { SuspendThread(hThread); CloseHandle(hThread); } } } while (Thread32Next(hThreadSnapshot, &threadEntry)); } CloseHandle(hThreadSnapshot); }}int main(int argc, TCHAR* argv[]){ SetConsoleTitle(TEXT("MPGH Riddick AVA Xigncode3 Bypass")); cout << "Searching for AVA..." << endl; DWORD dwProcessId; while (!(dwProcessId = GetProcessId(TEXT("AVA.exe"))))/ Sleep(1); cout << "We've found AVA!" << endl; HANDLE hProcess = OpenProcess(PROCESS_VM_READ | PROCESS_VM_WRITE | PROCESS_VM_OPERATION, FALSE, dwProcessId); if (hProcess) { cout << "Trying to get in..." << endl; const DWORD dwLocationOfFunction = 0x429570; (This is the old Xigncode3 address, and you'll need to find the new one) BYTE FirstByte; DWORD dwOldProtection; while (!ReadProcessMemory(hProcess, (LPVOID)dwLocationOfFunction, &FirstByte, sizeof(FirstByte), NULL) || FirstByte != 0x55) { if (GetLastError() == ERROR_ACCESS_DENIED) cout << "ERROR_ACCESS_DENIED" << endl; Sleep(1); } cout << "Killing Xigncode3" << endl; const BYTE ByteToWrite = 0xC3; BOOL bSuccess = VirtualProtectEx(hProcess, (LPVOID)dwLocationOfFunction, sizeof(FirstByte), PAGE_EXECUTE_READWRITE, &dwOldProtection); if (bSuccess) bSuccess = WriteProcessMemory(hProcess, (LPVOID)dwLocationOfFunction, &ByteToWrite, sizeof(ByteToWrite), NULL); CloseHandle(hProcess); if (bSuccess) cout << "Bypassed by MPGH Riddick Haxor" << endl; } cin.get(); return 0;}