• Amused
  • Angry
  • Annoyed
  • Awesome
  • Bemused
  • Cocky
  • Cool
  • Crazy
  • Crying
  • Down
  • Drunk
  • Embarrased
  • Enraged
  • Friendly
  • Geeky
  • Godly
  • Happy
  • Hateful
  • Hungry
  • Innocent
  • Meh
  • Piratey
  • Poorly
  • Sad
  • Secret
  • Shy
  • Sneaky
  • Tired
  • Wtf
  • At Work
  • CodenzHub
  • Coding
  • Deejaying
  • Donating
  • Drinking
  • Eating
  • Editing
  • Hacking
  • Hate Mailing
  • Jamin'
  • Lagging
  • Live Streaming
  • Lurking
  • No Status
  • Pawning
  • PC Gaming
  • PS Gaming
  • Raging
  • Reversing
  • Sleeping
  • Steam Gaming
  • Trolling
  • TwitchStreamer
  • Vodka!
  • Watching TV/Movie
  • Xbox Gaming
  • Youtuber
  • Zombies
  • Results 1 to 8 of 8
    1. #1
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      mcdeliver1993's Avatar
      Join Date
      Jul 2013
      Posts
      5
      Thanks (-->)
      0
      Thanks (<--)
      0

      c++ dll injector via FTP

      Silent VPN
      hey fellas..I'm looking for a dll injector that download the dll from my ftp server and put it temporarily in a folder, and after injection it will be deleted

      im looking for a project or source.. im new to c++ and understand a little bit how it work..

      thx for the help

      kind regards McDeliver1993

      i got now this but also it wont inject into my process

      Code:
      #include <iostream> 
      #include <windows.h> 
      #include <urlmon.h>
      #pragma comment(lib, "Urlmon.lib")
      
      using namespace std; 
      
      int Inject(HWND hwnd, char *name); 
      
      void main()
      {
      	URLDownloadToFile(NULL, L"My ftp server location of DLL", L"C:\bf3.dll", 0, 0);
      	char dll[]="C:\bf3.dll";//Change the name to the dll you want to inject. 
      	HWND hw=0;
      	hw = FindWindow(L"bf3.exe",NULL);// process
      	cout<<"Coded by McDeliver1993.\n\n"<<endl; 
      	if(!hw) 
      	{ 
      		cout<<"Unable find window.\n\n"<<endl; 
      		system("pause");
      	} 
      	if(Inject(hw,dll)) 
      	{ 
      		cout<<"DLL has injected into the process successfully.\n\n"<<endl; 
      	} 
      	else 
      	{ 
      		cout<<"Couldn't inject DLL into the process.\n\n"<<endl; 
      	} 
      	system("pause");
      } 
      
      
      int Inject(HWND hwnd,char *name) 
      { 
      	DWORD Pid; 
      	HANDLE    hProcess,hThread; 
      	DWORD   BytesWritten; 
      	LPVOID    mem; 
      	GetWindowThreadProcessId(hwnd, &Pid); 
      	hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, Pid); 
      	
      	if(!hProcess) 
      		return 0; 
      
      	mem = VirtualAllocEx(hProcess, NULL,  strlen(name), MEM_RESERVE|MEM_COMMIT, PAGE_READWRITE); 
      	if(mem==NULL) 
      	{ 
      		CloseHandle(hProcess); 
      		return 0; 
      	} 
      	if(WriteProcessMemory(hProcess, mem, (LPVOID)name,  strlen(name), &BytesWritten)) 
      	{ 
      		hThread = CreateRemoteThread(hProcess, NULL, 0, (LPTHREAD_START_ROUTINE)GetProcAddress(GetModuleHandle(L"KERNEL32.DLL"), "LoadLibraryA"), mem, 0, NULL); 
      	
      		if(!hThread) 
      		{ 
      			VirtualFreeEx(hProcess,NULL,strlen(name),MEM_RESERVE|MEM_COMMIT); 
      			CloseHandle(hProcess); 
      			return 0; 
      		} 
      		
      		VirtualFreeEx(hProcess,NULL,strlen(name),MEM_RESERVE|MEM_COMMIT); 
      		CloseHandle(hThread); 
      		CloseHandle(hProcess); 
      		return 1; 
      	}    
      	
      	VirtualFreeEx(hProcess,NULL,strlen(name),MEM_RESERVE|MEM_COMMIT); 
      	CloseHandle(hProcess); 
      	return 0;
      }
      Last edited by mcdeliver1993; 09-12-2013 at 07:36 AM. Reason: adding my code

    2. #2
      Kim Kong Trasher
      I don't have status.
       
      Raging
       
      c5's Avatar
      Join Date
      Jul 2012
      Location
      Mankei Iland
      Posts
      1,221
      Thanks (-->)
      97
      Thanks (<--)
      492
      You're going to need to write a rootkit to do that unless you dump the dll into the memory. If you download it and inject you're gonna have handles open to it and you can't close them in r3 afaik..

      Not very smart thing to do anyways directly from ftp
      c++ dll injector via FTP

    3. #3
      Coder
      Kappa
       
      Hacking
       
      Szaka's Avatar
      Join Date
      Mar 2013
      Posts
      168
      Thanks (-->)
      1
      Thanks (<--)
      6
      too complex idea for me. But recently i was thinking of sending data (real asm code) which is pasted somewhere in program memory, then jumped into and jump back after execution. I wonder if simple send api could do the magic

    4. #4
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      mcdeliver1993's Avatar
      Join Date
      Jul 2013
      Posts
      5
      Thanks (-->)
      0
      Thanks (<--)
      0
      added my code

    5. #5
      Kim Kong Trasher
      I don't have status.
       
      Raging
       
      c5's Avatar
      Join Date
      Jul 2012
      Location
      Mankei Iland
      Posts
      1,221
      Thanks (-->)
      97
      Thanks (<--)
      492
      Quote Originally Posted by Szaka View Post
      But recently i was thinking of sending data (real asm code) which is pasted somewhere in program memory, then jumped into and jump back after execution. I wonder if simple send api could do the magic
      That will never work that simply. I could name tons of reasons why it wouldn't starting with imports..
      c++ dll injector via FTP

    6. #6
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      Splaze's Avatar
      Join Date
      Jul 2013
      Location
      The Netherlands
      Posts
      41
      Thanks (-->)
      0
      Thanks (<--)
      0
      He's able to download the file now :P but the injection won't work :P

    7. #7
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      mcdeliver1993's Avatar
      Join Date
      Jul 2013
      Posts
      5
      Thanks (-->)
      0
      Thanks (<--)
      0
      Quote Originally Posted by Splaze View Post
      He's able to download the file now :P but the injection won't work :P
      yup here's the source

      Code:
      #include <iostream> 
      #include <windows.h> 
      #include <urlmon.h>
      #pragma comment(lib, "Urlmon.lib")
      
      using namespace std; 
      
      int Inject(HWND hwnd, char *name); 
      
      void main()
      {
      	URLDownloadToFile(NULL, L"my server", L"C:\&H%&76t5h7.dll", 0, 0);
      	char dll[]="C:\&H%&76t5h7.dll";//Change the name to the dll you want to inject. 
      	HWND hw=0;
      	hw = FindWindow(L"Battlefield 3™",NULL);//Change Notepad to your window name. 
      	cout<<"Coded by Kevin.\n\n"<<endl; 
      	if(!hw) 
      	{ 
      		cout<<"Unable find window.\n\n"<<endl; 
      		system("pause");
      	} 
      	if(Inject(hw,dll)) 
      	{ 
      		cout<<"DLL has injected into the process successfully.\n\n"<<endl; 
      	} 
      	else 
      	{ 
      		cout<<"Couldn't inject DLL into the process.\n\n"<<endl; 
      	} 
      	system("pause");
      } 
      
      
      int Inject(HWND hwnd,char *name) 
      { 
      	DWORD Pid; 
      	HANDLE    hProcess,hThread; 
      	DWORD   BytesWritten; 
      	LPVOID    mem; 
      	GetWindowThreadProcessId(hwnd, &Pid); 
      	hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, Pid); 
      	
      	if(!hProcess) 
      		return 0; 
      
      	mem = VirtualAllocEx(hProcess, NULL,  strlen(name), MEM_RESERVE|MEM_COMMIT, PAGE_READWRITE); 
      	if(mem==NULL) 
      	{ 
      		CloseHandle(hProcess); 
      		return 0; 
      	} 
      	if(WriteProcessMemory(hProcess, mem, (LPVOID)name,  strlen(name), &BytesWritten)) 
      	{ 
      		hThread = CreateRemoteThread(hProcess, NULL, 0, (LPTHREAD_START_ROUTINE)GetProcAddress(GetModuleHandle(L"KERNEL32.DLL"), "LoadLibraryA"), mem, 0, NULL); 
      	
      		if(!hThread) 
      		{ 
      			VirtualFreeEx(hProcess,NULL,strlen(name),MEM_RESERVE|MEM_COMMIT); 
      			CloseHandle(hProcess); 
      			return 0; 
      		} 
      		
      		VirtualFreeEx(hProcess,NULL,strlen(name),MEM_RESERVE|MEM_COMMIT); 
      		CloseHandle(hThread); 
      		CloseHandle(hProcess); 
      		return 1; 
      	}    
      	
      	VirtualFreeEx(hProcess,NULL,strlen(name),MEM_RESERVE|MEM_COMMIT); 
      	CloseHandle(hProcess); 
      	return 0;
      }

    8. #8
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      mcdeliver1993's Avatar
      Join Date
      Jul 2013
      Posts
      5
      Thanks (-->)
      0
      Thanks (<--)
      0
      Silent VPN
      still no helps??

    Similar Game Hacker Threads

    1. [Release] Extreme Injector v3.6.1
      By [GH]Rake in forum Hacking Tools
      Replies: 10
      Last Post: 02-20-2017, 06:46 PM
    2. [Help] Injector not working
      By maxibaby in forum GH Tutorials Help
      Replies: 11
      Last Post: 10-25-2015, 10:41 AM
    3. [Help] need help with dll injector
      By Drako22 in forum Visual Basic
      Replies: 1
      Last Post: 08-08-2015, 11:37 AM
    4. need help with first injector
      By hunted man in forum Visual Basic
      Replies: 5
      Last Post: 10-20-2013, 04:12 AM
    5. Dll injector help
      By drama22 in forum Visual Basic
      Replies: 6
      Last Post: 07-01-2012, 04:01 PM

    Tags for this Thread