[Python] Coding

Husnain

Well-Known Member
Joined
May 20, 2016
Messages
195
Likes
2
Points
48
Location
Mars
#1
Is there a way to do SA coding with Python language because C++ is bit difficult for me  :sadpepe: :sadpepe:
 

0x32789

Well-Known Member
Joined
May 26, 2014
Messages
853
Likes
39
Points
78
Location
LongForgotten <-> 0x32789
#3
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

Well-Known Member
Joined
Jun 23, 2014
Messages
1,068
Likes
89
Points
98
20
#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
 
Joined
Sep 9, 2018
Messages
21
Likes
3
Points
8
#5
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