0% found this document useful (0 votes)
17 views

Script Work 3

Ksosisbshj jj jci o oa9 9k k kr k crk

Uploaded by

Zeek Joseph
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

Script Work 3

Ksosisbshj jj jci o oa9 9k k kr k crk

Uploaded by

Zeek Joseph
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

function wait_for_action()

gg.setVisible(false)
while true do
gg.sleep(500)
if gg.isVisible()then
break
end
end
end

function selectconditions(encrypted)
if encrypted == 1 then
encryptedchoice = gg.multiChoice({'Encrypted'},nil,'Is the value encrypted?')
if encryptedchoice[1] then
encrypted = 1
else
encrypted = 0
end
end
signs =
{gg.SIGN_EQUAL,gg.SIGN_NOT_EQUAL,gg.SIGN_GREATER_,gg.SIGN_LESS,gg.SIGN_GREATER_
OR_EQUAL,gg.SIGN_LESS_OR_EQUAL}
signchoice = gg.multiChoice({'=',' ≠','>','<',' ≥','≤'},nil,'What condition?')
i = 0
while not signchoice[i] do
i = i + 1
end
sign = signs[i]
end

function selecttype()
menu =
gg.multiChoice({'Auto','Dword','Float','Double','Word','Byte','Qword','Xor'},ni
l,'What type to search?')
if menu == nil then
else
if menu[1] then
a = 1
type = gg.TYPE_AUTO
end
if menu[2] then
a = 1
type = gg.TYPE_DWORD
end
if menu[3] then
a = 1
type = gg.TYPE_FLOAT
end
if menu[4] then
a = 1
type = gg.TYPE_DOUBLE
end
if menu[5] then
a = 1
type = gg.TYPE_WORD
end
if menu[6] then
a = 1
type = gg.TYPE_BYTE
end
if menu[7] then
a = 1
type = gg.TYPE_QWORD
end
if menu[8] then
a = 1
type = gg.TYPE_XOR
end
end
while a == 0 do
a = 0
menu =
gg.multiChoice({'Auto','Dword','Float','Double','Word','Byte','Qword','Xor',},n
il,'What type to search?')
if menu == nil then
else
if menu[1] then
a = 1
type = gg.TYPE_AUTO
end
if menu[2] then
a = 1
type = gg.TYPE_DWORD
end
if menu[3] then
a = 1
type = gg.TYPE_FLOAT
end
if menu[4] then
a = 1
type = gg.TYPE_DOUBLE
end
if menu[5] then
a = 1
type = gg.TYPE_WORD
end
if menu[6] then
a = 1
type = gg.TYPE_BYTE
end
if menu[7] then
a = 1
type = gg.TYPE_QWORD
end
if menu[8] then
a = 1
type = gg.TYPE_XOR
end
end
end
end

