View previous topic :: View next topic |
Author |
Message |
Mew903 How do I cheat? Reputation: 0
Joined: 08 Aug 2012 Posts: 2 Location: United States
|
Posted: Wed Aug 08, 2012 4:44 am Post subject: Get an address from the opcode? |
|
|
I made this little thing to help me, but it craps out at like 4000.
Code: | local Address = {
Opcode = "push 07"; -- Not actual opcode, just an exampl
StartPoint = 00900000; -- Start address
EndPoint = 00901000; -- End address, both change by +1000 after every loop
};
function split(Str, Spl)
local out = {};
for v in Str:gmatch("([^" .. Spl .. "]+)") do
table.insert(out, v);
end
return out;
end;
function getAddress(list)
for i = 1, 100 do
for address = list.StartPoint, list.EndPoint do
local a = split(disassemble("00" .. tostring(address)), "-")[3];
print("Current address: 00" .. address);
if a:match(list.Opcode) then
print("Noclip: " .. a);
end
collectgarbage('collect');
sleep(2);
end;
list.StartPoint, list.EndPoint = list.StartPoint + 1000, list.EndPoint + 1000;
sleep(2);
end;
end;
getAddress(Address); |
I just want to know if there's a less haxy, or non haxy way to do this. Thanks.
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25287 Location: The netherlands
|
Posted: Wed Aug 08, 2012 5:07 am Post subject: |
|
|
Not really sure what you wish to do, but I can give some suggestions
I think
Code: |
StartPoint = 00900000;
EndPoint = 00901000;
|
should be
Code: |
StartPoint = 0x900000;
EndPoint = 0x901000;
|
and
Code: |
"00" .. tostring(address))
|
can just be address
And instead of manually splitting the result you can use splitDisassembledString.
e.g:
Code: |
addresstring,opcode,bytes,extra=splitDisassembledString(disassemble(address))
|
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
Mew903 How do I cheat? Reputation: 0
Joined: 08 Aug 2012 Posts: 2 Location: United States
|
Posted: Wed Aug 08, 2012 8:46 pm Post subject: |
|
|
I'm trying to find a certain opcode using CE Lua, how would I do this? Dark Byte's solution didn't work .
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25287 Location: The netherlands
|
Posted: Thu Aug 09, 2012 4:23 am Post subject: |
|
|
Just use AOBScan and scan for the bytes that make up that opcode
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
|