wilmans2m

ShadowOfDeath

Mar 29th, 2024 (edited)
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 31.40 KB | Gaming | 0 0
  1. LUA = 'WILS2M'
  2. GLabel = 'Shadow Of Death'
  3. GProcess = 'com.Zonmob.ShadowofDeath.FightingGames'
  4. GVersion = '(vAU.02)'
  5. xbit = 64
  6. LibResult = 1
  7. xlib = 'libil2cpp.so'
  8. xREV = 1  I={}
  9. xCNE = 0
  10. xSSE = 0
  11. XbitX = 2
  12. --███████████████████████
  13. expire='free'
  14. game = gg.getTargetInfo()
  15. P=game.processName
  16. FP=game.name
  17. L=gg.getTargetInfo().label
  18. M=gg.getTargetInfo()["label"]
  19. V=game.versionName
  20. TP=gg.getTargetPackage()
  21. xTAGx="Have fun"
  22. xLINKx="https://t.me/HxE_Chat"
  23. xLINK1x="https://www.tiktok.com/@hxesq"
  24. printx="---------------------------------------------------------------"
  25. print(printx)
  26. print(xTAGx)
  27. print("Telegram = "..xLINKx)
  28. print("TikTok = "..xLINK1x)
  29. print(printx)  
  30. print("Script = "..GLabel.."  "..GVersion)
  31.  
  32. --███████████████████████
  33. apex=1
  34. gg.setVisible(false)
  35. v=gg.getTargetInfo()
  36.     if v==nil then
  37.         print("×× ERROR ××\n×× INVALID PROCESS SELECTED / OR NO ROOT ACCESS")
  38.         gg.setVisible(true) os.exit()
  39.         return
  40.     end
  41.    
  42. HxEmenu = ('            ⚡HxE Menu by wils2m⚡\
  43.           ❦ ════ •⊰❂ - ❂⊱• ════ ❦\
  44.                     ⛥🇮‌🇳‌🇫‌🇴‌⛥\
  45.  🎮🅖🅐🅜🅔🎮 : '..GLabel..'\
  46.  🎰🅥🅔🅡🅢🎰 : '..GVersion..'\
  47.    🎰🅐🅡🅜🎰   : '..xbit..'\
  48. \
  49. ⏳Exᴘɪʀᴇᴅ Date⏳ : '..expire..'\
  50. 🎁 Encryption 🎁 :  '..expire..'\
  51.            ❦ ════ •⊰❂ - ❂⊱• ════ ❦')
  52.            
  53. gg.alert(HxEmenu)
  54.  
  55. gg.alert("                           Patch Note\
  56.           ❦ ════ •⊰❂ - ❂⊱• ════ ❦\
  57. - HxE script menu\
  58. - Huge thanks to Apex[GG]\
  59. - Auto update implemented\
  60. - Remove no working hacks\
  61. - No Ads\
  62. - Unlimited Crystal, Soul, Skillpoints\
  63. - Instant Kill\
  64. - Free Equipment Hacks\
  65. - Apex[GG] options:\
  66. - No skill cooldown\
  67. - Freeplay\
  68. - Autoplay\
  69. - Disable ennemies\
  70.           ❦ ════ •⊰❂ - ❂⊱• ════ ❦\
  71. ")
  72. --███████████████████████
  73.     if L == GLabel then
  74.         gg.toast('➣ Game : ' .. L)
  75.         gg.clearResults()
  76.     else
  77.         gg.alert("Bad process selected")
  78.         gg.setVisible(true)
  79.         print('Bad process')
  80.     end
  81. ------------------------------------------------------------------------------ 
  82.     if v.processName~=GProcess then
  83.         print("This Script is For:\n    "..GLabel.."\n    "..GProcess.."\nYou Selected:\n    "..v.label.."\n    "..v.processName)
  84.         gg.setVisible (true) os.exit()
  85.         return
  86.     else
  87.         gg.toast('➣ Package : ' .. GProcess)
  88.     end
  89. ------------------------------------------------------------------------------
  90. if v.x64 then bitx=64 xBITx="[x64]" else bitx=32 xBITx="[x32]" end
  91. --███████████████████████
  92. --███████████████████████
  93. ------------------------------------------------------------------------------
  94. A={} for i =1,100 do A[i]={} end
  95. ------------------------------------------------------------------------------
  96. OFF="× " ON="√ "
  97.  
  98. CD=OFF CR=OFF SP=OFF EQ=OFF CH=OFF OH=OFF SO=OFF NA=OFF
  99. AC=OFF OW=OFF AP=OFF FR=OFF EA=OFF
  100. function menu()
  101. apex=0
  102. gg.toast(xTAGx)  
  103. mc=gg.multiChoice({
  104.     CD.."No Cooldown",
  105.     OH.."Instant Kill",
  106.     CR.."Unlimited Crystals",
  107.     SO.."Unlimited Souls",
  108.     SP.."Unlimited Skills Points",
  109.     EQ.."Free Equipment Hacks",
  110.     FR.."Free Play",
  111.     OW.."One Wave only",
  112.     AP.."Autoplay",
  113.     EA.."Disable ennemies",
  114.     NA.."No Ads",
  115.     "[ EXIT ]"},
  116.     {},xTAGx.."\n"..xLINKx.."\n"..GLabel.." "..GVersion.." "..xBITx)
  117.    
  118.     if mc==nil then cancel() return end
  119.     if mc[1] then cooldown() end
  120.     if mc[2] then instant() end
  121.     if mc[3] then gems() end
  122.     if mc[4] then souls() end
  123.     if mc[5] then skillsp() end
  124.     if mc[6] then equipment() end
  125.     if mc[7] then freeplay() end
  126.     if mc[8] then onew() end
  127.     if mc[9] then autoplay() end
  128.     if mc[10] then ennemyatk() end 
  129.     if mc[11] then noads() end
  130.    
  131. xhaX={
  132.     CD.."No Cooldown",
  133.     OH.."Instant Kill",
  134.     CR.."Unlimited Crystals",
  135.     SO.."Unlimited Souls",
  136.     SP.."Unlimited Skills Points",
  137.     EQ.."Free Equipment Hacks",
  138.     FR.."Free Play",
  139.     OW.."One Wave only",
  140.     AP.."Autoplay",
  141.     EA.."Disable ennemies",
  142.     NA.."No Ads",
  143.     }
  144. xhaX=table.concat(xhaX, "\n")
  145. xhaX=tostring(xhaX)
  146.  
  147.     if mc[12] then exit() return end
  148.  
  149. gg.toast("[√] Complete")
  150.  
  151. gg.alert("Hacks "..GLabel.." "..GVersion.." "..xBITx.."\n\n"..xhaX,"OK",nil,xTAGx)
  152.  
  153. end
  154.  
  155. --███████████████████████
  156.  
  157. --public class LoadingSceneView : MonoBehaviour
  158. for i = 1,2 do A[i].class="LoadingSceneView" end
  159. --public bool IsFinishAds()
  160. A[1].method="IsFinishAds"
  161. --public void EnableInterstitialAds()
  162. A[2].method="EnableInterstitialAds"
  163.  
  164. --//Namespace: SSAR.WorldMap.Model
  165. --public class ShowWorldmapParameter
  166. --public bool get_EnableInterstitialAds()
  167. --//Namespace: Assets.Scripts.Ssar.Main.Command
  168. --public class CheckAndLoadMainSceneCmd : Command
  169. --public int get_enableInterstitialAds()
  170.  
  171. --//Namespace: Assets.Scripts.Ssar.AdMob.Interstitial
  172. for i = 3,7 do A[i].name="Assets.Scripts.Ssar.AdMob.Interstitial" end
  173. --public class InterstitialAds
  174. for i = 3,5 do A[i].class="InterstitialAds" end
  175. --public bool IsAvailable()
  176. A[3].method="IsAvailable"
  177. --public void Show(Action<bool> callback)
  178. A[4].method="Show"
  179. --public void RequestNewAds()
  180. A[5].method="RequestNewAds"
  181. --public class IronSrcSource
  182. for i = 6,7 do A[i].class="IronSrcSource" end
  183. --public void Show(Action<bool> callback)
  184. A[6].method="Show"
  185. --public bool IsInterstitialReady()
  186. A[7].method="IsInterstitialReady"
  187.  
  188. function noads()
  189. for i = 1,7 do if A[i].error==1 then break error() return end end
  190.     for i = A[1].start, A[7].finish do o=I[i]  x=0
  191.         if NA==OFF then arm() else revert() end
  192.     end
  193.     if NA==OFF then NA=ON else NA=OFF end
  194. end    
  195.  
  196. --███████████████████████
  197.  
  198. -- // Namespace: CodeStage.AntiCheat.Examples
  199. -- public class ActTesterGui : MonoBehaviour // TypeDefIndex:
  200. -- private void OnValidate() { }
  201. A[8].name="CodeStage.AntiCheat.Examples"
  202. A[8].class="ActTesterGui"
  203. A[8].method="OnValidate"
  204. -- private void Start() { }
  205. A[9].name="CodeStage.AntiCheat.Examples"
  206. A[9].class="ActTesterGui"
  207. A[9].method="Start"
  208.  
  209. -- // Namespace: SSAR.BattleSystem.System.Arena
  210. -- public class CheatCheckingLogic // TypeDefIndex:
  211. -- public bool IsCheating()
  212.  
  213. function anticheat()
  214. for i = 8,9 do if A[i].error==1 then break error() return end end
  215.     for i = A[8].start, A[9].finish do o=I[i]  x=0
  216.         if AC==OFF then arm() end
  217.     end
  218. end
  219.  
  220. --███████████████████████
  221.  
  222. --// Namespace: Assets.Scripts.Core.Skills
  223. -- public class SkillCastingRequirement // TypeDefIndex:
  224. -- public void StartCooldown() { }
  225. A[10].name="Assets.Scripts.Core.Skills"
  226. A[10].class="SkillCastingRequirement"
  227. A[10].method="StartCooldown"
  228.  
  229. function cooldown()
  230. if A[10].error==1 then error() return end
  231.     for i = A[10].start, A[10].finish do o=I[i]
  232.         if CD==OFF then x=0 arm() else revert() end
  233.     end
  234.     if CD==OFF then CD=ON else CD=OFF end
  235. end
  236.  
  237. --█████████████████████
  238.  
  239. --public class MainCharacterData
  240. --public int GetCrystal()
  241. A[11].class="MainCharacterData"
  242. A[11].method="GetCrystal"
  243.         --30000 int
  244.         --x="h00A68ED2"
  245.         --1500000 int
  246.         --x="hE002A0D2"
  247.        
  248. function gems()
  249. if A[11].error==1 then error() return end
  250. x="hE002A0D2"
  251.     for i = A[11].start, A[11].finish do o=I[i]
  252.         if CR==OFF then arm() else revert() end
  253.     end
  254.     if CR==OFF then CR=ON else CR=OFF end
  255. end
  256.  
  257. --█████████████████████
  258.  
  259. --public class MainCharacterData
  260. --public int GetSoul()
  261. A[12].class="MainCharacterData"
  262. A[12].method="GetSoul"
  263.         --30000 int
  264.         --x="h00A68ED2"
  265.         --1500000 int
  266.         --x="hE002A0D2"    
  267.  
  268. function souls()
  269. if A[12].error==1 then error() return end
  270. x="hE002A0D2"
  271.     for i = A[12].start, A[12].finish do o=I[i]
  272.         if SO==OFF then arm() else revert() end
  273.     end
  274.     if SO==OFF then SO=ON else SO=OFF end
  275. end
  276.  
  277. --█████████████████████
  278.  
  279. --public class MainCharacterData
  280. --public int GetSkillPointPurchased()
  281. A[13].class="MainCharacterData"
  282. A[13].method="GetSkillPointPurchased"
  283.  
  284. function skillsp()
  285. if A[13].error==1 then error() return end
  286. x="h007D80D2"
  287.     for i = A[13].start, A[13].finish do o=I[i]
  288.         if SP==OFF then arm() else revert() end
  289.     end
  290.     if SP==OFF then SP=ON else SP=OFF end
  291. end
  292.  
  293. --█████████████████████
  294.  
  295. --//Namespace: Assets.Scripts.Model
  296. --public class EquipmentEnhanceLogic : IItemLogic
  297. --public override bool IsLocked(MainCharacterData mainCharacterData, IItem item)
  298. A[14].method="IsLocked"
  299. --public override int GetEnhanceEquipmentPrice(IItem item, int targetLevel)
  300. A[15].method="GetEnhanceEquipmentPrice"
  301. --public override int GetSellPrice(IItem item)
  302. --I[26]=0x1F7EFB0
  303. --public override int GetEquipmentAwakenSoulPricePerSlot(IItem item)
  304. A[16].method="GetEquipmentAwakenSoulPricePerSlot"
  305. --// Namespace: Ssar.Craft.Model
  306. -- public class CraftingMaterial : ICollectData // TypeDefIndex:
  307. -- public int get_quantity() { }
  308. A[17].name="Ssar.Craft.Model"
  309. A[17].class="CraftingMaterial"
  310. A[17].method="get_quantity"
  311.  
  312. function equipment()
  313.     for i = 14,17  do if A[i].error == 1 then error() break return end end
  314. x=0
  315.     for i = A[14].start, A[17].finish do o=I[i]
  316.         if EQ==OFF then arm() else revert() end
  317.     end
  318.         --if EQ==OFF then o=I[26] arm() else revert() end
  319.    
  320.     if EQ==OFF then EQ=ON else EQ=OFF end
  321. end
  322.  
  323. --█████████████████████--//Namespace: Assets.Scripts.Core.Skills
  324.  
  325. -- public int get_staminaRequire() { }
  326. --// Namespace: Scripts.Config
  327. --public class Dungeon : IDungeonInfo
  328. A[18].name="Scripts.Config"
  329. A[18].class="Dungeon"
  330. A[18].method="get_staminaRequire"
  331. --// Namespace: Assets.Scripts.Ssar.Dungeon.View
  332. --public class ArenaConstantConfig
  333. A[19].name="Assets.Scripts.Ssar.Dungeon.View"
  334. A[19].class="ArenaConstantConfig"
  335. A[19].method="get_staminaRequire"
  336. --// Namespace: Scripts.Config
  337. --public class BloodyTowerFloorInfo : IDungeonInfo
  338. A[20].name="Scripts.Config"
  339. A[20].class="BloodyTowerFloorInfo"
  340. A[20].method="get_staminaRequire"
  341.  
  342.     function freeplay()
  343.     for i = 18,20 do if A[i].error == 1 then error() break return end end
  344.     for i = A[18].start, A[20].finish do o=I[i]
  345.     if FR==OFF then x=0  arm() else revert() end
  346.     end
  347.  
  348.     if FR==OFF then FR=ON else FR=OFF end
  349.     end
  350.  
  351. --█████████████████████
  352.  
  353. --//Namespace: SSAR.BattleSystem.AI
  354. --public abstract class AbsAction
  355. --protected virtual bool IsEnable()
  356. A[21].name="SSAR.BattleSystem.AI"
  357. A[21].class="AbsAction"
  358. A[21].method="IsEnable"
  359. --//Namespace: Assets.Scripts.Ssar.Dungeon.Stages
  360. --public class DefaultStage
  361. --private bool EvaluateAllGoalsIsAchieved()
  362. A[22].name="Assets.Scripts.Ssar.Dungeon.Stages"
  363. A[22].class="DefaultStage"
  364. A[22].method="EvaluateAllGoalsIsAchieved"
  365. --//Namespace: Assets.Scripts.Core.UnlockableSystem
  366. --public class Entity
  367. --public bool IsUnlocked()
  368. A[23].name="Assets.Scripts.Core.UnlockableSystem"
  369. A[23].class="Entity"
  370. A[23].method="IsUnlocked"
  371. --//Namespace: Assets.Scripts.Core.Skills
  372. --public abstract class Character
  373. --public void ConsumeAllSkillCharges()
  374. A[24].name="Assets.Scripts.Core.Skills"
  375. A[24].class="Character"
  376. A[24].method="ConsumeAllSkillCharges"
  377. --public class DungeonDataManager
  378. --public bool IsEnableSlowMotionWhenWin()
  379. A[25].class="DungeonDataManager"
  380. A[25].method="IsEnableSlowMotionWhenWin"
  381.  
  382. function instant()
  383.     for i = 21,25  do if A[i].error == 1 then error() break return end end
  384.     for i = A[21].start, A[23].finish do o=I[i]
  385.         if OH==OFF then x=1 arm() else revert() end
  386.     end
  387.     for i = A[24].start, A[25].finish do o=I[i]
  388.         if OH==OFF then x=0 arm() else revert() end
  389.     end
  390.    
  391.     if OH==OFF then OH=ON else OH=OFF end
  392. end
  393.  
  394. --███████████████████████
  395.  
  396. --// Namespace: Assets.Scripts.Ssar.Dungeon
  397. -- public class Dungeon // TypeDefIndex:
  398. -- private bool IsLastStage() { }
  399. A[26].name="Assets.Scripts.Ssar.Dungeon"
  400. A[26].class="Dungeon"
  401. A[26].method="IsLastStage"
  402.  
  403. function onew()
  404. if A[26].error==1 then error() return end
  405.     for i = A[26].start, A[26].finish do o=I[i]
  406.         if OW==OFF then x=1 arm() else revert() end
  407.     end
  408.     if OW==OFF then OW=ON else OW=OFF end
  409. end
  410.  
  411. --███████████████████████
  412.  
  413. -- // Namespace: Assets.Scripts.Ssar.BattleSystem.EntityTemplate
  414. -- public class ArenaMainTemplate : MainCharacterTemplate // TypeDefIndex:
  415. -- protected override bool EnableAI() { }
  416. A[27].name="Assets.Scripts.Ssar.BattleSystem.EntityTemplate"
  417. A[27].class="ArenaMainTemplate"
  418. A[27].method="EnableAI"
  419. -- // Namespace: SSAR.BattleSystem.EntityTemplate
  420. -- public class MainCharacterTemplate : BaseEntityTemplate // TypeDefIndex:
  421. -- protected virtual bool EnableAI() { }
  422. A[28].name="SSAR.BattleSystem.EntityTemplate"
  423. A[28].class="MainCharacterTemplate"
  424. A[28].method="EnableAI"
  425.  
  426. function autoplay()
  427.     for i = 27,28  do if A[i].error == 1 then error() break return end end
  428.     for i = A[27].start, A[28].finish do o=I[i]
  429.         if AP==OFF then x=1 arm() else revert() end
  430.     end
  431.    
  432.     if AP==OFF then AP=ON else AP=OFF end
  433. end
  434.  
  435. --███████████████████████
  436.  
  437. --// Namespace: SSAR.BattleSystem.EntityTemplate
  438. -- public abstract class BaseMonsterTemplate : BaseEntityTemplate //
  439. -- private NewMonsterAIComponent GetNewMonsterAiComponent(Entity entity, BaseHeroTemplateArgs baseHeroTemplateArgs, string mobType) {
  440. A[29].name="SSAR.BattleSystem.EntityTemplate"
  441. A[29].class="BaseMonsterTemplate"
  442. A[29].method="GetNewMonsterAiComponent"
  443.  
  444. function ennemyatk()
  445. if A[29].error==1 then error() return end
  446.     for i = A[29].start, A[29].finish do o=I[i]
  447.         if EA==OFF then x=0 arm() else revert() end
  448.     end
  449.     if EA==OFF then EA=ON else EA=OFF end
  450. end
  451.  
  452. --███████████████████████
  453.  
  454. --public void ConsumeCrystal(int crystal, string source, Reason reason)
  455. --public void ConsumeSoul(int soul, string source, Reason rewardReason)
  456.  
  457. --███████████████████████
  458. --███████████████████████
  459.  
  460. function cancel()
  461. gg.toast("Cancelled")
  462. end
  463. ------------------------------------------------------------------------------  
  464. function wait()
  465. gg.toast("Please Wait..")
  466. end
  467. ------------------------------------------------------------------------------  
  468. function error()
  469. gg.toast("× ERROR ×")
  470. gg.sleep(1000)
  471. end
  472. ------------------------------------------------------------------------------  
  473. function exit()
  474. print("--------------------------------------------------------------------")
  475. print("More links - WILS2M")
  476. print("https://www.tiktok.com/@helledengaming")
  477. print("https://odysee.com/@HellEtEden-gaming:9")
  478. print("https://vimeo.com/showcase/10427325")
  479. gg.processResume()
  480. gg.getListItems()
  481. gg.clearList()
  482. gg.getResults(gg.getResultsCount())
  483. gg.clearResults()
  484. gg.toast("[ EXIT ]")  
  485.     if xhaX~=nil then
  486.         print(printx)
  487.         print(xhaX)
  488.         print(printx)  
  489.     end
  490. gg.setVisible(true)
  491. os.exit()
  492. return
  493. end
  494.  
  495. --███████████████████████
  496. isrdy=gg.alert("Shadow Of Death\n\nThis Script is Auto-Updating. \nInitial Calibration will take A while.\n\nYOU MUST CURRENTLY BE IN ANY GAMEPLAY (MISSION/BATTLE/ETC). Otherwise, Calibration will Fail and Hacks Not Work\n\n(All hacks can be activated anywhere)","EXIT","START",xTAGx)  
  497. if isrdy~=2 then gg.setVisible(true) os.exit() return end
  498. --███████████████████████
  499.     if LibResult==1 then
  500.     xAPEXx={} xXx=0
  501.     xLibRes=0
  502.     libx=gg.getRangesList()
  503.         if #(libx)==0 then
  504.         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' ")
  505.         gg.setVisible(true)
  506.         os.exit()
  507.         end
  508.     libx=gg.getRangesList(xlib)
  509.         if #(libx)==0 then  
  510.         print("×× No "..xlib.." Found")
  511.         xLibRes=2
  512.         goto APEX_SPLIT
  513.         end
  514.     xlibn=0
  515.         for i, v in ipairs(libx) do
  516.             if libx[i].state=="Xa" then
  517.             xXx=xXx+1
  518.             xAPEXx[xXx]=libx[i].start
  519.             xLibRes=1
  520.             end
  521.         end
  522.         if xLibRes==0 then
  523.         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' ")
  524.         gg.setVisible(true)
  525.         os.exit()    
  526.         end    
  527.                  
  528.         ::APEX_SPLIT::    
  529.         if xLibRes==2 then
  530.         splitapk=0
  531.         libx=gg.getRangesList()
  532.             for i, v in ipairs(libx) do
  533.                 if libx[i].state=="Xa" and string.match(libx[i].name,"split_config") then
  534.                 splitapk=1
  535.                 end
  536.             end
  537.             if splitapk==1 then
  538.             xsapk={} xsapkx=0
  539.                 for i, v in ipairs(libx) do
  540.                     if libx[i].state=="Xa" then
  541.                     xsapkx=xsapkx+1
  542.                     xsapk[xsapkx]=libx[i]["end"]-libx[i].start
  543.                     end
  544.                 end
  545.                 if xsapkx~=0 then                
  546.                 APEXQ=math.max(table.unpack(xsapk))
  547.                     for i, v in ipairs(libx) do              
  548.                         if libx[i].state=="Xa" and libx[i]["end"]-libx[i].start==APEXQ then              
  549.                         xXx=xXx+1            
  550.                        xAPEXx[xXx]=libx[i].start
  551.                         print("√√ Split Apk Lib Found\n√√ "..libx[i].name)
  552.                         xLibRes=1                      
  553.                         end
  554.                     end
  555.                 end
  556.             end
  557.          
  558.              if splitapk==0 and xLibRes~=1 then
  559.              print("×× No split_config Lib Found")  
  560.              xc=1 xt={}
  561.              libx=gg.getRangesList()
  562.                  for i, v in ipairs(libx) do
  563.                      if libx[i].state=="Xa" then
  564.                      xt[xc]=tonumber(libx[i]["end"]-libx[i].start)
  565.                      xc=xc+1
  566.                      end
  567.                  end
  568.              APEXQ=math.max(table.unpack(xt))
  569.                  for i, v in ipairs(libx) do              
  570.                      if libx[i].state=="Xa" and libx[i]["end"]-libx[i].start==APEXQ then        
  571.                      xXx=xXx+1      
  572.                      xAPEXx[xXx]=libx[i].start
  573.                      print("√√ math.max Xa Lib Found\n√√ "..libx[i].name)
  574.                      xLibRes=1  
  575.                      end
  576.                  end
  577.             end                        
  578.  
  579.             if xLibRes~=1 then
  580.             print("×× Correct Lib Not Found ××\n×× Direct/Split Config/Xa Max ××")
  581.             gg.setVisible(true)
  582.             os.exit()
  583.              return
  584.             end
  585.         end
  586.     end
  587. --███████████████████████
  588. function arm()
  589. o=tonumber(o)
  590.     for XxX=1,#(xAPEXx) do
  591.     xdump=nil xdump={}
  592.     xdump[1]={} xdump[2]={}
  593.     xdump[1].address=xAPEXx[XxX] + o
  594.     xdump[1].flags=4
  595.         if x==0 then xdump[1].value=xfalse end
  596.         if x==1 then xdump[1].value=xtrue end
  597.         if x~=0 and x~=1 then xdump[1].value=x end
  598.     xdump[2].address=xAPEXx[XxX]+(o+4)
  599.     xdump[2].flags=4
  600.     xdump[2].value=xEND
  601.     gg.setValues(xdump)
  602.     end
  603. end
  604. ------------------------------------------------------------------------------  
  605. function revert()
  606.     for XxX=1,#(xAPEXx) do
  607.     REVERT=nil REVERT={} xRx=nil xRx=1
  608.         for i, v in ipairs(ORIG) do
  609.             if tonumber(xAPEXx[XxX]+o)==ORIG[i].address then
  610.             REVERT[xRx]={}
  611.             REVERT[xRx].address=xAPEXx[XxX]+o
  612.             REVERT[xRx].flags=4
  613.             REVERT[xRx].value=ORIG[i].value
  614.             xRx=xRx+1
  615.             REVERT[xRx]={}
  616.             REVERT[xRx].address=xAPEXx[XxX]+o+4
  617.             REVERT[xRx].flags=4
  618.             REVERT[xRx].value=ORIG[i+1].value
  619.             gg.setValues(REVERT)
  620.             break
  621.             end
  622.         xRx=xRx+1
  623.         end
  624.     end
  625. end
  626. --███████████████████████
  627. if v.x64 then
  628. xtrue="h200080D2" -- MOV X0, #0x1
  629. xfalse="h000080D2" -- MOV X0, #0x0
  630. xEND="hC0035FD6" -- RET
  631. else
  632. xtrue="h0100A0E3" -- MOVW R0, #1
  633. xfalse="h0000A0E3" -- MOVW R0, #0
  634. xEND="h1EFF2FE1" -- BX LR
  635. end
  636. --███████████████████████
  637. -- APEX[GG]v2
  638. --███████████████████████
  639. function clear()
  640. gg.getResults(gg.getResultsCount())
  641. gg.clearResults()
  642. end
  643. ------------------------------------------------------------------------------  
  644. function get()
  645. gg.getResults(gg.getResultsCount())
  646. end
  647. ------------------------------------------------------------------------------  
  648. function search()
  649. gg.getResults(gg.getResultsCount())
  650. gg.clearResults()
  651. gg.searchNumber(x,t)
  652. end
  653. ------------------------------------------------------------------------------  
  654. function refine()
  655. gg.refineNumber(x,t)
  656. end
  657. ------------------------------------------------------------------------------  
  658. function refinenot()
  659. gg.refineNumber(x,t,false,gg.SIGN_NOT_EQUAL)
  660. end
  661. ------------------------------------------------------------------------------  
  662. function edit()
  663. gg.getResults(gg.getResultsCount())
  664. gg.editAll(x,t)
  665. end
  666. ------------------------------------------------------------------------------  
  667. function check()
  668. E=nil E=gg.getResultsCount()
  669. end
  670. ------------------------------------------------------------------------------  
  671. function offset()
  672. o=tonumber(o) addoff=nil
  673. addoff=gg.getResults(gg.getResultsCount())
  674.     for i, v in ipairs(addoff) do
  675.         addoff[i].address=addoff[i].address+o
  676.         addoff[i].flags=t
  677.     end
  678. gg.loadResults(addoff)
  679. end
  680.  
  681. --███████████████████████
  682. function cancel()
  683. gg.toast("CANCELLED")
  684. end
  685. ------------------------------------------------------------------------------  
  686. function wait()
  687. gg.toast("Please Wait..")
  688. end
  689. ------------------------------------------------------------------------------  
  690. function error()
  691. gg.toast("× ERROR ×")
  692. gg.sleep(1000)
  693. end
  694. ------------------------------------------------------------------------------  
  695. function exit()
  696. print("--------------------------------------------------------------------")
  697. print("More links - WILS2M")
  698. print("https://www.tiktok.com/@helledengaming")
  699. print("https://odysee.com/@HellEtEden-gaming:9")
  700. print("https://vimeo.com/showcase/10427325")
  701. gg.processResume()
  702. gg.getListItems()
  703. gg.clearList()
  704. gg.getResults(gg.getResultsCount())
  705. gg.clearResults()
  706. gg.toast("[ EXIT ]")  
  707.     if xhaX~=nil then
  708.         print(printx)
  709.         print(xhaX)
  710.         print(printx)  
  711.     end
  712. gg.setVisible(true)
  713. os.exit()
  714. return
  715. end  
  716. --███████████████████████
  717.  
  718. --███████████████████████
  719. if v.x64 then off1=-16 typ=32 else off1=-8 typ=4 end
  720. gg.setRanges(gg.REGION_OTHER | gg.REGION_C_ALLOC)
  721. gmdx=gg.getRangesList("global-metadata.dat")
  722.     if #(gmdx)~=0 then        
  723.     gmds=gg.getRangesList("global-metadata.dat")[1].start
  724.     gmde=gg.getRangesList("global-metadata.dat")[1]["end"]
  725.     else gmds=nil gmde=nil
  726.     end
  727. ATOTAL=0
  728. for i = 1,100 do
  729.     if A[i].method==nil then break end
  730.     ATOTAL=ATOTAL+1
  731. end
  732.  
  733. ASTART=1 AEND=0 ATABT=ATOTAL+1 ATAB=1
  734. S=0
  735.     while ATAB<=ATOTAL do
  736.     ::AUTOSTART::
  737.     if gg.isVisible() then gg.setVisible(false) end
  738.         if ATAB>ATOTAL then break goto FINISHED end
  739.     gg.toast("Please Wait.. [ "..ATABT-ATAB.." ]")
  740.     A[ATAB].error=1
  741.     ANAME=nil ANAME={}
  742.     if A[ATAB].name~=nil then
  743.         for i = 1,#(tostring(A[ATAB].name)) do
  744.             ANAME[i]=string.byte(A[ATAB].name,i)
  745.         end
  746.     else
  747.         A[ATAB].name=0
  748.     end
  749.     ACLASS=nil ACLASS={}
  750.     if A[ATAB].class~=nil then
  751.         for i = 1,#(tostring(A[ATAB].class)) do
  752.             ACLASS[i]=string.byte(A[ATAB].class,i)
  753.         end
  754.     else
  755.         A[ATAB].class=0
  756.     end
  757.    
  758.                 ASTART=AEND+1
  759.                 clear() t=1
  760.                 gg.searchNumber(":"..tostring(A[ATAB].method),1,false,gg.SIGN_EQUAL,gmds, gmde)
  761.                 xm=gg.getResults(2) gg.getResults(gg.getResultsCount())
  762.                 check()
  763.                     if E==0 then ATAB=ATAB+1
  764.                         if ATAB>ATOTAL then break return end
  765.                     goto AUTOSTART return
  766.                     end
  767.                 x=xm[1].value..";"..xm[2].value.."::2" refine()
  768.                 x=xm[1].value refine()
  769.                 o=-1 offset() x=0 refine() oo=#(tostring(A[ATAB].method))
  770.                 o=oo+1 offset() refine() o=-oo offset()
  771.                 check()
  772.                     if E==0 then ATAB=ATAB+1
  773.                         if ATAB>ATOTAL then break return end
  774.                     goto AUTOSTART return
  775.                     end
  776.                 gg.searchPointer(0) xcount=gg.getResultsCount()
  777.                 xpoint=gg.getResults(xcount,nil, nil, nil, nil, nil, nil, nil,gg.POINTER_READ_ONLY)
  778.                     if #(xpoint)==0 then ATAB=ATAB+1
  779.                         if ATAB>ATOTAL then break return end
  780.                     goto AUTOSTART return
  781.                     end
  782.                 clear()
  783.                     for xp=1,#(xpoint) do
  784.                     xpoint[xp].address=xpoint[xp].address+off1
  785.                     xpoint[xp].flags=typ
  786.                     end
  787.                 gg.loadResults(xpoint)
  788.                 xoff=gg.getResults(#(xpoint),nil, nil, nil, nil, nil, nil, nil, gg.POINTER_EXECUTABLE)
  789.                     if #(xoff)==0 then ATAB=ATAB+1
  790.                         if ATAB>ATOTAL then break return end
  791.                     goto AUTOSTART return
  792.                     end
  793.                     xfin=1
  794.                     while xfin<=#(xoff) do
  795.                     ::XFIN::
  796.                         if xfin>#(xoff) then ATAB=ATAB+1
  797.                             if ATAB>ATOTAL then break return end
  798.                         goto AUTOSTART return
  799.                         end
  800.                         if gg.getTargetInfo().x64 then
  801.                             xadd=tonumber(xoff[xfin].value)  
  802.                         else
  803.                             xadd=string.format("%X",tonumber(xoff[xfin].value))
  804.                             xadd=string.sub(tostring(xadd), -8,-1)
  805.                             xadd=tonumber("0x"..xadd)
  806.                         end    
  807.                     gval1=nil gval1={} gval1[1]={}
  808.                         if gg.getTargetInfo().x64 then gvo=24 gvo1=16 gvo2=24 else gvo=12 gvo1=8 gvo2=12 end
  809.                     gval1[1].address=xoff[xfin].address+gvo
  810.                     gval1[1].flags=typ
  811.                     gval1=gg.getValues(gval1)
  812.                         if gg.getTargetInfo().x64 then
  813.                             gval=tonumber(gval1[1].value)  
  814.                         else
  815.                             gval=string.format("%X",tonumber(gval1[1].value))
  816.                             gval=string.sub(tostring(gval), -8,-1)
  817.                             gval=tonumber("0x"..gval)
  818.                         end    
  819.                     gval2=nil gval2={} gval2[1]={} gval2[2]={}
  820.                     gval2[1].address=gval+gvo1
  821.                     gval2[1].flags=typ
  822.                     gval2[2].address=gval+gvo2
  823.                     gval2[2].flags=typ
  824.                     gval2=gg.getValues(gval2)
  825.                         if gg.getTargetInfo().x64 then
  826.                             gval21=tonumber(gval2[1].value)  
  827.                             gval22=tonumber(gval2[2].value)
  828.                         else
  829.                             gval21=string.format("%X",tonumber(gval2[1].value))
  830.                             gval21=string.sub(tostring(gval21), -8,-1)
  831.                             gval21=tonumber("0x"..gval21)
  832.                             gval22=string.format("%X",tonumber(gval2[2].value))
  833.                             gval22=string.sub(tostring(gval22), -8,-1)
  834.                             gval22=tonumber("0x"..gval22)
  835.                         end    
  836.                          xrefine=0
  837.                          if A[ATAB].class~=0 then
  838.                             for xyz=1,#(ACLASS) do
  839.                                 gvalc={} gvalc[1]={}
  840.                                 gvalc[1].address=gval21+(xyz-1)
  841.                                 gvalc[1].flags=1                        
  842.                                 gvalc=gg.getValues(gvalc)
  843.                                 if gvalc[1].value~=ACLASS[xyz] then xrefine=1 break xfin=xfin+1 goto XFIN end
  844.                             end
  845.                         end
  846.                        
  847.                         if A[ATAB].name~=0 then
  848.                             for xyz=1,#(ANAME) do
  849.                                 gvalc={} gvalc[1]={}
  850.                                 gvalc[1].address=gval22+(xyz-1)
  851.                                 gvalc[1].flags=1                        
  852.                                 gvalc=gg.getValues(gvalc)
  853.                                     if gvalc[1].value~=ANAME[xyz] then xrefine=1 break xfin=xfin+1 goto XFIN end                                
  854.                             end
  855.                         end
  856.                          
  857.                          if xrefine==0 then
  858.                         A[ATAB].start=ASTART AEND=AEND+1
  859.                         A[ATAB].finish=AEND
  860.                         A[ATAB].error=0
  861.                         clear() I[AEND]=xadd-xAPEXx[xXx]
  862.                         end
  863.                     xfin=xfin+1            
  864.                     end -- xfin
  865.     ATAB=ATAB+1
  866.     end -- ATAB
  867.    
  868. ---------------------------------------------------
  869.  
  870. ::FINISHED::
  871.  xBAR=0
  872.     for i = 1, ATOTAL do
  873.         if A[i].error~=0 then xBAR=xBAR+1 end
  874.     end
  875.     if xBAR>=ATOTAL  then
  876.         gg.toast("×× FAILURE ××") gg.alert("× AUTO UPDATE FAILURE ×","EXIT",nil, xTAGx)  
  877.         exit()
  878.         return
  879.     end
  880.     if xBAR>=1 then gg.toast("× ERROR") gg.alert("× Auto Update Errors\nSome/All Hacks May Not Work","OK",nil, xTAGx)
  881.     else gg.toast("√ SUCCESS") gg.alert("\n√ Auto Update Success\n\n'Have Fun","OK",nil, xTAGx)
  882.     end
  883. --███████████████████████
  884.  
  885. if xREV==1 then
  886. xRx=1 ORIG={} xREV={}
  887.     for XxX=1,#(xAPEXx) do  
  888.         for i, v in ipairs(I) do
  889.         ORIG[xRx]={}
  890.         ORIG[xRx].address=xAPEXx[XxX]+tonumber(I[i])
  891.         ORIG[xRx].flags=4
  892.         xRx=xRx+1
  893.         ORIG[xRx]={}
  894.         ORIG[xRx].address=xAPEXx[XxX]+tonumber(I[i])+4
  895.         ORIG[xRx].flags=4
  896.         xRx=xRx+1
  897.         end    
  898.     end
  899. ORIG=gg.getValues(ORIG)
  900. end
  901.  
  902. --███████████████████████
  903. while true do
  904.     if gg.isVisible() then
  905.         gg.setVisible(false)
  906.         menu()
  907.     else
  908.         if apex==1 then
  909.             gg.setVisible(false)
  910.             menu()
  911.         end
  912.     end
  913. end  
  914.  
Add Comment
Please, Sign In to add comment