[Ksro] MC+AS Distance

09/02/2009 21:41 jooni222#1
UPDATE 05-11-2009

Hi, I had some free time and I did mc and as distance changer.
MC:
Code:
http://www.sendspace.com/file/brc4hr
This file have a virus, because it has been unpacked.
You can do mc yourself, becouse you need unpack sro_client.exe in stripper and edit this offset $41934F from 75 to EB in hexeditor.

To work mc you must 'Run as Administartor'
[Only registered and activated users can see links. Click Here To Register...]

[Only registered and activated users can see links. Click Here To Register...]

Ksro AutoSelect Distance changer (the script is not my, but I change offset):

Script work in AutoIt:

Code:
http://www.autoitscript.com/autoit3/downloads.shtml
Code:
;------------------------------------------------------------------------------
;    Memory functions                                                          -
;------------------------------------------------------------------------------

Func _OpenProcess($hWnd, $use_pid=0)
    If $use_pid = 0 Then
        Local $pid = DllCall("user32.dll", "int", "GetWindowThreadProcessId", "hwnd", $hWnd, "int*", 0)
        If IsArray($pid) Then
            $pid = $pid[2]
        Else
            SetError(-1)
            Return
        EndIf
    Else
        Local $pid = $hWnd
    EndIf

    ; 0x001f0fff - All Access
    Local $pHandle = DllCall("kernel32.dll", "long", "OpenProcess", "int", 0x001f0fff, "int", 0, "int", $pid)
    If IsArray($pHandle) And $pHandle[0] > 0 Then
        $pHandle = $pHandle[0]
    Else
        SetError(-2)
        Return
    EndIf

    Return $pHandle
EndFunc

Func _CloseHandle($pHandle)
    DllCall("kernel32.dll", "int", "CloseHandle", "int", $pHandle)
EndFunc

Func _WriteFloat($pHandle, $Address, $value)
    Local $float = DllStructCreate("float")
    DllStructSetData($float, 1, $value)

    ; Need to make the memory writeable first! You should really restore the page protection afterwards though, but this is to make it work
    $outDw = 1
    DllCall("kernel32.dll", "int", "VirtualProtectEx", "int", $pHandle, "ptr", $Address, "int", 4, "dword", 0x40, "dword*", $outDw)

    Local $ret = DllCall("kernel32.dll", "int", "WriteProcessMemory", "int", $pHandle, "int", $Address, "ptr", DllStructGetPtr($float), "int", 4, "int", 0)
    If IsArray($ret) Then
        If $ret[0] <> 0 Then
            Return True
        Else
            SetError(-2)
            Return False
        EndIf
    Else
        SetError(-1)
        Return False
    EndIf
EndFunc

Func _ReadFloat($pHandle, $Address)
    Local $floatReturn = 0
    Local $float = DllStructCreate("float")
    Local $ret = DllCall("kernel32.dll", "int", "ReadProcessMemory", "int", $pHandle, "int", $Address, "ptr", DllStructGetPtr($float), "int", 4, "int", 0)
    If IsArray($ret) Then
        If $ret[0] = 1 Then
            $floatReturn = DllStructGetData($float, 1)
        Else
            SetError(-1)
        EndIf
    Else
        SetError(-2)
    EndIf
  
    Return $floatReturn
EndFunc


;------------------------------------------------------------------------------
;    Script code                                                                  -
;------------------------------------------------------------------------------

$address = 0xD37430

$pHandle = _OpenProcess(WinGetHandle("SRO_Client"))

MsgBox(64, "TEST BYTE PTR DS:[ESI-11C],1", "Current distance in AutoSelect is: " & _ReadFloat($pHandle, $address))
MsgBox(64, "ksro D37430", _WriteFloat($pHandle, $address, [COLOR="Red"]2000000[/COLOR]))
MsgBox(64, "ksro D37430", "AutoSelect distance now: " & _ReadFloat($pHandle, $address))

_CloseHandle($pHandle)

2000000 - AutoSelect Distance
09/03/2009 17:18 Koteczek#2
In which program i can make autosecelt distance ? in which program i should paste it ?


W jakim programie mam ten skrypt wkleic ??
09/03/2009 17:58 jooni222#3
Quote:
Originally Posted by Koteczek View Post
In which program i can make autosecelt distance ? in which program i should paste it ?


W jakim programie mam ten skrypt wkleic ??
AutoIt:
[Only registered and activated users can see links. Click Here To Register...]
09/03/2009 21:52 Koteczek#4
powiedz mi czy to trzeba wrzucic do folderu z silkiem czy byle gdzie?
09/03/2009 22:35 jooni222#5
Omg, just install AutoIt rmb>new>AutoIt Script and there paste script. Next 2x click on script when silkroad is open. Before you must have AutoSelect in media.pk2
09/04/2009 01:55 Last84#6
I am not quite to understand the way you say in making multiclient. Would you tell more detail about it? I am kind of idiot about finding address in Hex editor or Stripper. Anyway, thanks a lot for your help.Just curious question, it's simple as the way you show us, why people not only have all kind of hacking things but also an expert in programming know nothing about this or just want to keep it for themself?
09/04/2009 02:22 kosomak2#7
THANK U MAN THE AUTOSELECT DISTANCE CHANGER WORKS VERY PERFECT. THX THX :D
09/04/2009 18:47 jooni222#8
@Last84
I can't teach you, becouse you must have basic knowledge about reverse engineering. Maybe read a book about it.
09/06/2009 04:51 kosomak2#9
hey buddy, i was wondering if this script for distance changer ill work also if an update occured? and what if it ill not work. how can i modify it to be compitable with the new client, i ill be greatful if u told me how.
09/09/2009 16:04 jooni222#10
Update:
09-09-2009
09/10/2009 04:06 Last84#11
Quote:
Originally Posted by jooni222 View Post
Update:
09-09-2009
Thanks again, save me a lot. Would you tell us where to find the new address to be replaced in case client will be change in future? It would be very nice.
09/15/2009 01:17 hadyz3#12
Quote:
Originally Posted by jooni222 View Post
Omg, just install AutoIt rmb>new>AutoIt Script and there paste script. Next 2x click on script when silkroad is open. Before you must have AutoSelect in media.pk2
and where i can get autoselect?
09/16/2009 03:47 hadyz3#13
i got it btw u can make the range 999 not only 200
09/16/2009 09:00 David P.#14
get the auto select adress into the code list of the post and with cheat engine search it and edit for that you want ....
09/16/2009 11:27 ops1988#15
Quote:
To work mc you must 'Run as Administartor'

[Only registered and activated users can see links. Click Here To Register...]

[Only registered and activated users can see links. Click Here To Register...]
when click ( start ) its go to crash

so its not work