Sign in to follow this  
Followers 0
Slaiochi

Attaching Processes with GUI

1 post in this topic

#include <GUIConstants.au3>
#include <Memory.au3>
Local $checkbox1, $checkbox2, $username, $password, $label1, $label2, $label3, $run, $scan, $i, $sel_process, $attach, $name, $pBuffer, $iSize, $nlabel, $time
Local $hlabel, $mlabel, $added
GUICreate( "Exkuranum Hunter v.01b", 450, 350)
GUISetState(@SW_SHOW)
GUISetBkColor(0x000000)
$label1 = GUICtrlCreateLabel ("Exkuranum Hunter v.01b - Coded by Slaiochi", 10, 10)
GUICtrlSetColor ( $label1, 0xFFFFFF)
$label2 = GuiCtrlCreateLabel ("Username:", 10, 210, 150, 20)
GUICtrlSetColor ( $label2, 0xFFFFFF)
$username = GUICtrlCreateInput ( "", 10, 230, 150)
GUICtrlSetBkColor( $username, 0x000088)
GUICtrlSetColor( $username, 0xffffff)
$label3 = GUICtrlCreateLabel ("Password:", 10, 260, 150)
GUICtrlSetColor( $label3, 0xffffff)
$password = GUICtrlCreateInput ( "", 10, 280, 150, 20, $ES_PASSWORD)
GUICtrlSetBkColor( $password, 0x000088)
GUICtrlSetColor( $password, 0xffffff)
$checkbox1 = GUICtrlCreateCheckbox ( "Auto Log-in", 170, 280)
GUICtrlSetColor ( $checkbox1, 0xFFFFFF)
GUICtrlSetState (-1, $GUI_CHECKED)
$checkbox2 = GUICtrlCreateCheckbox ( "Korean Characters", 170, 230)
GUICtrlSetColor ( $checkbox2, 0xFFFFFF)
$nlabel = GUICtrlCreateLabel ("Name: ", 230, 50)
GUICtrlSetColor ( $nlabel, 0xFFFFFF)
$hlabel = GUICtrlCreateLabel ("HP: ", 230, 80)
GUICtrlSetColor ( $hlabel, 0xFFFFFF)
$mlabel = GUICtrlCreateLabel ("MP: ", 230, 110)
GUICtrlSetColor ( $mlabel, 0xFFFFFF)
$run = GUICtrlCreateButton ("Run Exkuranum Hunter", 10, 310)
$time = GUICtrlCreateLabel (@HOUR & " . " & @MIN & " . " & @SEC, 230, 140)
GUICtrlSetColor ( $time, 0xFFFFFF)

$sel_process = GuiCtrlCreateLabel("Select a Process", 10, 30, 150, 40)
GUICtrlSetColor( $sel_process, 0xFFFFFF)
$APLInput = GUICtrlCreateList("", 10, 50, 200, 130)
GUICtrlSetBkColor( $APLInput, 0x000088)
GUICtrlSetColor ( $APLInput, 0xFFFFFF)
$APL = ProcessList("Legend.exe")
for $i = 1 to $APL[0][0]
  GUICtrlSetData($APLInput, $APL[$i][0] & " - " & $APL[$i][1], 0)
next
$attach = GUICtrlCreateButton ("Attach Process", 10, 180, 150, 20)

While 1
$guimsg = GUIGetMsg()
GUICtrlSetData ($time, @HOUR & " . " & @MIN & " . " & @SEC)
Select
Case $guimsg = $attach
    $Process = GUICtrlRead($APLInput)
    $added = GUICtrlCreateLabel ( "Process Added!", 230, 170)
    GUICtrlSetColor ( $added, 0xFFFFFF)
    Sleep (500)
    GUICtrlSetColor ( $added, 0xFFFFFF)
    $name = _readprocessmemory($APL[1][0], 0x007E2560, $pBuffer, $iSize, 0)
    GUICtrlCreateLabel ($name, 170, 150)
EndSelect
    
    If $guimsg = $GUI_EVENT_CLOSE Then ExitLoop
Wend

So, what i'm trying to achieve is a program that can attach itself to a certain game. I need it to attach so I can read the memory values for HP/MP and Name, I have all these addresses. The attach is the only thing holding me back, help out if you can :)

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0