function selectranges()
menu = gg.multiChoice({'Jh: Java heap','Ch: C++ heap','Ca: C++ alloc','Cd: C++
.data','Cb: C++ .bss','PS:PPSSPP','A: Anonymous','J: Java','S: Stack','A:
Ashmen','V: Video','O: Other','B: Bad','Xa: Code app','Xs: Code
system','Reset','All'},nil,"Select memory ranges. If you don’t know what this
is, select “All”.")
ranges = ""
if menu[1] then
ranges = ranges .. "gg.REGION_JAVA_HEAP | "
end
if menu[2] then
ranges = ranges .. "gg.REGION_C_HEAP | "
end
if menu[3] then
ranges = ranges .. "gg.REGION_C_ALLOC | "
end
if menu[4] then
ranges = ranges .. "gg.REGION_C_DATA | "
end
if menu[5] then
a = 1
type = gg.TYPE_WORD
end
if menu[6] then
a = 1
type = gg.TYPE_BYTE
end
if menu[7] then
a = 1
type = gg.TYPE_QWORD
end
if menu[8] then
a = 1
type = gg.TYPE_XOR
end
gg.setRanges(ranges)
end

function findtypeabandoned()
if 0 == 1 then
new = gg.prompt({[1] = 'What do you want to visually change your id to?'},
{[1] = '0'},
{[1] = 'text'})
value2 = gg.prompt({[1] = 'Find a value. Make sure the value is not very
common.'},
{[1] = '0'},
{[1] = 'text'})
high = 0
hightype = "(Failed to find data type, try again)"
names = {'DWORD','FLOAT','DOUBLE','WORD'}
types = {gg.TYPE_DWORD,gg.TYPE_FLOAT,gg.TYPE_DOUBLE,gg.TYPE_WORD}
i = 0
while i < 4 do
i = i + 1
gg.searchNumber(tonumber(value1[1]),types[i])
results = 0
if gg.getResultsCount() < 5 then
if gg.getResultsCount() > 0 then
results = 1
end
end
gg.searchNumber(tonumber(value2[1]),types[i])
results2 = 0
if gg.getResultsCount() < 5 then
if gg.getResultsCount() > 0 then
results2 = 1
end
end
score = results + results2
if score > high then
high = score
hightype = names[i]
end
end
gg.alert('These types of values should be in data type ' .. hightype .. '!')
end
end

function searchandrefine()
gg.clearResults()
selecttype()
selectconditions(1)
value = gg.prompt({[1] = 'What is the value?'},
{[1] = '0'},
{[1] = 'text'})
gg.searchNumber(value[1], type, encrypted, sign)
while gg.getResultsCount() > 10 do
gg.alert('Make the value change, then click the gameguardian icon.')
wait_for_action()
gg.refineNumber(value[1], type, encrypted, sign)
value = gg.prompt({[1] = 'What has the value changed to?'},
{[1] = '0'},
{[1] = 'text'})
end
if gg.getResultsCount() == 0 then
continue = {false}
else
continue = gg.multiChoice({'Continue'},nil,'There are ' .. gg.getResultsCount()
.. ' results left. Would you like to continue refining?')
if continue == nil then
continue = {false}
end
end
while continue[1] == true do
gg.alert('Make the value change, then click the gameguardian icon.')
wait_for_action()
gg.refineNumber(value[1], type, encrypted, sign)
value = gg.prompt({[1] = 'What has the value changed to?'},
{[1] = '0'},
{[1] = 'text'})
if gg.getResultsCount() < 2 then
break
end
if gg.getResultsCount() == 0 then
continue = {0}
else
continue = gg.multiChoice({'Continue'},nil,'There are ' .. gg.getResultsCount()
.. ' results left. Would you like to continue refining?')
if continue == nil then
continue = {false}
end
end
end
if gg.getResultsCount() == 0 then
gg.alert('Uh-oh, nothing found! Try searching again!')
else
gg.alert('Refined to ' .. gg.getResultsCount() .. 'results!')
end
if gg.getResultsCount() > 1 then
choice = gg.multiChoice({'Edit all','Find which one is the one you want','Back
to menu'},nil,'What would you like to do now?')
if choice == nil then
mainmenu()
else
if choice[1] then
edit()
end
if choice[2] then
increment()
end
if choice[3] then
mainmenu()
end
end
else
choice = gg.multiChoice({'Edit','Back to menu'},nil,'What would you like to do
now?')
if choice == nil then
mainmenu()
else
if choice[1] then
edit()
end
if choice[2] then
mainmenu()
end
end
end
end

function findboolean()
selecttype()
choice = gg.multiChoice({'On','Off'},nil,'Is it currently on or off?')
if choice == nil then
gg.alert('Select one!')
findboolean()
else
if choice[1] then
boolean = 1
end
if choice[2] then
boolean = 0
gg.clearResults()
gg.searchNumber(boolean,type)
gg.alert('Just toggle on and off and click the gameguardian icon until the
value is found!')
while gg.getResultsCount() > 100 do
wait_for_action()
if boolean == 1 then
boolean = 0
else
boolean = 1
end
gg.refineNumber(boolean,type)
end
continue = gg.multiChoice({'Continue'},nil,'There are ' .. gg.getResultsCount()
.. 'results left. Would you like to continue refining?')
while continue[1] or gg.getResultsCount() < 2 do
wait_for_action()
if boolean == 1 then
boolean = 0
else
boolean = 1
end
gg.refineNumber(boolean,type)
continue = gg.multiChoice({'Continue'},nil,'There are ' .. gg.getResultsCount()
.. 'results left. Would you like to continue refining?')
end
end
if gg.getResultsCount() == 0 then
gg.alert('Uh-oh, nothing found! Try searching again!')
else
gg.alert('Yay, value has been found! Do IDK what with it!')
end
end
end

searchandrefine()

You might also like