Jump to content

Turbine o seu Perfil

Confira a atualização e participe do clube!
Clique e saiba mais

Junte-se ao Clube de Membros VIP

Tenha destaque e diversos benefícios!
Confira Aqui

Acesse nosso Discord

Conheça nossos canais interativos
Confira Aqui
Notícia
  • Adquira já o seu VIP!
Sign in to follow this  
'Aym

..:Ajuda:..

Recommended Posts

Se postar o source, pode ser que de pra gente ajudar né ? =P

Fica dificil ajudar sem ter nenhum informação o.0'

 

obs (para todos membros): coloque titulos mais sugestivos nos topicos, evite ao meximo coisas como somente "duvida", "ajuda", "heeeeelppp"... e etc

Share this post


Link to post
Share on other sites

olha aki:

unit Unit1;

 

interface

 

uses

Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,

Dialogs, ExtCtrls, StdCtrls, TlHelp32, sCheckBox, ComCtrls;

 

type

TForm1 = class(TForm)

Label1: TLabel;

Label2: TLabel;

OpenDialog1: TOpenDialog;

Timer1: TTimer;

GroupBox1: TGroupBox;

GroupBox2: TGroupBox;

StatusBar1: TStatusBar;

Label3: TLabel;

Label4: TLabel;

Carregando: TButton;

Edit1: TEdit;

ListBox1: TListBox;

sCheckBox1: TsCheckBox;

procedure Button1Click(Sender: TObject);

procedure Button2Click(Sender: TObject);

procedure Timer1Timer(Sender: TObject);

procedure CarregandoClick(Sender: TObject);

procedure sCheckBox1Click(Sender: TObject);

procedure ListBox1Click(Sender: TObject);

private

{ Private declarations }

public

{ Public declarations }

end;

 

var

Form1: TForm1;

 

implementation

 

{$R *.dfm}

 

function GetPID(ProcessName: string): DWORD;

var MyHandle: THandle;

Struct: TProcessEntry32;

begin

Result:=0;

try

MyHandle:=CreateToolHelp32SnapShot(TH32CS_SNAPPROCESS, 0);

Struct.dwSize:=Sizeof(TProcessEntry32);

if Process32First(MyHandle, Struct) then

if Struct.szExeFile=ProcessName then

begin

Result:=Struct.th32ProcessID;

Exit;

end;

while Process32Next(MyHandle, Struct) do

if Struct.szExeFile=ProcessName then

begin

Result:=Struct.th32ProcessID;

Exit;

end;

except on exception do

Exit;

end;

end;

 

function InjectDll(PID:DWORD; sDll:string):Boolean;

var

hLib: Pointer;

hThread: THandle;

pMod: Pointer;

hOpen: THandle;

dWritten: Cardinal;

ThreadID: Cardinal;

begin

Result := FALSE;

hOpen := OpenProcess(PROCESS_ALL_ACCESS, FALSE, PID);

if hOpen <> INVALID_HANDLE_VALUE then

begin

hLib := GetProcAddress(GetModuleHandle(PChar('kernel32.dll')), PChar('LoadLibraryA'));

pMod := VirtualAllocEx(hOpen, nil, Length(sDll) + 1, MEM_COMMIT or MEM_RESERVE, PAGE_EXECUTE_READWRITE);

if WriteProcessMemory(hOpen, pMod, @sDll[1], Length(sDll), dWritten) then

Result := TRUE;

hThread := CreateRemoteThread(hOpen, nil, 0, hLib, pMod, 0, ThreadID);

WaitForSingleObject(hThread, INFINITE);

CloseHandle(hOpen);

CloseHandle(hThread);

end;

end;

 

procedure TForm1.Button1Click(Sender: TObject);

begin

Timer1.Enabled:=True;

end;

 

procedure TForm1.Button2Click(Sender: TObject);

begin

Timer1.Enabled:=True;

end;

 

procedure TForm1.Timer1Timer(Sender: TObject);

var PID: DWORD;

begin

Timer1.Enabled:=False;

PID:=GetPID(Edit1.Text);

if PID=0 then

begin

Timer1.Enabled:=True;

Exit;

end;

Timer1.Enabled:=False;

if InjectDll(PID, Edit1.Text) then

MessageBoxA(Handle, 'www.webcheats.com.br', 'Combat Arms Injector Injector', MB_ICONEXCLAMATION+MB_SYSTEMMODAL)

else

MessageBoxA(Handle, 'Erro ao injetar DLL!', 'Combat Arms Injector', MB_ICONERROR+MB_SYSTEMMODAL);

end;

 

procedure TForm1.CarregandoClick(Sender: TObject);

begin

if not OpenDialog1.Execute then Exit;

Listbox1.Items.Add(ExtractFileName(OpenDialog1.FileName));

end;

 

procedure TForm1.sCheckBox1Click(Sender: TObject);

begin

Timer1.Enabled:=True;

end;

 

procedure TForm1.ListBox1Click(Sender: TObject);

begin

 

end;

 

end.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×
×
  • Create New...