Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Cabal Online > Cabal Guides & Templates
You last visited: Today at 03:52

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Guide] How make working injected dll with XTrap (20/05/13)

Discussion on [Guide] How make working injected dll with XTrap (20/05/13) within the Cabal Guides & Templates forum part of the Cabal Online category.

Reply
 
Old   #1
 
woodoo34tr's Avatar
 
elite*gold: 0
Join Date: Sep 2007
Posts: 237
Received Thanks: 890
Cool [Guide] How make working injected dll with XTrap (20/05/13)

method discovered by me.
published only in ePvP.

how make dll:
1 tutorial:
2 tutorial:

not use this method for read value from address:
*(DWORD*)ADDR_GM = 2;
*(DWORD*)ADDR_AOE = 100;
*(DWORD*)ADDR_RANGE = 7;

use this medhod:
ReadProcessMemory(phandle,(void*)address,&value,si zeof(value),0);

3: and the last statement:
not inject dll to cabalmain.exe (because detected)
inject dll to Xtrap.xt

I tested and working fine this method in win7 x64 system.

i dont want PS player buying any trainer

note:
dont forget add "SeDebugPrivilege" code. link:
Why dll, not exe?
because exe it establishes a connection with open handle, detected from XTrap!
bat Xtrap not check self

enable SeDebugPrivilage code c++:

// Call with EnableTokenPrivilege(SE_DEBUG_NAME);
BOOL EnableTokenPrivilege(LPTSTR lpszPrivilege) // by Napalm
{
TOKEN_PRIVILEGES tp;
BOOL bResult = FALSE;
HANDLE hToken = NULL;
DWORD dwSize;
ZeroMemory(&tp, sizeof(tp));
tp.PrivilegeCount = 1;
if(OpenProcessToken(GetCurrentProcess(), TOKEN_ALL_ACCESS, &hToken) &&
LookupPrivilegeValue(NULL, lpszPrivilege, &tp.Privileges[0].Luid))
{
tp.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED;
bResult = AdjustTokenPrivileges(hToken, FALSE, &tp, 0, NULL, &dwSize);
}
CloseHandle(hToken);
return bResult;
}


Delphi code examples:
DLL Wizard:

First code look like this:
PHP Code:
library Project1;

Important note about DLL memory managementShareMem must be the
  first unit in your library
's USES clause AND your project'(select
  Project
-View SourceUSES clause if your DLL exports any procedures or
  
functions that pass strings as parameters or function resultsThis
  applies to all strings passed to 
and from your DLL--even those that
  are nested in records 
and classesShareMem is the interface unit to
  the BORLNDMM
.DLL shared memory managerwhich must be deployed along
  with your DLL
To avoid using BORLNDMM.DLLpass string information
  using PChar 
or ShortString parameters. }

uses
  SysUtils
,
  
Classes;

{
$R *.res}

begin
end

add form:

first unit1 code look like this:
PHP Code:
unit Unit1;

interface

uses
  Windows
MessagesSysUtilsVariantsClassesGraphicsControlsForms,
  
Dialogs;

type
  TForm1 
= class(TForm)
  private
    { Private 
declarations }
  public
    { Public 
declarations }
  
end;

var
  
Form1TForm1;

implementation

{$R *.dfm}

end
copy paste this code to Project1:
PHP Code:
library Project1;

Important note about DLL memory managementShareMem must be the
  first unit in your library
's USES clause AND your project'(select
  Project
-View SourceUSES clause if your DLL exports any procedures or
  
functions that pass strings as parameters or function resultsThis
  applies to all strings passed to 
and from your DLL--even those that
  are nested in records 
and classesShareMem is the interface unit to
  the BORLNDMM
.DLL shared memory managerwhich must be deployed along
  with your DLL
To avoid using BORLNDMM.DLLpass string information
  using PChar 
or ShortString parameters. }

uses
  SysUtils
,
  
Windows,
  
Classes,
  
Unit1 in 'Unit1.pas' {Form1};

{
$R *.res}

var
woodoo DWORD;


