Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LUA = 'WILS2M'
- GLabel = 'Subway Surf'
- GProcess = 'com.kiloo.subwaysurf'
- GVersion = '(vAU.02)'
- xbit = 64
- LibResult = 1
- xlib = 'libil2cpp.so'
- xREV = 1 I={}
- xCNE = 0
- xSSE = 0
- XbitX = 2
- printx = '---------------------------------------------------------------'
- expire='free'
- game = gg.getTargetInfo()
- P=game.processName
- FP=game.name
- L=gg.getTargetInfo().label
- M=gg.getTargetInfo()["label"]
- V=game.versionName
- TP=gg.getTargetPackage()
- xTAGx="Have fun"
- xLINKx="https://t.me/HxE_Chat"
- xLINK1x="https://www.tiktok.com/@hxesq"
- printx="---------------------------------------------------------------"
- print(printx)
- print(xTAGx)
- print("Telegram = "..xLINKx)
- print("TikTok = "..xLINK1x)
- print(printx)
- print("Script = "..GLabel.." "..GVersion)
- --███████████████████████
- --███████████████████████
- --███████████████████████
- -- APEX[GG]v2
- apex=1
- gg.setVisible(false)
- v=gg.getTargetInfo()
- if v==nil then
- print("×× ERROR ××\n×× INVALID PROCESS SELECTED / OR NO ROOT ACCESS")
- gg.setVisible(true) os.exit()
- return
- end
- HxEmenu = (' ⚡HxE Menu by wils2m⚡\
- ❦ ════ •⊰❂ - ❂⊱• ════ ❦\
- ⛥🇮🇳🇫🇴⛥\
- 🎮🅖🅐🅜🅔🎮 : '..GLabel..'\
- 🎰🅥🅔🅡🅢🎰 : '..GVersion..'\
- 🎰🅐🅡🅜🎰 : '..xbit..'\
- \
- ⏳Exᴘɪʀᴇᴅ Date⏳ : '..expire..'\
- 🎁 Encryption 🎁 : '..expire..'\
- ❦ ════ •⊰❂ - ❂⊱• ════ ❦')
- gg.alert(HxEmenu)
- gg.alert(" Patch Note\
- ❦ ════ •⊰❂ - ❂⊱• ════ ❦\
- - HxE script menu\
- - Huge thanks to Apex[GG]\
- - Script auto updated\
- - NEW\
- - Added real money hook\
- .............................................\
- - God mode\
- - Free resurrection\
- - Free In-App Purchase\
- - Unlimited Gold/Gems available\
- - Multiple Score available\
- - Speed hack\
- - More++\
- ❦ ════ •⊰❂ - ❂⊱• ════ ❦\
- ")
- ------------------------------------------------------------------------------
- A={} for i =1,100 do A[i]={} end
- ------------------------------------------------------------------------------
- OFF="× " ON="√ "
- GM=OFF AA=OFF CD=OFF UM=OFF SM=OFF
- FR=OFF FP=OFF SH=OFF NT=OFF PO=OFF
- ST=OFF JP=OFF HJ=OFF
- if v.x64 then x1="hC0BEA0D2" x2='h006A98D2'
- else x1="h990040E3" x2='h640000E3'
- end
- function menu()
- apex=0
- gg.toast(xTAGx)
- mc=gg.multiChoice({
- FR.."Free resurrection",
- GM.."God mode",
- AA.."All achievements",
- UM.."Unlimited Coins/Gems",
- CD.."Coins doubler",
- SM.."Multiple score",
- FP.."Free In-App Purchase/Free Shop",
- JP.."Air Jump",
- NT.."No Train",
- PO.."PowerUp",
- SH.."Speed",
- HJ.."High Jump",
- "[ EXIT ]"},
- {},xTAGx.."\n"..xLINKx.."\n"..GLabel.." "..GVersion.." "..xBITx)
- if mc==nil then cancel() return end
- if mc[1] == true then res() end
- if mc[2] == true then god() end
- if mc[3] == true then achieve() end
- if mc[4] == true then gold() end
- if mc[5] == true then doublers() end
- if mc[6] == true then scorea() end
- if mc[7] == true then free() end
- if mc[8] == true then jump() end
- if mc[9] == true then notrain() end
- if mc[10] == true then powerup() end
- if mc[11] == true then speed() end
- if mc[12] == true then hjump() end
- xhaX={
- FR.."Free resurrection",
- GM.."God mode",
- AA.."All achievements",
- UM.."Unlimited Coins/Gems",
- CD.."Coins doubler",
- SM.."Multiple score",
- FP.."Free In-App Purchase",
- JP.."Air Jump",
- NT.."No Train",
- PO.."PowerUp",
- SH.."Speed",
- HJ.."High Jump",
- }
- xhaX=table.concat(xhaX, "\n")
- xhaX=tostring(xhaX)
- if mc[13] then exit() return end
- gg.toast("[√] Complete")
- gg.alert(GLabel.." "..GVersion.." "..xBITx.."\n\n"..xhaX,"OK",nil,xTAGx)
- end
- --█████████████████████████████████████████████
- --// Namespace: SYBO.Subway
- --public class ScoreMultiplierManager
- --public int get_BaseMultiplierSum()
- A[1].name="SYBO.Subway"
- A[1].class="ScoreMultiplierManager"
- A[1].method="get_BaseMultiplierSum"
- function scorea()
- if A[1].error==1 then error() return end
- for i = A[1].start, A[1].finish do o=I[i]
- if SM==OFF then x="hE0E184D2" arm() else revert() end
- end
- if SM==OFF then SM=ON else SM=OFF end
- end
- --█████████████████████████████████████████████
- --//Namespace: SYBO.Subway
- --public class EndRunSequence : MonoBehaviour
- --private int get_Score()
- A[2].name="SYBO.Subway"
- A[2].class="EndRunSequence"
- A[2].method="get_Score"
- --01 02 A0 E3 1E FF 2F E1
- function scoreb()
- if A[2].error==1 then error() return end
- end
- --█████████████████████████████████████████████
- --//Namespace: SYBO.Subway.Meta
- --public class WalletModel : ModelBase
- --public int GetCurrency(CurrencyType type)
- A[3].name="SYBO.Subway.Meta"
- A[3].class="WalletModel"
- A[3].method="GetCurrency"
- --public bool HasCurrency(CurrencyType type)
- A[4].name="SYBO.Subway.Meta"
- A[4].class="WalletModel"
- A[4].method="HasCurrency"
- --public bool CanAfford(Currency currencyValue)
- --public bool CanAfford(CurrencyType currencyType, int amount)
- A[5].name="SYBO.Subway.Meta"
- A[5].class="WalletModel"
- A[5].method="CanAfford"
- function gold()
- for i = 3,5 do if A[i].error == 1 then error() break return end end
- for i = A[3].start, A[3].finish do o=I[i]
- if UM==OFF then x="h0000B0D2" arm() else revert() end
- end
- for i = A[4].start, A[5].finish do o=I[i]
- if UM==OFF then x=1 arm() else revert() end
- end
- if UM==OFF then UM=ON else UM=OFF end
- end
- --█████████████████████████████████████████████
- --// Namespace: SYBO.Subway
- --public class EndRunCoinWidget : MonoBehaviour
- --private bool get_OwnsCoinDoubler()
- A[6].name="SYBO.Subway"
- A[6].class="EndRunCoinWidget"
- A[6].method="get_OwnsCoinDoubler"
- --private bool get_HasGivenBonusCoins()
- A[7].name="SYBO.Subway"
- A[7].class="EndRunCoinWidget"
- A[7].method="get_HasGivenBonusCoins"
- function doublers()
- for i = 6,7 do if A[i].error == 1 then error() break return end end
- for i = A[6].start, A[7].finish do o=I[i]
- if CD==OFF then x=1 arm() else revert() end
- end
- if CD==OFF then CD=ON else CD=OFF end
- end
- --█████████████████████████████████████████████
- --//Namespace: SYBO.Subway.Meta
- --public class AvailableCharacter : SkinnableItem
- --public bool IsOutfitOwned(string outfitId)
- A[8].name="SYBO.Subway.Meta"
- A[8].class="AvailableCharacter"
- A[8].method="IsOutfitOwned"
- --public override bool IsSkinOwned(string skinId)
- A[9].name="SYBO.Subway.Meta"
- A[9].class="AvailableCharacter"
- A[9].method="IsSkinOwned"
- --public class OwnedCharacterState : BaseOwnedItem
- --public bool HasOutfit(string outfitId)
- A[10].name="SYBO.Subway.Meta"
- A[10].class="OwnedCharacterState"
- A[10].method="HasOutfit"
- --public bool IsOutfitLocked(string outfitId)
- --?????
- --// Namespace: SYBO.Subway.Meta
- --public class AvailableCharacter : SkinnableItem
- --public override bool get_IsOwned()
- A[11].name="SYBO.Subway.Meta"
- A[11].class="AvailableCharacter"
- A[11].method="get_IsOwned"
- function free()
- for i = 8,11 do if A[i].error == 1 then error() break return end end
- if A[25].error==1 then error() return end
- for i = A[8].start, A[11].finish do o=I[i]
- if FP==OFF then x=1 arm() else revert() end
- end
- for i = A[25].start, A[25].finish do o=I[i]
- if FP==OFF then x=0 arm() else revert() end
- end
- if FP==OFF then FP=ON else FP=OFF end
- end
- --█████████████████████████████████████████████
- --// Namespace: SYBO.Subway
- --public class CharacterStumble : MonoBehaviour
- --private bool IsAutoReviveEnabled()
- A[12].name="SYBO.Subway"
- A[12].class="CharacterStumble"
- A[12].method="IsAutoReviveEnabled"
- function res()
- if A[12].error==1 then error() return end
- for i = A[12].start, A[12].finish do o=I[i]
- if FR==OFF then x=1 arm() else revert() end
- end
- if FR==OFF then FR=ON else FR=OFF end
- end
- --█████████████████████████████████████████████
- --// Namespace: SYBO.Subway
- --public class CharacterStumble : MonoBehaviour
- --public void Stumble(DeathCause cause)
- A[13].name="SYBO.Subway"
- A[13].class="CharacterStumble"
- A[13].method="Stumble"
- --public class CharacterStumble : MonoBehaviour
- --public void Kill(DeathCause cause)
- A[14].name="SYBO.Subway"
- A[14].class="CharacterStumble"
- A[14].method="Kill"
- --//Namespace: SYBO.RunnerCore.Character
- --public class CharacterMotor : MonoBehaviour
- --public bool CheckFrontalImpact(ImpactFrameState impactState)
- A[15].name="SYBO.RunnerCore.Character"
- A[15].class="CharacterMotor"
- A[15].method="CheckFrontalImpact"
- function god()
- for i = 13,15 do if A[i].error == 1 then error() break return end end
- for i = A[13].start, A[15].finish do o=I[i]
- if GM==OFF then x=0 arm() else revert() end
- end
- if GM==OFF then GM=ON else GM=OFF end
- end
- --█████████████████████████████████████████████
- --//Namespace: SYBO.Subway.Meta
- --public class Achievement : IComparable<Achievement>
- --public void set_ProgressRatio(float value)
- A[16].name="SYBO.Subway.Meta"
- A[16].class="Achievement"
- A[16].method="set_ProgressRatio"
- --public bool get_IsTierCompleted()
- A[17].name="SYBO.Subway.Meta"
- A[17].class="Achievement"
- A[17].method="get_IsTierCompleted"
- --public bool get_IsAchievementCompleted()
- A[18].name="SYBO.Subway.Meta"
- A[18].class="Achievement"
- A[18].method="get_IsAchievementCompleted"
- function achieve()
- for i = 16,18 do if A[i].error == 1 then error() break return end end
- for i = A[16].start, A[16].finish do o=I[i]
- if AA==OFF then x="h0000B0D2" arm() else revert() end
- end
- for i = A[17].start, A[18].finish do o=I[i]
- if AA==OFF then x=1 arm() else revert() end
- end
- if AA==OFF then AA=ON else AA=OFF end
- end
- --█████████████████████████████████████████████
- --//Namespace: SYBO.Subway
- --public class MovingTrain : SubwayEntity
- --private void Update()
- A[19].name="SYBO.Subway"
- A[19].class="MovingTrain"
- A[19].method="Update"
- --public override void Disable()
- function notrain()
- if A[19].error==1 then error() return end
- for i = A[19].start, A[19].finish do o=I[i]
- if NT==OFF then x=0 arm() else revert() end
- end
- if NT==OFF then NT=ON else NT=OFF end
- end
- --█████████████████████████████████████████████
- --//Namespace: SYBO.Subway.Meta
- --public class UpgradesModel : ModelBase
- --public int GetPowerupLevel(string powerupId)
- A[20].name="SYBO.Subway.Meta"
- A[20].class="UpgradesModel"
- A[20].method="GetPowerupLevel"
- function powerup()
- if A[20].error==1 then error() return end
- for i = A[20].start, A[20].finish do o=I[i]
- if PO==OFF then x="hE07C80D2" arm() else revert() end
- end
- if PO==OFF then PO=ON else PO=OFF end
- end
- --█████████████████████████████████████████████
- --█████████████████████████████████████████████
- --//Namespace: SYBO.RunnerCore.Character
- --public class CharacterMotorAbilities : MonoBehaviour
- --public float get_MinSpeed
- A[21].name="SYBO.RunnerCore.Character"
- A[21].class="CharacterMotorAbilities"
- A[21].method="get_MinSpeed"
- --public float get_MaxSpeed
- A[22].name="SYBO.RunnerCore.Character"
- A[22].class="CharacterMotorAbilities"
- A[22].method="get_MaxSpeed"
- function speed()
- for i = 21,22 do if A[i].error == 1 then error() break return end end
- for i = A[21].start, A[22].finish do o=I[i]
- if SH==OFF then x="hC072A8D2" arm() else revert() end
- end
- if SH==OFF then SH=ON else SH=OFF end
- end
- --█████████████████████████████████████████████
- --//Namespace: SYBO.RunnerCore.Character
- --public class CharacterMotor : MonoBehaviour
- --public float get_CanJump
- A[23].name="SYBO.RunnerCore.Character"
- A[23].class="CharacterMotor"
- A[23].method="get_CanJump"
- function jump()
- if A[23].error==1 then error() return end
- for i = A[23].start, A[23].finish do o=I[i]
- if JP==OFF then x=1 arm() else revert() end
- end
- if JP==OFF then JP=ON else JP=OFF end
- end
- --█████████████████████████████████████████████
- --//Namespace: SYBO.RunnerCore.Character
- --public class CharacterMotorAbilities : MonoBehaviour
- --public float get_JumpHeight() { }
- A[24].name="SYBO.RunnerCore.Character"
- A[24].class="CharacterMotorAbilities"
- A[24].method="get_JumpHeight"
- function hjump()
- if A[24].error==1 then error() return end
- for i = A[24].start, A[24].finish do o=I[i]
- if HJ==OFF then x="h00F0271E" arm() else revert() end
- end
- if HJ==OFF then HJ=ON else HJ=OFF end
- end
- --█████████████████████████████████████████████
- --//Namespace: SYBO.Subway.Meta
- --public class Currency : IEquatable<Currency>
- --public bool get_IsIAP()
- A[25].name="SYBO.Subway.Meta"
- A[25].class="Currency"
- A[25].method="get_IsIAP"
- --█████████████████████████████████████████████
- --█████████████████████████████████████████████
- if v.processName~=GProcess then
- print("This Script is For:\n "..GLabel.."\n "..GProcess.."\nYou Selected:\n "..v.label.."\n "..v.processName)
- gg.setVisible (true) os.exit()
- return
- end
- ------------------------------------------------------------------------------
- if v.x64 then bitx=64 xBITx="[x64]" else bitx=32 xBITx="[x32]" end
- print(xBITx)
- print(printx)
- ------------------------------------------------------------------------------
- isrdy=gg.alert("Subway Surfer\n\nThis Script is Auto-Updating. \nInitial Calibration May Take A While.\n\nYOU MUST NOT CURRENTLY BE IN ANY GAMEPLAY (MISSION/BATTLE/ETC). Otherwise, Calibration will Fail and Hacks Not Work\n\n(All hacks must be activated from lobby)","EXIT","START",xTAGx)
- if isrdy~=2 then gg.setVisible(true) os.exit() return end
- --█████████████████████████████████████████████
- if LibResult==1 then
- xAPEXx={} xXx=0
- xLibRes=0
- libx=gg.getRangesList()
- if #(libx)==0 then
- print("×× LIB ERROR #01 ××\nNo Libs Found\nTry a Different Virtual Environment \nor Try a Better Game Installation Method\nor Download Game From 'apkcombo.com' ")
- gg.setVisible(true)
- os.exit()
- end
- libx=gg.getRangesList(xlib)
- if #(libx)==0 then
- print("×× No "..xlib.." Found")
- xLibRes=2
- goto APEX_SPLIT
- end
- xlibn=0
- for i, v in ipairs(libx) do
- if libx[i].state=="Xa" then
- xXx=xXx+1
- xAPEXx[xXx]=libx[i].start
- xLibRes=1
- end
- end
- if xLibRes==0 then
- print("×× LIB ERROR #03 ××\nNo "..xlib.." Found in Xa\nTry a Different Virtual Environment \nor Try a Better Game Installation Method\nor Download Game From 'apkcombo.com' ")
- gg.setVisible(true)
- os.exit()
- end
- ::APEX_SPLIT::
- if xLibRes==2 then
- splitapk=0
- libx=gg.getRangesList()
- for i, v in ipairs(libx) do
- if libx[i].state=="Xa" and string.match(libx[i].name,"split_config") then
- splitapk=1
- end
- end
- if splitapk==1 then
- xsapk={} xsapkx=0
- for i, v in ipairs(libx) do
- if libx[i].state=="Xa" then
- xsapkx=xsapkx+1
- xsapk[xsapkx]=libx[i]["end"]-libx[i].start
- end
- end
- if xsapkx~=0 then
- APEXQ=math.max(table.unpack(xsapk))
- for i, v in ipairs(libx) do
- if libx[i].state=="Xa" and libx[i]["end"]-libx[i].start==APEXQ then
- xXx=xXx+1
- xAPEXx[xXx]=libx[i].start
- print("√√ Split Apk Lib Found\n√√ "..libx[i].name)
- xLibRes=1
- end
- end
- end
- end
- if splitapk==0 and xLibRes~=1 then
- print("×× No split_config Lib Found")
- xc=1 xt={}
- libx=gg.getRangesList()
- for i, v in ipairs(libx) do
- if libx[i].state=="Xa" then
- xt[xc]=tonumber(libx[i]["end"]-libx[i].start)
- xc=xc+1
- end
- end
- APEXQ=math.max(table.unpack(xt))
- for i, v in ipairs(libx) do
- if libx[i].state=="Xa" and libx[i]["end"]-libx[i].start==APEXQ then
- xXx=xXx+1
- xAPEXx[xXx]=libx[i].start
- print("√√ math.max Xa Lib Found\n√√ "..libx[i].name)
- xLibRes=1
- end
- end
- end
- if xLibRes~=1 then
- print("×× Correct Lib Not Found ××\n×× Direct/Split Config/Xa Max ××")
- gg.setVisible(true)
- os.exit()
- return
- end
- end
- end
- --█████████████████████████████████████████████
- function arm()
- o=tonumber(o)
- for XxX=1,#(xAPEXx) do
- xdump=nil xdump={}
- xdump[1]={} xdump[2]={}
- xdump[1].address=xAPEXx[XxX] + o
- xdump[1].flags=4
- if x==0 then xdump[1].value=xfalse end
- if x==1 then xdump[1].value=xtrue end
- if x~=0 and x~=1 then xdump[1].value=x end
- xdump[2].address=xAPEXx[XxX]+(o+4)
- xdump[2].flags=4
- xdump[2].value=xEND
- gg.setValues(xdump)
- end
- end
- ------------------------------------------------------------------------------
- function revert()
- for XxX=1,#(xAPEXx) do
- REVERT=nil REVERT={} xRx=nil xRx=1
- for i, v in ipairs(ORIG) do
- if tonumber(xAPEXx[XxX]+o)==ORIG[i].address then
- REVERT[xRx]={}
- REVERT[xRx].address=xAPEXx[XxX]+o
- REVERT[xRx].flags=4
- REVERT[xRx].value=ORIG[i].value
- xRx=xRx+1
- REVERT[xRx]={}
- REVERT[xRx].address=xAPEXx[XxX]+o+4
- REVERT[xRx].flags=4
- REVERT[xRx].value=ORIG[i+1].value
- gg.setValues(REVERT)
- break
- end
- xRx=xRx+1
- end
- end
- end
- --█████████████████████████████████████████████
- function sort()
- SORT1={} apexsort=0
- for sorti = A[s].start, A[s].finish do
- apexsort=apexsort+1
- SORT1[apexsort] = I[sorti]
- end
- SORT2={} table.sort(SORT1)
- for sort2, v in pairs(SORT1) do
- SORT2[sort2]=v
- end
- r=SORT2[r]
- end
- --█████████████████████████████████████████████
- if v.x64 then
- xtrue="h200080D2" -- MOV X0, #0x1
- xfalse="h000080D2" -- MOV X0, #0x0
- xEND="hC0035FD6" -- RET
- else
- xtrue="h0100A0E3" -- MOVW R0, #1
- xfalse="h0000A0E3" -- MOVW R0, #0
- xEND="h1EFF2FE1" -- BX LR
- end
- --█████████████████████████████████████████████
- -- APEX[GG]v2
- function clear()
- gg.getResults(gg.getResultsCount())
- gg.clearResults()
- end
- ------------------------------------------------------------------------------
- function get()
- gg.getResults(gg.getResultsCount())
- end
- ------------------------------------------------------------------------------
- function search()
- gg.getResults(gg.getResultsCount())
- gg.clearResults()
- gg.searchNumber(x,t)
- end
- ------------------------------------------------------------------------------
- function refine()
- gg.refineNumber(x,t)
- end
- ------------------------------------------------------------------------------
- function refinenot()
- gg.refineNumber(x,t,false,gg.SIGN_NOT_EQUAL)
- end
- ------------------------------------------------------------------------------
- function edit()
- gg.getResults(gg.getResultsCount())
- gg.editAll(x,t)
- end
- ------------------------------------------------------------------------------
- function check()
- E=nil E=gg.getResultsCount()
- end
- ------------------------------------------------------------------------------
- function offset()
- o=tonumber(o) addoff=nil
- addoff=gg.getResults(gg.getResultsCount())
- for i, v in ipairs(addoff) do
- addoff[i].address=addoff[i].address+o
- addoff[i].flags=t
- end
- gg.loadResults(addoff)
- end
- --█████████████████████████████████████████████
- function cancel()
- gg.toast("CANCELLED")
- end
- ------------------------------------------------------------------------------
- function wait()
- gg.toast("Please Wait..")
- end
- ------------------------------------------------------------------------------
- function error()
- gg.toast("× ERROR ×")
- gg.sleep(1000)
- end
- ------------------------------------------------------------------------------
- function exit()
- gg.getListItems()
- gg.clearList()
- gg.getResults(gg.getResultsCount())
- gg.clearResults()
- gg.toast("[ EXIT ]")
- if xhaX~=nil then
- print(printx)
- print(xhaX)
- print(printx)
- end
- gg.setVisible(true)
- os.exit()
- return
- end
- --█████████████████████████████████████████████
- if v.x64 then off1=-16 typ=32 else off1=-8 typ=4 end
- gg.setRanges(gg.REGION_OTHER | gg.REGION_C_ALLOC)
- gmdx=gg.getRangesList("global-metadata.dat")
- if #(gmdx)~=0 then
- gmds=gg.getRangesList("global-metadata.dat")[1].start
- gmde=gg.getRangesList("global-metadata.dat")[1]["end"]
- else gmds=nil gmde=nil
- end
- ATOTAL=0
- for i = 1,100 do
- if A[i].method==nil then break end
- ATOTAL=ATOTAL+1
- end
- ASTART=1 AEND=0 ATABT=ATOTAL+1 ATAB=1
- S=0
- while ATAB<=ATOTAL do
- ::AUTOSTART::
- if gg.isVisible() then gg.setVisible(false) end
- if ATAB>ATOTAL then break goto FINISHED end
- gg.toast("Please Wait.. [ "..ATABT-ATAB.." ]")
- A[ATAB].error=1
- ANAME=nil ANAME={}
- if A[ATAB].name~=nil then
- for i = 1,#(tostring(A[ATAB].name)) do
- ANAME[i]=string.byte(A[ATAB].name,i)
- end
- else
- A[ATAB].name=0
- end
- ACLASS=nil ACLASS={}
- if A[ATAB].class~=nil then
- for i = 1,#(tostring(A[ATAB].class)) do
- ACLASS[i]=string.byte(A[ATAB].class,i)
- end
- else
- A[ATAB].class=0
- end
- ASTART=AEND+1
- clear() t=1
- gg.searchNumber(":"..tostring(A[ATAB].method),1,false,gg.SIGN_EQUAL,gmds, gmde)
- xm=gg.getResults(2) gg.getResults(gg.getResultsCount())
- check()
- if E==0 then ATAB=ATAB+1
- if ATAB>ATOTAL then break return end
- goto AUTOSTART return
- end
- x=xm[1].value..";"..xm[2].value.."::2" refine()
- x=xm[1].value refine()
- o=-1 offset() x=0 refine() oo=#(tostring(A[ATAB].method))
- o=oo+1 offset() refine() o=-oo offset()
- check()
- if E==0 then ATAB=ATAB+1
- if ATAB>ATOTAL then break return end
- goto AUTOSTART return
- end
- gg.searchPointer(0) xcount=gg.getResultsCount()
- xpoint=gg.getResults(xcount,nil, nil, nil, nil, nil, nil, nil,gg.POINTER_READ_ONLY)
- if #(xpoint)==0 then ATAB=ATAB+1
- if ATAB>ATOTAL then break return end
- goto AUTOSTART return
- end
- clear()
- for xp=1,#(xpoint) do
- xpoint[xp].address=xpoint[xp].address+off1
- xpoint[xp].flags=typ
- end
- gg.loadResults(xpoint)
- xoff=gg.getResults(#(xpoint),nil, nil, nil, nil, nil, nil, nil, gg.POINTER_EXECUTABLE)
- if #(xoff)==0 then ATAB=ATAB+1
- if ATAB>ATOTAL then break return end
- goto AUTOSTART return
- end
- xfin=1
- while xfin<=#(xoff) do
- ::XFIN::
- if xfin>#(xoff) then ATAB=ATAB+1
- if ATAB>ATOTAL then break return end
- goto AUTOSTART return
- end
- if gg.getTargetInfo().x64 then
- xadd=tonumber(xoff[xfin].value)
- else
- xadd=string.format("%X",tonumber(xoff[xfin].value))
- xadd=string.sub(tostring(xadd), -8,-1)
- xadd=tonumber("0x"..xadd)
- end
- gval1=nil gval1={} gval1[1]={}
- if gg.getTargetInfo().x64 then gvo=24 gvo1=16 gvo2=24 else gvo=12 gvo1=8 gvo2=12 end
- gval1[1].address=xoff[xfin].address+gvo
- gval1[1].flags=typ
- gval1=gg.getValues(gval1)
- if gg.getTargetInfo().x64 then
- gval=tonumber(gval1[1].value)
- else
- gval=string.format("%X",tonumber(gval1[1].value))
- gval=string.sub(tostring(gval), -8,-1)
- gval=tonumber("0x"..gval)
- end
- gval2=nil gval2={} gval2[1]={} gval2[2]={}
- gval2[1].address=gval+gvo1
- gval2[1].flags=typ
- gval2[2].address=gval+gvo2
- gval2[2].flags=typ
- gval2=gg.getValues(gval2)
- if gg.getTargetInfo().x64 then
- gval21=tonumber(gval2[1].value)
- gval22=tonumber(gval2[2].value)
- else
- gval21=string.format("%X",tonumber(gval2[1].value))
- gval21=string.sub(tostring(gval21), -8,-1)
- gval21=tonumber("0x"..gval21)
- gval22=string.format("%X",tonumber(gval2[2].value))
- gval22=string.sub(tostring(gval22), -8,-1)
- gval22=tonumber("0x"..gval22)
- end
- xrefine=0
- if A[ATAB].class~=0 then
- for xyz=1,#(ACLASS) do
- gvalc={} gvalc[1]={}
- gvalc[1].address=gval21+(xyz-1)
- gvalc[1].flags=1
- gvalc=gg.getValues(gvalc)
- if gvalc[1].value~=ACLASS[xyz] then xrefine=1 break xfin=xfin+1 goto XFIN end
- end
- end
- if A[ATAB].name~=0 then
- for xyz=1,#(ANAME) do
- gvalc={} gvalc[1]={}
- gvalc[1].address=gval22+(xyz-1)
- gvalc[1].flags=1
- gvalc=gg.getValues(gvalc)
- if gvalc[1].value~=ANAME[xyz] then xrefine=1 break xfin=xfin+1 goto XFIN end
- end
- end
- if xrefine==0 then
- A[ATAB].start=ASTART AEND=AEND+1
- A[ATAB].finish=AEND
- A[ATAB].error=0
- clear() I[AEND]=xadd-xAPEXx[xXx]
- end
- xfin=xfin+1
- end -- xfin
- ATAB=ATAB+1
- end -- ATAB
- ---------------------------------------------------
- ::FINISHED::
- xBAR=0
- for i = 1, ATOTAL do
- if A[i].error~=0 then xBAR=xBAR+1 end
- end
- if xBAR>=ATOTAL then
- gg.toast("×× FAILURE ××") gg.alert("× AUTO UPDATE FAILURE ×","EXIT",nil, xTAGx)
- exit()
- return
- end
- if xBAR>=1 then gg.toast("× ERROR") gg.alert("× Auto Update Errors\nSome/All Hacks May Not Work","OK",nil, xTAGx)
- else gg.toast("√ SUCCESS") gg.alert("\n√ Auto Update Success\n\n'Hacking is the Game'","OK",nil, xTAGx)
- end
- --█████████████████████████████████████████████
- if xREV==1 then
- xRx=1 ORIG={} xREV={}
- for XxX=1,#(xAPEXx) do
- for i, v in ipairs(I) do
- ORIG[xRx]={}
- ORIG[xRx].address=xAPEXx[XxX]+tonumber(I[i])
- ORIG[xRx].flags=4
- xRx=xRx+1
- ORIG[xRx]={}
- ORIG[xRx].address=xAPEXx[XxX]+tonumber(I[i])+4
- ORIG[xRx].flags=4
- xRx=xRx+1
- end
- end
- ORIG=gg.getValues(ORIG)
- end
- --█████████████████████████████████████████████
- while true do
- if gg.isVisible() then
- gg.setVisible(false)
- menu()
- else
- if apex==1 then
- gg.setVisible(false)
- menu()
- end
- end
- end
Add Comment
Please, Sign In to add comment