December 01, 2021, 08:06:36 am
Welcome, Guest. Please login or register.
Did you miss your activation email
News: Donate button moved
to navigation bar

PSO-HACK



Author Topic: Inject DLl Function  (Read 3959 times)

Offline guardian635

  • Member
  • **
  • Posts: 7
  • Reputation: +1/-0
Inject DLl Function
« on: June 03, 2014, 12:40:40 pm »
Code: [Select]
BOOL InjectDll(const char *DllFullPath, const DWORD dwRemoteProcessId)
{
        HANDLE hRemoteProcess;
        EnableDebugPriv(SE_DEBUG_NAME);

        hRemoteProcess = OpenProcess( PROCESS_ALL_ACCESS, FALSE, dwRemoteProcessId );

        char *pszLibFileRemote;

pszLibFileRemote = (char *) VirtualAllocEx( hRemoteProcess, NULL, lstrlen(DllFullPath)+1, MEM_COMMIT, PAGE_READWRITE);

WriteProcessMemory(hRemoteProcess, pszLibFileRemote, (void *) DllFullPath, lstrlen(DllFullPath)+1, NULL);

PTHREAD_START_ROUTINE pfnStartAddr = (PTHREAD_START_ROUTINE)
                        GetProcAddress(GetModuleHandle(TEXT("Kernel32")), "LoadLibraryA");

        HANDLE hRemoteThread;
        if( (hRemoteThread = CreateRemoteThread( hRemoteProcess, NULL, 0, pfnStartAddr, pszLibFileRemote, 0, NULL) ) == NULL)
        {

        return FALSE;
        }

        CloseHandle(hRemoteProcess);
        CloseHandle(hRemoteThread);

        return TRUE;
}

Offline asdasd888

  • Member
  • **
  • Posts: 10
  • Reputation: +0/-2
Re: Inject DLl Function
« Reply #1 on: June 05, 2014, 01:09:09 pm »
how to tutorial

Offline Zenislev

  • Leecher
  • *
  • Posts: 4
  • Reputation: +0/-0
Re: Inject DLl Function
« Reply #2 on: June 21, 2014, 12:16:31 am »
how to tutorial

If you don't know how to use it, it probably won't be of any use to you.

Offline sonram

  • Donator
  • Member
  • *
  • Posts: 7
  • Reputation: +0/-0
Re: Inject DLl Function
« Reply #3 on: October 05, 2017, 05:23:47 pm »
games pso 2 why ??
Facebook:Sonram Sukjit

Offline Dandelion

  • Donator
  • Member
  • *
  • Posts: 7
  • Reputation: +0/-0
Re: Inject DLl Function
« Reply #4 on: June 16, 2020, 05:40:32 pm »
cool stuff

 

© 2012-2021 PSO-HACK.COM
Designed by carbon