Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 11

hiiishdoaoznakKajnz

print("APEX[GG]v2")
print("Hacking is the Game")
print("https://t.me/apexgg2Home")
print("[Get-Edits]-v04")
print("-------------------------------------------------------")
apex=0
xTAGx="APEX[GG]v2"
xLINKx="https://t.me/apexgg2Home"
xLUAx="[Get-Edits]-v05"
gg.setVisible(false)
gg.showUiButton()
menucomplete=0
hasEdits=0
--██████████████████

function menu1()
apex=1
gg.setVisible(false)
if menucomplete==1 then menu() return end

if changeprocessmanual==1 then MANUAL() return end

if hackagain==1 then
ha=gg.multiChoice({
"Calibrate Again",
"<-[EXIT]"},{[2]=true},xTAGx)
if ha==nil then return end
if ha[2] then gg.setVisible(true) os.exit() return end
if ha[1] then steal() return end
end

if calibrateagain==1 then
ca=gg.multiChoice({
"Calibrate Again",
"<-[EXIT]"},{},xTAGx.."\n"..xLUAx)
if ca==nil then return end
if ca[2] then gg.setVisible(true) os.exit() return end
if ca[1] then mancal() return end
end

if menucomplete==0 then MCAL=true else MCAL=false end


local mcoptions=gg.multiChoice({
"Calibrate",
"Help",
"<-[EXIT]"},{[1]=MCAL},xTAGx.." "..xLINKx.."\n"..xLUAx)
if mcoptions==nil then return end
if mcoptions[3] then gg.setVisible(true) os.exit() return end
if mcoptions[1] then MANUAL() return end
if mcoptions[2] then gethelp() return end
end
--██████████████████
function MANUAL()
whatgg=gg.multiChoice({
"\nThis GG will run the script\nthat will hack the Game\n",
"\nThis GG is hacking the other GG\n",
"\n<-[EXIT]\n"},{},xTAGx.."\n"..xLUAx)
if whatgg==nil then return end
if whatgg[3] then gg.setVisible(true) os.exit() return end
if whatgg[1] then steal() return end
if whatgg[2] then mancal() return end
end
--██████████████████

hackagain=0
function steal()
gg.setVisible(false)
xvp=nil xor=nil xvf=nil xvt=nil
xvp=gg.prompt({
"Enter a 6~9 digit Unique Number with Pattern\nie: 123123123 / 333666999 /
1000010 / 111222333 / etc",
"Dword",
"Float",
"Qword",
"Double"},nil,
{[1]="number",
[2]="checkbox",
[3]="checkbox",
[4]="checkbox",
[5]="checkbox"})
if xvp==nil then gg.toast("CANCELLED") return end
if #(xvp[1])==0 then gg.alert("×× Invalid Number ××") steal() return end
if type(tonumber(xvp[1]))~="number" then gg.alert("×× Invalid Number ××")
steal() return end
if #(xvp[1])<6 or #(xvp[1])>9 then gg.alert("×× Invalid Number ××") steal()
return end
if not xvp[2] and not xvp[3] and not xvp[4] and not xvp[5] then
gg.alert("×× VALUE TYPE ××") steal()
return
end
if xvp[2] then xvf=4 xvt="Dword" end
if xvp[3] then xvf=16 xvt="Float" end
if xvp[4] then xvf=32 xvt="Qword" end
if xvp[5] then xvf=64 xvt="Double" end

