wilmans2m

GrannyLegends

Mar 30th, 2024
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 13.54 KB | Gaming | 0 0
  1. LUA = 'WILS2M'
  2. GLabel = 'Granny Legend'
  3. GProcess = 'com.physics.sim.game.box'
  4. GVersion = '1.2.3'
  5. xbit = 64
  6. --xlib = 'libil2cpp.so[1].start'
  7. LibResult = 1
  8. xlib = 'libil2cpp.so'
  9. xREV = 1  I={}
  10. xCNE = 1
  11. xSSE = 0
  12. XbitX = 1
  13. xREQ = 1
  14. expire='free'
  15. game = gg.getTargetInfo()
  16. P=game.processName
  17. FP=game.name
  18. L=gg.getTargetInfo().label
  19. M=gg.getTargetInfo()["label"]
  20. V=game.versionName
  21. TP=gg.getTargetPackage()
  22.  
  23. --███████████████████████
  24. xTAGx="WILS2M"
  25. xLINKx="https://t.me/HxE_Chat"
  26. xLINK1x="https://www.tiktok.com/@hxesq"
  27. APEXSN=gg.getFile():match('[^/]+$')
  28. printx="---------------------------------------------------------------"
  29. print(printx)
  30. print(xTAGx)
  31. print("Telegram = "..xLINKx)
  32. print("TikTok = "..xLINK1x)
  33. print(printx)  
  34. print("Script = "..GLabel.."  "..GVersion)
  35.  
  36. --███████████████████████
  37. apex=1
  38. gg.setVisible(false)
  39. v=gg.getTargetInfo()
  40.     if v==nil then
  41.         print("×× ERROR ××\n×× INVALID PROCESS SELECTED / OR NO ROOT ACCESS")
  42.         gg.setVisible(true) os.exit()
  43.         return
  44.     end
  45. ------------------------------------------------------------------------------
  46.     if L == GLabel then
  47.         gg.toast('➣ Game : ' .. L)
  48.         gg.clearResults()
  49.     else
  50.         gg.alert("Bad process selected")
  51.         gg.setVisible(true)
  52.         print('Bad process')
  53.     end
  54. ------------------------------------------------------------------------------
  55.     if v.processName~=GProcess then
  56.         print("This Script is For:\n    "..GLabel.."\n    "..GProcess.."\nYou Selected:\n    "..v.label.."\n    "..v.processName)
  57.         gg.setVisible (true) os.exit()
  58.         return
  59.     else
  60.         gg.toast('➣ Package : ' .. GProcess)
  61.     end
  62. ------------------------------------------------------------------------------
  63.     if v.x64 then bitx=64 xBITx="[x64]" else bitx=32 xBITx="[x32]" end
  64.         print(xBITx)  
  65. ------------------------------------------------------------------------------
  66.     if xREQ==1 then
  67.         if bitx~=xbit then
  68.             print("This Script is For "..xbit.."bit Process\nYour Process is "..bitx.."bit")
  69.             gg.setVisible(true) os.exit()
  70.             return
  71.         end
  72.     end
  73. ------------------------------------------------------------------------------
  74.     if GVersion~=v.versionName then
  75.         print("This Script is for Game Version:\n    "..GVersion.."\nYour Game Version is:\n    "..v.versionName)
  76.         gg.setVisible(true) os.exit()
  77.         return
  78.     else
  79.         gg.toast('➣ Version :  '.. GVersion )
  80.     end
  81. ------------------------------------------------------------------------------
  82.  
  83.     -- LibSearch
  84.  
  85.     if LibResult==1 then
  86.         xLibRes=0
  87.         libx=gg.getRangesList()
  88.             if #(libx)==0 then
  89.                 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' ")
  90.                 gg.setVisible(true)
  91.                 os.exit()
  92.             end
  93.         libx=gg.getRangesList(xlib)
  94.             if #(libx)==0 then  
  95.                 print("×× No "..xlib.." Found")
  96.                 xLibRes=2
  97.                 goto APEX_SPLIT
  98.             end
  99.             xlibn=0
  100.             for i, v in ipairs(libx) do
  101.             xlibn=xlibn+1
  102.                 if libx[i].state=="Xa" then
  103.                     xAPEXx=gg.getRangesList(xlib)[xlibn].start
  104.                     xLibRes=1
  105.                     break
  106.                 end
  107.             end
  108.             if xLibRes==0 then
  109.                 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' ")
  110.                 gg.setVisible(true)
  111.                 os.exit()    
  112.             end    
  113.                  
  114.         ::APEX_SPLIT::    
  115.         if xLibRes==2 then
  116.            splitapk=0
  117.             libx=gg.getRangesList()
  118.             for i, v in ipairs(libx) do
  119.                 if libx[i].state=="Xa" and string.match(libx[i].name,"split_config") then
  120.                     splitapk=1
  121.                 end
  122.             end
  123.             if splitapk==1 then
  124.                 xsapk={} xsapkx=0
  125.                 for i, v in ipairs(libx) do
  126.                     if libx[i].state=="Xa" then
  127.                         xsapkx=xsapkx+1
  128.                         xsapk[xsapkx]=libx[i]["end"]-libx[i].start
  129.                     end
  130.                 end
  131.                 if xsapkx~=0 then
  132.                     APEXQ=math.max(table.unpack(xsapk))
  133.                     for i, v in ipairs(libx) do              
  134.                         if libx[i].state=="Xa" and libx[i]["end"]-libx[i].start==APEXQ then              
  135.                            xAPEXx=libx[i].start
  136.                            print("√√ Split Apk Lib Found\n√√ "..libx[i].name)
  137.                            xLibRes=1                            
  138.                            break
  139.                         end
  140.                     end
  141.                 end
  142.             end
  143.          
  144.             if xLibRes~=1 then
  145.                 print("×× Correct Lib Not Found ××\n×× Direct or Slit Config ××")
  146.                 gg.setVisible(true)
  147.                 os.exit()
  148.                 return
  149.             end
  150.         end                  
  151.     end
  152.    
  153.     -- LibSearch
  154.  
  155. gg.setVisible(false)
  156.  
  157. HxEmenu = ('            ⚡HxE Menu by wils2m⚡\
  158.           ❦ ════ •⊰❂ - ❂⊱• ════ ❦\
  159.                     ⛥🇮‌🇳‌🇫‌🇴‌⛥\
  160.  🎮🅖🅐🅜🅔🎮 : '..GLabel..'\
  161.  🎰🅥🅔🅡🅢🎰 : '..GVersion..'\
  162.    🎰🅐🅡🅜🎰   : '..xbit..'\
  163. \
  164. ⏳Exᴘɪʀᴇᴅ Date⏳ : '..expire..'\
  165. 🎁 Encryption 🎁 :  '..expire..'\
  166.            ❦ ════ •⊰❂ - ❂⊱• ════ ❦')
  167.            
  168. gg.alert(HxEmenu)
  169.  
  170. gg.alert("Warning: APKpure version")
  171.  
  172. gg.alert("                           Patch Note\
  173.           ❦ ════ •⊰❂ - ❂⊱• ════ ❦\
  174. - HxE script menu\
  175. - New script interface (Apex[GG])\
  176. - Updated to 1.2.3\
  177. - Dumb ennemy\
  178. - One hit\
  179. - Coin multiplier\
  180. - High Gold (50k)\
  181. - Damage increase\
  182. - Cleanup script to speed it\
  183.            ❦ ════ •⊰❂ - ❂⊱• ════ ❦\
  184. ")
  185.  
  186. --███████████████████████
  187. function arm()
  188. o=tonumber(o)
  189. xdump=nil xdump={}
  190. xdump[1]={} xdump[2]={}
  191. xdump[1].address=xAPEXx + o
  192. xdump[1].flags=4
  193.     if x==0 then xdump[1].value=xfalse end
  194.     if x==1 then xdump[1].value=xtrue end
  195.     if x~=0 and x~=1 then xdump[1].value=x end
  196. xdump[2].address=xAPEXx+(o+4)
  197. xdump[2].flags=4
  198. xdump[2].value=xEND
  199. gg.setValues(xdump)
  200. end
  201. ------------------------------------------------------------------------------  
  202. function xrev()
  203. if xREV==1 then
  204. xRx=1 ORIG={} xREV={}
  205.     for i, v in ipairs(I) do
  206.         ORIG[xRx]={}
  207.         ORIG[xRx].address=xAPEXx+tonumber(I[i])
  208.         ORIG[xRx].flags=4
  209.         xRx=xRx+1
  210.         ORIG[xRx]={}
  211.         ORIG[xRx].address=xAPEXx+tonumber(I[i])+4
  212.         ORIG[xRx].flags=4
  213.         xRx=xRx+1
  214.     end
  215. ORIG=gg.getValues(ORIG)
  216. end
  217. end
  218. ------------------------------------------------------------------------------  
  219. function revert()
  220. REVERT=nil REVERT={} xRx=nil xRx=1
  221.     for i, v in ipairs(ORIG) do
  222.         if tonumber(xAPEXx+o)==ORIG[i].address then
  223.             REVERT[xRx]={}
  224.             REVERT[xRx].address=xAPEXx+o
  225.             REVERT[xRx].flags=4
  226.             REVERT[xRx].value=ORIG[i].value
  227.             xRx=xRx+1
  228.             REVERT[xRx]={}
  229.             REVERT[xRx].address=xAPEXx+o+4
  230.             REVERT[xRx].flags=4
  231.             REVERT[xRx].value=ORIG[i+1].value
  232.             gg.setValues(REVERT)
  233.             break
  234.         end
  235.     xRx=xRx+1
  236.     end
  237. end
  238. --███████████████████████
  239. if v.x64 then
  240. xtrue="h200080D2" -- MOV X0, #0x1
  241. xfalse="h000080D2" -- MOV X0, #0x0
  242. xEND="hC0035FD6" -- RET
  243. else
  244. xtrue="h0100A0E3" -- MOVW R0, #1
  245. xfalse="h0000A0E3" -- MOVW R0, #0
  246. xEND="h1EFF2FE1" -- BX LR
  247. end
  248. ------------------------------------------------------------------------------  
  249.  
  250.  
  251. --███████████████████████
  252. --hex patch offset function debut
  253. function revert1()
  254. LibStart=xAPEXx
  255. o=tonumber(o)
  256. HxEr=nil
  257. HxEr={}
  258. HxEr[1]={}
  259. HxEr[1].address=LibStart + o
  260. HxEr[1].flags=4
  261. HxEr[1].value=x1
  262. HxEr[2]={}
  263. HxEr[2].address=LibStart + (o+4)
  264. HxEr[2].flags=4
  265. HxEr[2].value=x2
  266. gg.setValues(HxEr)
  267. end
  268. --hex patch offset function fin
  269. --███████████████████████
  270. if game.x64 then
  271. xtrue="h200080D2" -- MOV X0, #0x1
  272. xfalse="h000080D2" -- MOV X0, #0x0
  273. xEND="hC0035FD6" -- RET
  274. else
  275. xtrue="h0100A0E3" -- MOVW R0, #1
  276. xfalse="h0000A0E3" -- MOVW R0, #0
  277. xEND="h1EFF2FE1" -- BX LR
  278. end      
  279. --███████████████████████
  280. function sortie()
  281. print("--------------------------------------------------------------------")
  282. print("More links - WILS2M")
  283. print("https://helleteden.go.yj.fr/accueil/fr/")
  284. print("https://discord.gg/GB3K2CRk")
  285. print("https://www.tiktok.com/@helledengaming")
  286. print("https://odysee.com/@HellEtEden-gaming:9")
  287. print("https://vimeo.com/showcase/10427325")
  288. gg.processResume()
  289. gg.getListItems()
  290. gg.clearList()
  291. gg.getResults(gg.getResultsCount())
  292. gg.clearResults()
  293. gg.toast("[ EXIT ]")  
  294.     if xhaX~=nil then
  295.         print(printx)
  296.         print(xhaX)
  297.         print(printx)  
  298.     end
  299. gg.setVisible(true)
  300. os.exit()
  301. return
  302. end
  303. --███████████████████████
  304.  
  305. gg.setVisible(true)
  306. HxElib = -1
  307.  
  308. --███████████████████████
  309. --███████████████████████
  310. --███████████████████████
  311.  
  312. ------------------------------------------------------------------------------  
  313. gg.setRanges(gg.REGION_ANONYMOUS)
  314. ------------------------------------------------------------------------------
  315. ON="🔵  " OFF="🔴  "
  316. OH=OFF DE=OFF GX=OFF GD=OFF DI=OFF
  317.  
  318. function main()
  319. apex=0
  320. gg.toast(xTAGx)
  321. menu = gg.multiChoice({
  322. OH.."One hit KO",
  323. DE.."Dumb ennemy",
  324. GX.."Coins multiplier",
  325. GD.."High Gold (50k)",
  326. DI.."Damage increase",
  327.     "[ EXIT ]"},
  328.     {},xTAGx.."\n"..xLINKx.."\n"..GLabel.." "..GVersion.." "..xBITx)
  329.    
  330. if menu == nil then cancel() return end
  331. if menu[1] then onehit() end
  332. if menu[2] then dumb() end
  333. if menu[3] then goldx2() end
  334. if menu[4] then gold() end
  335. if menu[5] then damage() end
  336.  
  337. xhaX={
  338. OH.."One hit KO",
  339. DE.."Dumb ennemy",
  340. GX.."Coins multiplier",
  341. GD.."High Gold (50k)",
  342. DI.."Damage increase",
  343.     }
  344. xhaX=table.concat(xhaX, "\n")
  345. xhaX=tostring(xhaX)
  346.  
  347. if menu[6] then sortie() return end
  348.  
  349. gg.alert("Hacks "..GLabel.." "..GVersion.."\n"..xhaX,xTAGx)
  350.  
  351. end
  352.  
  353. --█████████████████████
  354. --public class dx
  355. --public int GetWeaponDamage(int a, int b)
  356. I[1]=0xA16220
  357.  
  358. function onehit()
  359.     if OH==OFF then
  360.     o=I[1] xrev() x="h2013A0D2" arm()
  361.     OH=ON
  362.     else
  363.     o=I[1] revert()
  364.     OH=OFF
  365.     end
  366.     end
  367. --█████████████████████
  368. --public abstract class Enemy : MonoBehaviour, qk, cl, qi, qj
  369. --public bool get_IsCanAction()
  370. I[2]=0x5A0648
  371.  
  372. function dumb()
  373.     if DE==OFF then
  374.     o=I[2] xrev() x=0 arm()
  375.     DE=ON
  376.     else
  377.     o=I[2] revert()
  378.     DE=OFF
  379.     end
  380.     end
  381. --█████████████████████
  382. --public class do
  383. --public bool get_IsCoinDouble()
  384. o=I[3]=0xA15034
  385. --public class dn
  386. --public bool get_IsCoinDouble()
  387. o=I[4]=0xA1501C
  388.  
  389. function goldx2()
  390.     if GX==OFF then
  391.     o=I[3] xrev() x=1 arm()
  392.     o=I[4] xrev() x=1 arm()
  393.     GX=ON
  394.     else
  395.     o=I[3] revert()
  396.     o=I[4] revert()
  397.     GX=OFF
  398.     end
  399.     end
  400. --█████████████████████
  401. --public class gi
  402. --public int GetRewardCoins(int a)
  403. I[5]=0x8C4888
  404.  
  405. function gold()
  406.     if GD==OFF then
  407.     --x="h2013A0D2"
  408.     o=I[5] xrev() x="h006A98D2" arm()
  409.     GD=ON
  410.     else
  411.     o=I[5] revert()
  412.     GD=OFF
  413.     end
  414.     end
  415. --█████████████████████
  416. --public class dn
  417. --public int get_MWeaponOneDamage()
  418. I[6]=0xA16430
  419. --public class dn
  420. --public int get_MWeaponTwoDamage()
  421. I[7]=0xA16440
  422.  
  423. function damage()
  424.     if DI==OFF then
  425.     o=I[6] xrev() x="h2013A0D2" arm()
  426.     o=I[7] xrev() x="h2013A0D2" arm()
  427.     DI=ON
  428.     else
  429.     o=I[6] revert()
  430.     o=I[7] revert()
  431.     DI=OFF
  432.     end
  433.     end
  434. --███████████████████████
  435. --███████████████████████
  436. --███████████████████████
  437.  
  438. function cancel()
  439. gg.toast("Cancelled")
  440. gg.sleep(1500)
  441. end
  442.  
  443. function sortie()
  444. print("--------------------------------------------------------------------")
  445. print("More links - WILS2M")
  446. print("https://discord.gg/GB3K2CRk")
  447. print("https://www.tiktok.com/@helledengaming")
  448. print("https://odysee.com/@HellEtEden-gaming:9")
  449. print("https://vimeo.com/showcase/10427325")
  450. gg.processResume()
  451. gg.getListItems()
  452. gg.clearList()
  453. gg.getResults(gg.getResultsCount())
  454. gg.clearResults()
  455. gg.toast("[ EXIT ]")  
  456.     if xhaX~=nil then
  457.         print(printx)
  458.         print(xhaX)
  459.         print(printx)  
  460.     end
  461. gg.setVisible(true)
  462. os.exit()
  463. return
  464. end
  465.  
  466. --███████████████████████
  467. while true do
  468.     if gg.isVisible() then
  469.         gg.setVisible(false)
  470.         menu()
  471.     else
  472.         if apex==1 then
  473.             gg.setVisible(false)
  474.             menu()
  475.         end
  476.     end
  477. end
Add Comment
Please, Sign In to add comment