[Python] Coding

Husnain

Well-known member
Joined
May 20, 2016
Messages
228
Reaction score
9
Location
Mars
Is there a way to do SA coding with Python language because C++ is bit difficult for me  :sadpepe: :sadpepe:
 

0x32789

Expert
Joined
May 26, 2014
Messages
849
Reaction score
51
Location
LongForgotten <-> 0x32789
you will need to create your own library or just directly edit and read memory..
I tried my basic money giving script with python (changing variable of the green money counter) and it worked..
I used someone's memory functions library which I found on google inside another hackng forum I dont remember but it was working fine.
 

monday

Expert
Joined
Jun 23, 2014
Messages
1,126
Solutions
1
Reaction score
157
here's an example of reading memory from a process using "WinProcess" file from "memorpy" module
https://github.com/n1nj4sec/memorpy/blob/master/README.md

Code:
from memorpy import WinProcess
p = WinProcess.WinProcess(name="gta_sa")

def Read(address, size):
    global p
    return int(''.join([p.read_bytes(address, size)])[::-1].encode('hex'), 16)

CPed = Read(0xB6F5F0, 4)
state = Read(CPed + 0x46C, 1)

print CPed
print state
 

Valiuks

Active member
Joined
Sep 9, 2018
Messages
25
Reaction score
4
here's an example of reading memory from a process using "WinProcess" file from "memorpy" module
https://github.com/n1nj4sec/memorpy/blob/master/README.md

Code:
from memorpy import WinProcess
p = WinProcess.WinProcess(name="gta_sa")

def Read(address, size):
   global p
   return int(''.join([p.read_bytes(address, size)])[::-1].encode('hex'), 16)

CPed = Read(0xB6F5F0, 4)
state = Read(CPed + 0x46C, 1)

print CPed
print state

anything you could recommend for python 3.8.1?
 
Top