procedure woodoo34tr;
begin;
form1 := tForm1.Create(nil);
Form1.ShowModal;
end;
begin
CreateThread
(nil,woodoo,@woodoo34tr,nil,woodoo,woodoo);
end
add form : 2 edit / 1 checkbox / 1 timer
this is unit1 code:
PHP Code:
unit Unit1;

interface

uses
  Windows
MessagesSysUtilsVariantsClassesGraphicsControlsForms,
  
DialogsExtCtrlsStdCtrls;

type
  TForm1 
= class(TForm)
    
CheckBox1TCheckBox;
    
Timer1TTimer;
    
Edit1TEdit;
    
Edit2TEdit;
    
procedure CheckBox1Click(SenderTObject);
    
procedure Timer1Timer(SenderTObject);
    
procedure FormCreate(SenderTObject);
  private
    { Private 
declarations }
    
lp:integer;
  public
    { Public 
declarations }
  
end;

var
  
Form1TForm1;

implementation

{$R *.dfm}
function 
EnumProcess(hHwndHWNDlParam integer): booleanstdcall;
var
  
pPid DWORD;
  
titleClassName string;
  
begin
  
//if the returned value in null the
  //callback has failed, so set to false and exit.
  
if (hHwnd=NULLthen
  begin
    result 
:= false;
  
end else begin
    
//additional functions to get more 
    //information about a process.
    //get the Process Identification number.
    
GetWindowThreadProcessId(hHwnd,pPid);
    
//set a memory area to receive 
    //the process class name
    
SetLength(ClassName255);
    
//get the class name and reset the 
    //memory area to the size of the name
    
SetLength(ClassName,GetClassName(hHwnd,PChar(className),Length(className)));
    
SetLength(title255);
    
//get the process title; usually displayed 
    //on the top bar in visible process
    
SetLength(titleGetWindowText(hHwndPChar(title), Length(title)));
    
//Display the process information 
    //by adding it to a list box
if className 'D3D Window' then
begin
form1
.edit2.Text := IntToStr(pPid);
end;
    
Result := true;
  
end;
  
end;
  
//**********************************************
function SetDebugPrivilegeBoolean;
var
  
TokenHandleTHandle;
  
TokenPrivileges TTokenPrivileges;
begin
  Result 
:= false;
  if 
OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES or TOKEN_QUERYTokenHandlethen
  begin
    
if LookupPrivilegeValue(nilPChar('SeDebugPrivilege'), TokenPrivileges.Privileges[0].Luidthen
    begin
      TokenPrivileges
.PrivilegeCount := 1;
      
TokenPrivileges.Privileges[0].Attributes := SE_PRIVILEGE_ENABLED;
      
Result := AdjustTokenPrivileges(TokenHandleFalse,
        
TokenPrivileges0PTokenPrivileges(nil)^, PDWord(nil)^);
    
end;
  
end;
end;
//*********************************************************************
procedure TForm1.CheckBox1Click(SenderTObject);
begin
if checkbox1.Checked true then
begin
if edit2.Text ='' then
begin
lp
:=0// Private declarations
if EnumWindows(@EnumProcess,lp) = false then
begin
end
;
end;
timer1.Interval := strtoint(edit1.Text);
timer1.Enabled := true;
end;
if 
checkbox1.Checked false then timer1.Enabled := false;
end;
//**************************************************************************
procedure TForm1.Timer1Timer(SenderTObject);
var
yaz,ProcessId:integer;
HandleWindow,baseaddress:int64;
write,readCardinal;
buf:dword;
begin
  baseaddress
:=$B93530// in olly address $44EB2A;
  
yaz:=0// yaz = can you write here running value
  
ProcessId := strtoint(edit2.text);
  
HandleWindow := OpenProcess(PROCESS_ALL_ACCESSFalseProcessId);
//ReadProcessMemory(HandleWindow, ptr(baseaddress), @buf, 4, Read);// $44EB2A = in ollydbg Base address ;)
  
ReadProcessMemory(HandleWindowptr(baseaddress), @buf4Read);
  
WriteProcessMemory(HandleWindowptr(buf+$72D4), @yaz4write);
  
CloseHandle(HandleWindow);
end;

procedure TForm1.FormCreate(SenderTObject);
begin
SetDebugPrivilege
;
end;

end
finished form look like this:

inject dll to xtrap:
woodoo34tr is offline  
Thanks
17 Users
Old 05/21/2013, 08:58   #2
 
elite*gold: 0
Join Date: May 2012
Posts: 87
Received Thanks: 1
work cabal eu?
mustafaay100 is offline  
Old 05/21/2013, 11:18   #3
 
Wayntressierts's Avatar
 
elite*gold: 0
Join Date: Feb 2012
Posts: 424
Received Thanks: 422
Quote:
Originally Posted by mustafaay100 View Post
work cabal eu?
Since when is EU using XTrap ??
Wayntressierts is offline  
Old 05/23/2013, 19:31   #4
 
FUJl's Avatar
 
elite*gold: 0
Join Date: Oct 2012
Posts: 235
Received Thanks: 8,667
Nice method...

although i'm not injecting DLL, still works like offline trainer...

but in gameguard it doesn't work...
FUJl is offline  
Thanks
1 User
Old 05/23/2013, 19:55   #5
 
alexnico08's Avatar
 
elite*gold: 0
Join Date: Jul 2010
Posts: 61
Received Thanks: 6
sry... but i am noobbbbb..... how make .dll??? anyway,can somebody make the .dll for unitedcabal?
i know how to inject only...
respect!
alexnico08 is offline  
Old 05/27/2013, 15:20   #6
 
renmer_2013's Avatar
 
elite*gold: 0
Join Date: Sep 2012
Posts: 15
Received Thanks: 5
need help

can you help me make a dll in unitedcabal
renmer_2013 is offline  
Old 05/29/2013, 18:45   #7
 
elite*gold: 0
Join Date: Jun 2010
Posts: 7
Received Thanks: 0
hi, this is to confusing :x i do everything like u but i can get to that image that u have on "finished form look like this:"
andrefsp is offline  
Old 06/21/2013, 23:13   #8
 
elite*gold: 0
Join Date: Sep 2011
Posts: 24
Received Thanks: 0
Who can send, me this xtrap bloker and dll? I can pay you in ext cabal pm me
newman12352 is offline  
Old 04/05/2014, 01:41   #9
 
elite*gold: 0
Join Date: Jun 2009
Posts: 42
Received Thanks: 6
How does it work?

Sorry, if I dig up this old post.
I'm a little confuse about your methods.
Assume that there's no Xtrap involve, the normal way to get our hacks into the game by injecting our DLL to the game exe file. The DLL will run the Dllmain thread from within the exe memory space and we can control the game from there.
With your method, the DLL is injected to XTrap.xt instead of the exe file.
So the Dllmain thread runs within Xtrap.xt memory space. How are you going to pass your function from Xtrap.xt memory space to the exe memory space?
Sorry, I'm newbie to this, I just want to learn.
andrewfam is offline  
Reply


Similar Threads Similar Threads
Suche Funktioniernden Injector (Search for a working injector) CA EU
09/08/2010 - Combat Arms - 13 Replies
Kann Jemand einen Link von einem Funktionierenden Injector geben außer PerX suche schon ewig aba find keinen Can somebody give me a link for a working Injector i search every time but still nothing found^^ pleas give link but no perx sorry for bad english thx schon ma im vorraus
New Working Wallhack Works 100% With xtrap [JANUARY 5 AND STILL WORKING]
01/15/2010 - CrossFire - 34 Replies
Heres a new wallhack i found no chams.nothing more than a simple wallhack.... So,first download the file (i have thE LINK in the bottom). Then open the perx injector (again link is at the bottom)(IF VISTA run as admin) I suppose u know how to configure perx(lol).If u dont know at the WHAT TO INJECT put crossfire.exe select automatic and then browse the 2 dlls found in the rar u downloaded.START CF(LoL) Now join a game and when u are in game press f10 one time to turn on.f10 again to turn...



All times are GMT +1. The time now is 03:54.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.