View previous topic :: View next topic |
Author |
Message |
MightySabu How do I cheat? Reputation: 0
Joined: 27 May 2023 Posts: 4
|
Posted: Sat May 27, 2023 4:24 am Post subject: Need Help with Socket Commands for Utilizing ceserver |
|
|
I want to use ceserver from my app, but I don't know the socket commands for it. If anyone can help me with the following commands: reading the data from an address, and writing the data to an address.
|
|
Back to top |
|
|
atom0s Moderator Reputation: 202
Joined: 25 Jan 2006 Posts: 8552 Location: 127.0.0.1
|
|
Back to top |
|
|
MightySabu How do I cheat? Reputation: 0
Joined: 27 May 2023 Posts: 4
|
Posted: Sun May 28, 2023 12:56 am Post subject: |
|
|
I appreciate your help, but I can't seem to make it work, though. Here is the sample code
Code: |
import socket
import struct
ceserver_host = '127.0.0.1'
ceserver_port = 52736
pid = 2888
try:
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((ceserver_host, ceserver_port))
# Send CMD_OPENPROCESS command
command = 3
s.send(struct.pack('<I', command))
s.send(struct.pack('<I', pid))
response = s.recv(4)
process_handle = struct.unpack('<I', response)[0]
print('Process handle:', process_handle)
finally:
s.close()
|
# ceserver debug_log
OpenProcess(1207959552)
processhandle=0
Error: recv returned 0
Based on the source code Code: | debug_log("OpenProcess(%d)\n", pid); | I think it should have printed the pid of 2888 because that's what I have passed
|
|
Back to top |
|
|
LeFiXER Grandmaster Cheater Supreme Reputation: 20
Joined: 02 Sep 2011 Posts: 1065 Location: 0x90
|
Posted: Sun May 28, 2023 3:20 am Post subject: |
|
|
Ensure you have the correct notation for the PID, it could be hex or decimal.
|
|
Back to top |
|
|
Doraneko Newbie cheater Reputation: 1
Joined: 22 Jul 2018 Posts: 10 Location: Japan Tokyo
|
Posted: Sun May 28, 2023 6:41 am Post subject: |
|
|
The ceserver command is exactly 1 byte.
s.send(struct.pack("<B", command))
|
|
Back to top |
|
|
MightySabu How do I cheat? Reputation: 0
Joined: 27 May 2023 Posts: 4
|
Posted: Sun May 28, 2023 7:19 am Post subject: |
|
|
Doraneko wrote: | The ceserver command is exactly 1 byte.
s.send(struct.pack("<B", command)) |
yes thank you
|
|
Back to top |
|
|
|