xvp=tonumber(xvp[1])
gg.copyText(xvp, false)
xor=math.random(1,100)
xor=xor*4
a=nil b=nil c=nil d=nil e=nil
apt=nil apr=nil ap=nil x=nil
a=gg.allocatePage(7)
b=gg.allocatePage(7)
c=gg.allocatePage(7)
d=gg.allocatePage(7)
e=gg.allocatePage(7)
apt={a,b,c,d,e}
apr=math.random(1,5)
ap=apt[apr]
x={}
x[1]={}
x[1].address=ap+xor
x[1].value=xvp
x[1].flags=xvf
test=gg.getValues(x)
if #(test)==0 then
gg.alert("×× CALIBRATION ERROR ××\nTry Again.")
menu1()
return
end
test=nil
gg.setValues(x)
gg.alert("[√] Conpleted.\nValue = "..xvp.."\nType = "..xvt.."\nValue Copied to
Clipboard\n\nPress OK and then Open Other GG and select This GG as the Process.
(Run this script and select calibrate)\nDO NOT do anything else with THIS
GG","OK",nil,xTAGx)
gg.setVisible(false)
hackagain=1
end
--██████████████████
calibrateagain=0
function mancal()
-- x64 check removed
xvp=nil xor=nil xvf=nil xvt=nil
xvp=gg.prompt({
"Enter Value From Other GG Calibration\n( or Paste From Clipboard )",
"Dword",
"Float",
"Qword",
"Double"},nil,
{[1]="number",
[2]="checkbox",
[3]="checkbox",
[4]="checkbox",
[5]="checkbox"})
if xvp==nil then gg.toast("CANCELLED") return end
if #(xvp[1])==0 then gg.alert("×× Invalid Number ××") steal() return end
if type(tonumber(xvp[1]))~="number" then gg.alert("×× Invalid Number ××")
steal() return end
if #(xvp[1])<6 or #(xvp[1])>9 then gg.alert("×× Invalid Number ××") steal()
return end
if not xvp[2] and not xvp[3] and not xvp[4] and not xvp[5] then
gg.alert("×× VALUE TYPE ××") steal()
return
end
if xvp[2] then xvf=4 xvt="Dword" end
if xvp[3] then xvf=16 xvt="Float" end
if xvp[4] then xvf=32 xvt="Qword" end
if xvp[5] then xvf=64 xvt="Double" end

xvp=tonumber(xvp[1])
verify=gg.alert("Value = "..xvp.."\nType = "..xvt.."\n\nIs this
Correct?","YES","NO","CORRECT ?")
if verify==2 then
mancal()
return
end
gg.toast("Please Wait..")
gg.setRanges(gg.REGION_JAVA_HEAP)
gg.setVisible(false)
gg.clearResults()

gg.searchNumber(xvp,xvf)
if gg.getResultsCount()==0 then
gg.alert("×× ERROR ××\n\nIn the Other GG, Select 'Hack Again', then in
THIS GG, Try Calibration Again","OK",nil,xTAGx)
calibrateagain=1
return
end
x=gg.getResults(gg.getResultsCount())
for i, v in ipairs(x) do
v.address=v.address+8
v.flags=4
end
gg.loadResults(x)
gg.refineNumber(xvf,4)
if gg.getResultsCount()==0 then
gg.alert("×× ERROR ××\n\nIn the Other GG, Select 'Hack Again', then in
THIS GG, Try Calibration Again","OK",nil,xTAGx)
calibrateagain=1
return
end
x=gg.getResults(gg.getResultsCount())
for i, v in ipairs(x) do
v.address=v.address+4
end
gg.loadResults(x)
gg.refineNumber(0,4)
x=gg.getResults(gg.getResultsCount())
for i, v in ipairs(x) do
v.address=v.address-8
end
gg.loadResults(x)
gg.refineNumber(0,4)
x=gg.getResults(gg.getResultsCount())
for i, v in ipairs(x) do
v.address=v.address-12
v.flags=4
end
x=gg.getValues(x)
r=nil r={} rr=1
for i, v in ipairs(x) do
if #(tostring(x[i].value))>7 then
rr=rr+1
r[rr]={}
r[rr].address=v.address-4
r[rr].flags=4
end
end
gg.loadResults(r)
gg.refineNumber(0,4)
x=gg.getResults(gg.getResultsCount())
for i, v in ipairs(x) do
v.address=v.address-4
v.flags=4
end
x=gg.getValues(x)
r=nil r={} rr=1
for i, v in ipairs(x) do
if #(tostring(x[i].value))>7 then
rr=rr+1
r[rr]={}
r[rr].address=v.address
r[rr].flags=4
end
end
x=nil
gg.loadResults(r)
x=gg.getResults(1)
gg.clearResults()
if #(x)==0 then
gg.alert("×× ERROR ××\n\nIn the Other GG, Select 'Hack Again', then in
THIS GG, Try Calibration Again","OK",nil,xTAGx)
calibrateagain=1
return
end

magicvalue=tonumber(x[1].value)
x=nil r=nil
gg.alert("[√] CALIBRATION SUCCESS\n\nNow Go to the OTHER GG and Exit my Script.\
nStart the Script you want to steal from and activate hacks.\nAfter hacks are
complete, come back to THIS GG script and select 'get search / edits'","OK",nil,
xTAGx)
menucomplete=1
calibrateagain=0
return
end

--██████████████████
-- APEX[GG]v2 https://t.me/apexgg2Home
--██████████████████

function menu()
apex=1
gg.setVisible(false)
gg.toast("APEX[GG]v2")
if hasEdits==0 then mc1=true mc2=false end
if hasEdits==1 then mc1=false mc2=true end
if hasEdits==2 then mc1=false mc2=false end
mc=gg.multiChoice({
"Get Search / Edits",
"Load Results",
"Show GG / Select Process",
"Reset Calibration",
"..HELP..",
"[ EXIT ]"},{[1]=mc1,[2]=mc2},"APEX[GG]v2\nhttps://t.me/apexgg2Home\n[Get-
Edits]-v04")
if mc==nil then return end
if mc[6] then gg.setVisible(true) os.exit() return end
if mc[1] then getedits() end
if mc[2] then loadedits() end
if mc[3] then
apex=2
gg.setVisible(true)
end
if mc[4] then
menucomplete=0
magicvalue=nil
hasedits=0
gg.alert("[√] Calibration Reset","OK",nil,xTAGx)
menu1()
return
end
if mc[5] then gethelp() end
end

--██████████████████

function getedits()
gg.setVisible(false)
-- x64 check removed
val=nil hasEdits=0
gg.setRanges(gg.REGION_JAVA_HEAP)
gg.clearResults()
gg.toast("Please Wait..")
gg.searchNumber(magicvalue,4)
if gg.getResultsCount()==0 then
gg.alert("×× ERROR ××\n\nIs the Other GG Selected as the Process? \nClose
all GGs and Try Again.","OK",nil,"APEX[GG]V2")
return
end
x=gg.getResults(gg.getResultsCount())
gg.clearResults()
for i, v in ipairs(x) do
v.address=v.address+4
v.flags=4
end
gg.loadResults(x)
gg.refineNumber(0,4)
x=gg.getResults(gg.getResultsCount())
gg.clearResults()
for i, v in ipairs(x) do
v.address=v.address+4
v.flags=4
end
x=gg.getValues(x)
r={} rr=0
gg.toast("Please Wait..")
for i, v in ipairs(x) do
if #(tostring(v.value))>7 then
rr=rr+1
r[rr]={}
r[rr].address=v.address+12
r[rr].flags=4
end
end
gg.loadResults(r) r=nil
gg.refineNumber(0,4)
x=gg.getResults(gg.getResultsCount())
gg.clearResults()
for i, v in ipairs(x) do
v.address=v.address+4
v.flags=4
end
gg.loadResults(x)
gg.refineNumber("4~64",4)
x=gg.getResults(gg.getResultsCount())
gg.clearResults()
for i, v in ipairs(x) do
v.address=v.address+4
v.flags=4
end
gg.loadResults(x)
gg.toast("Please Wait..")
gg.refineNumber(0,4)
if gg.getResultsCount()==0 then
gg.alert("×× NO SEARCH/EDITS ××\n\nDid you Activate any Hacks From the
Other Script?\nFollow All Steps in '..HELP..'\nIf Error Continues, Force Close All
GG and the Game, and Try Again","OK",nil, "APEX[GG]V2")
menu()
return
end
x=gg.getResults(gg.getResultsCount())
gg.clearResults()
for i, v in ipairs(x) do
v.address=v.address-4
v.flags=4
end

gg.loadResults(x) -- on data type

val=nil val={} orig=nil orig={} adr=nil adr={} c=0


gg.refineNumber(4,4)
if gg.getResultsCount()~=0 then
z=gg.getResults(gg.getResultsCount())
for i, v in ipairs(z) do
v.address=v.address-16
v.flags=32
end
z=gg.getValues(z)
for i, v in ipairs(z) do
if v.value>0 then
c=c+1
val[c]={}
val[c].address=tonumber("0x"..string.format("%X", v.value))
val[c].flags=4
adr[c]={}
adr[c].address=tonumber("0x"..string.format("%X", v.value))
adr[c].flags=4
orig[c]={}
orig[c].address=z[i].address+8
orig[c].flags=4
end
end
end

gg.clearResults()
gg.loadResults(x) -- on data type
gg.toast("Please Wait..")
gg.refineNumber(16,4)
if gg.getResultsCount()~=0 then
z=gg.getResults(gg.getResultsCount())
for i, v in ipairs(z) do
v.address=v.address-16
v.flags=32
end
z=gg.getValues(z)
for i, v in ipairs(z) do
if v.value>0 then
c=c+1
val[c]={}
val[c].address=tonumber("0x"..string.format("%X", v.value))
val[c].flags=16
adr[c]={}
adr[c].address=tonumber("0x"..string.format("%X", v.value))
adr[c].flags=16
orig[c]={}
orig[c].address=z[i].address+8
orig[c].flags=16
end
end
end

gg.clearResults()
gg.loadResults(x) -- on data type

gg.refineNumber(32,4)
if gg.getResultsCount()~=0 then
z=gg.getResults(gg.getResultsCount())
for i, v in ipairs(z) do
v.address=v.address-16
v.flags=32
end
z=gg.getValues(z)
for i, v in ipairs(z) do
if v.value>0 then
c=c+1
val[c]={}
val[c].address=tonumber("0x"..string.format("%X", v.value))
val[c].flags=32
adr[c]={}
adr[c].address=tonumber("0x"..string.format("%X", v.value))
adr[c].flags=32
orig[c]={}
orig[c].address=z[i].address+8
orig[c].flags=32
end
end
end

gg.clearResults()
gg.loadResults(x) -- on data type
gg.toast("Please Wait..")
gg.refineNumber(64,4)
if gg.getResultsCount()~=0 then
z=gg.getResults(gg.getResultsCount())
for i, v in ipairs(z) do
v.address=v.address-16
v.flags=32
end
z=gg.getValues(z)
for i, v in ipairs(z) do
if v.value>0 then
c=c+1
val[c]={}
val[c].address=tonumber("0x"..string.format("%X", v.value))
val[c].flags=64
adr[c]={}
adr[c].address=tonumber("0x"..string.format("%X", v.value))
adr[c].flags=64
orig[c]={}
orig[c].address=z[i].address+8
orig[c].flags=64
end
end
end

gg.clearResults()
if #(val)==0 then
gg.toast("ERROR")
gg.alert("×× NO SEARCH/EDITS ××\n\nDid you Activate any Hacks From the
Other Script?\nFollow All Steps in '..HELP..'\nIf Error Continues, Force Close All
GG and the Game, and Try Again","OK",nil, "APEX[GG]V2")
return
end

adr=gg.getValues(adr)
orig=gg.getValues(orig)
gg.toast("[√] SUCCESS")
gg.alert("[√] Get Search/Edits\n\nChange This GG Process to the Game, then Press
the [Sx] Button and Select 'Load Results'","OK",nil,"APEX[GG]V2")
hasEdits=1
gg.setVisible(true)
apex=2
end -- getedits()

--██████████████████

function loadedits()
gg.setVisible(false)
if hasEdits==0 then
gg.alert("×× LOAD VALUES ××\nYou must first successfully complete 'Get
Edits'","MENU",nil,"APEX[GG]V2")
menu()
return
end

gg.toast("Please Wait..")
gg.loadResults(val)
x=gg.getResults(gg.getResultsCount())
x1000=0 x10=0
if #(x)>=1000 then
gg.alert("×× WARNING ××\nToo Many Results!! \nGG Might Crash\nPlease
Wait..\nThis will take a while","OK",nil, xTAGx)
x1000=1
x10=1
end

if #(x)>=100 and x1000==0 then


gg.alert("Please Wait..\nThis will take a while","OK",nil, xTAGx)
x10=1
end
gg.clearResults()
q={} c=1 qq=0 p=0
while c<=#(x) do
if x10==1 then
if c-1==p then
gg.toast("Please Wait [ "..#(x)+1-p.." ] ")
p=p+25
end
end
for i, v in ipairs(orig) do
if x[c].value==orig[i].value and x[c].address==adr[i].address then
qq=qq+1
q[qq]={}
q[qq].address=x[c].address
q[qq].flags=x[c].flags
end
end
c=c+1
end

gg.toast("Please Wait..")
gg.loadResults(q)
x=gg.getResults(gg.getResultsCount())
gg.setValues(x)
gg.addListItems(x)
if gg.getResultsCount()~=0 then
gg.alert("[√] FINISHED\n\nSearch + Edits are Loaded in the Search and Save
Tab.\n\nOptional, Turn Hacks Off from Other Script, then on this GG, Fuzzy
Search 'CHANGED'","OK",nil,"APEX[GG]V2")
apex=2
gg.setVisible(true)
else
gg.alert("[×] ERROR\n\nCould Not Load Results.\nTry
Again.","OK",nil,"APEX[GG]v2")
end

hasEdits=2
end

--██████████████████

function gethelp()
gg.alert([[•• GET HELP ••

CALIBRATION HELP
1) Start 2 GGs
2) GG1 Process = Game
3) GG2 Process = GG1
4) Run This Script in Both GG.
5) Follow Instructions as Prompted.

GET EDITS HELP

GG1 = Other GG
GG2 = This GG

1) GG1 Select Game as Process


Start Other Script and do Hacks.

2) DO NOT EXIT THAT SCRIPT


If Script Exits, Do Not Touch
Anything in GG1.
If the UI is Visible, Only Tap 'x'
to minimize.
3) GG2 Select GG1 as Process,
Select 'Get Edits' and OK.

4) Follow Instructions when Alerted.


1) Get Edits Success
2) Change Process
3) Press [Sx]
4) Select Load Edits

5) Turn OFF Hacks in GG1

6) GG2, Do Fuzzy Search = Changed

7) Results Are Not Perfect.


Toggle Hacks OFF and then
Doing Fuzzy Changed will
Help a lot. If No Results, Try
Doing Only 1 Hack at a Time.

8) Say 'Thank You'

9) You Are Welcome :-)]],"MENU",nil,"APEX[GG]V2")

menu1()
return
end

gg.setVisible(true)
--██████████████████
while true do

if hackagain==1 and gg.isVisible() then


gg.setVisible(false)
menu1()
end

if calibrateagain==1 and gg.isVisible() then


gg.setVisible(false)
menu1()
end

if apex==0 or apex==1 and gg.isVisible() then


gg.setVisible(false)
menu1()
end

if gg.isClickedUiButton() then
menu1()
end
end

You might also like