Advertisement
Magic1111

Magic Bullet FF

Dec 14th, 2021 (edited)
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.15 KB | None | 0 0
  1. local memFrom, memTo, lib, num, lim, results, src, ok = 0, -1, nil, 0, 32, {}, nil, false
  2. function name(n)
  3. if lib ~= n then lib = n
  4. local ranges = gg.getRangesList(lib)
  5. if #ranges == 0 then
  6. else memFrom = ranges[1].start memTo = ranges[#ranges]["end"]end end
  7. end
  8. function hex2tbl(hex)
  9. local ret = {} hex:gsub("%S%S",
  10. function (ch) ret[#ret + 1] = ch return ""end)return ret
  11. end
  12. function original(orig)
  13. local tbl = hex2tbl(orig)
  14. local len = #tbl
  15. if len == 0 then return end
  16. local used = len
  17. if len > lim then used = lim end
  18. local s = '' for i = 1, used do
  19. if i ~= 1 then s = s..";" end
  20. local v = tbl[i]
  21. if v == "??" or v == "**" then v = "0~~0" end s = s..v.."r"end s = s.."::"..used
  22. gg.searchNumber(s, gg.TYPE_BYTE, false, gg.SIGN_EQUAL, memFrom, memTo)
  23. if len > used then for i = used + 1, len do
  24. local v = tbl[i]
  25. if v == "??" or v == "**" then v = 256 else v = ("0x"..v) + 0
  26. if v > 127 then v = v - 256 end end tbl[i] = v end end
  27. local found = gg.getResultCount(); results = {}
  28. local count = 0
  29. local checked = 0
  30. while true do
  31. if checked >= found then break end
  32. local all = gg.getResults(8)
  33. local total = #all
  34. local start = checked
  35. if checked + used > total then break end for i, v in ipairs(all) do v.address = v.address + myoffset end
  36. gg.loadResults(all)while start < total do
  37. local gORIGINd = true
  38. local offset = all[1 + start].address - 1
  39. if used < len then
  40. local get = {} for i = lim + 1, len do get[i - lim] = {address = offset + i, flags = gg.TYPE_BYTE, value = 0}end
  41. get = gg.getValues(get) for i = lim + 1, len do
  42. local ch = tbl[i]
  43. if ch ~= 256 and get[i - lim].value ~= ch then gORIGINd = false break end end end
  44. if gORIGINd then count = count + 1 results[count] = offset checked = checked + used else
  45. local del = {} for i = 1, used do del[i] = all[i + start]end
  46. gg.removeResults(del)end start = start + used end end
  47. end
  48. function replaced(repl)
  49. num = num + 1
  50. local tbl = hex2tbl(repl)
  51. if src ~= nil then
  52. local source = hex2tbl(src) for i, v in ipairs(tbl) do
  53. if v ~= "??" and v ~= "**" and v == source[i] then tbl[i] = "**" end end src = nil end
  54. local cnt = #tbl
  55. local set = {}
  56. local s = 0 for _, addr in ipairs(results) do for i, v in ipairs(tbl) do
  57. if v ~= "??" and v ~= "**" then s = s + 1 set[s] = {["address"] = addr + i,["value"] = v.."r",["flags"] = gg.TYPE_BYTE,}end end end
  58. if s ~= 0 then
  59. gg.setValues(set) end
  60. ok = true
  61. end
  62. gg.alert(os.date("Youtube YELLOWHAX\n\nNgay: %d-%m-%Y\nTime: %H:%M:%S\n\n "))
  63. function Main()
  64. SN = gg.multiChoice({
  65. "Magic Bullet",
  66. "Headling & Clear Mind",
  67. "Bypass",
  68. "Thoat"
  69. }, nil,'Walker x YellowHax')
  70. if SN == nil then
  71. else
  72. if SN[1] == true then
  73. a1()
  74. end
  75. if SN[2] == true then
  76. a2()
  77. end
  78. if SN[3] == true then
  79. a3()
  80. end
  81. if SN[4] == true then
  82. Exit()
  83. end
  84. end
  85. XGCK = -1
  86. end
  87.  
  88. function a1()
  89. function setvalue(address,flags,value) local tt={} tt[1]={} tt[1].address=address tt[1].flags=flags tt[1].value=value gg.setValues(tt) end
  90. so=gg.getRangesList('libil2cpp.so')[1].start
  91. py=0x7ED2DBC
  92. setvalue(so+py,16,1.2)
  93. gg.toast("Magic Bullet")
  94. end
  95.  
  96. function a2()
  97. gg.setRanges(32)
  98. gg.searchNumber("75D;5F;4F::30", 16, false, 536870912, 0, -1)
  99. gg.refineNumber("4", 16, false, 536870912, 0, -1)
  100. gg.getResults(1)
  101. gg.editAll("3", 16)
  102. gg.clearResults()
  103. gg.toast("Healing 3s")
  104. gg.setVisible(false)
  105. gg.setRanges(gg.REGION_ANONYMOUS)
  106. gg.searchNumber("0.84705883265;0.5;0.5", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
  107. gg.processResume()
  108. gg.refineNumber("0.5", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
  109. revert = gg.getResults(52000, nil, nil, nil, nil, nil, nil, nil, nil)
  110. gg.editAll("10", gg.TYPE_FLOAT)
  111. gg.processResume()
  112. gg.toast("Clear Mind")
  113. gg.clearResults()
  114. end
  115.  
  116. function a3()
  117. gg.setRanges(gg.REGION_CODE_APP | gg.REGION_C_DATA)
  118. name("libil2cpp.so")
  119. myoffset = 21950752
  120. original("7F 45 4C 46 01 01 01 00")
  121. replaced("00 00 A0 E3 1E FF 2F E1")
  122. gg.clearResults()
  123. gg.clearResults()
  124. gg.setRanges(gg.REGION_C_ALLOC)
  125. gg.searchNumber("R_R({800C90C0rD;7A01A801rD;58011B01rD;39016001rD;7101A901rD;FC013402rD;7402D902rD;19032203rD;5103D003rD;46044E04rD;FB03DC03rD;38046804rD;CB030503rD;FF024003rD;D102FF01rD;AC01C901rD;C0016901rD;E8006200rD;F6FF7EFFrD;B4FEC4FDrD:4089})", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
  126. gg.refineNumber("R_R({8})", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
  127. gg.getResults(73)
  128. gg.editAll("R_R({192,158,121})", gg.TYPE_FLOAT)
  129. gg.clearResults()
  130. gg.searchNumber("R_R({1,6,7,8,9,0,0,6,6,7,7,10,7,777,10})", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
  131. gg.refineNumber("R_R({61})", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
  132. gg.getResults(40)
  133. gg.editAll("R_R({192,158,121})", gg.TYPE_FLOAT)
  134. gg.clearResults()
  135. gg.setRanges(32)
  136. gg.searchNumber("R_R({83,65,103,40,11,249,31,224,203,177,215,152,126,127,143,80,52,36,71,8,236,220,255,192,164,152,183,120,94,94,111,47,29,9})", 1, false, 536870912, 0, -1)
  137. gg.refineNumber("R_R({83,65,103,40,11,249,31,224,203,177,215,152,126,127,143,79,61,37})", 1, false, 536870912, 0, -1)
  138. gg.getResults(10000)
  139. gg.editAll("R_R({83,65,103,40,11,249,31,224,199,185,215,152,127,108,143})", 1)
  140. gg.clearResults()
  141. gg.setRanges(gg.REGION_ANONYMOUS)
  142. gg.searchNumber("R_R({165,211,57,58,93,139,241,242,29,67,169,170,208,17,97,98,134,182,25,26,62,110,209,210,246,42,137,138,176,240,65,65,111,155})", gg.TYPE_BYTE, false, gg.SIGN_EQUAL, 0, -1)
  143. gg.refineNumber("R_R({165,211,57,58,93,139,241,242,29,67,169,170,208,17,97,97,143,183})", gg.TYPE_BYTE, false, gg.SIGN_EQUAL, 0, -1)
  144. gg.getResults(10000)
  145. gg.editAll("R_R({165,211,57,58,93,139,241,242,25,75,169,170,209,254,97})", gg.TYPE_BYTE)
  146. gg.setRanges(gg.REGION_ANONYMOUS)
  147. gg.searchNumber("R_R({165,211,57,58,93,139,241,242,29,67,169,170,208,17,97,98,141,184,25,26,68,125,209,210,11,41,137,138,176,240,65,65,111,155})", gg.TYPE_BYTE, false, gg.SIGN_EQUAL, 0, -1)
  148. gg.refineNumber("R_R({165,211,57,58,93,139,241,242,29,67,169,170,208,17,97,97,143,183})", gg.TYPE_BYTE, false, gg.SIGN_EQUAL, 0, -1)
  149. gg.getResults(10000)
  150. gg.editAll("R_R({165,211,57,58,93,139,241,242,25,75,169,170,209,254,97})", gg.TYPE_BYTE)
  151. gg.clearResults()
  152. gg.setRanges(gg.REGION_ANONYMOUS)
  153. gg.searchNumber("R_R({165,211,57,58,93,139,241,242,29,67,169,170,208,17,97,98,134,182,25,26,62,110,209,210,246,42,137,138,176,240,65,65,111,155})", gg.TYPE_BYTE, false, gg.SIGN_EQUAL, 0, -1)
  154. gg.refineNumber("R_R({165,211,57,58,93,139,241,242,29,67,169,170,208,17,97,97,143,183})", gg.TYPE_BYTE, false, gg.SIGN_EQUAL, 0, -1)
  155. gg.getResults(10000)
  156. gg.editAll("R_R({165,211,57,58,93,139,241,242,25,75,169,170,209,254,97})", gg.TYPE_BYTE)
  157. gg.setRanges(gg.REGION_ANONYMOUS)
  158. gg.searchNumber("R_R({165,211,57,58,93,139,241,242,29,67,169,170,208,17,97,98,141,184,25,26,68,125,209,210,11,41,137,138,176,240,65,65,111,155})", gg.TYPE_BYTE, false, gg.SIGN_EQUAL, 0, -1)
  159. gg.refineNumber("R_R({165,211,57,58,93,139,241,242,29,67,169,170,208,17,97,97,143,183})", gg.TYPE_BYTE, false, gg.SIGN_EQUAL, 0, -1)
  160. gg.getResults(10000)
  161. gg.editAll("R_R({165,211,57,58,93,139,241,242,25,75,169,170,209,254,97})", gg.TYPE_BYTE)
  162. gg.clearResults()
  163. gg.setRanges(gg.REGION_C_ALLOC | gg.REGION_OTHER)
  164. gg.searchNumber("620,137,442,967,552", gg.TYPE_QWORD, nil, nil, nil, nil)
  165. gg.refineNumber("620,137,442,967,552", gg.TYPE_QWORD)
  166. gg.getResults(500)
  167. gg.editAll("288233678981562368", gg.TYPE_QWORD)
  168. gg.clearResults()
  169. gg.setRanges(gg.REGION_C_ALLOC | gg.REGION_OTHER)
  170. gg.searchNumber("620,137,442,967,552", gg.TYPE_QWORD, nil, nil, nil, nil)
  171. gg.refineNumber("620,137,442,967,552", gg.TYPE_QWORD)
  172. gg.getResults(5000)
  173. gg.editAll("288233678981562368", gg.TYPE_QWORD)
  174. gg.clearResults()
  175. gg.setRanges(gg.REGION_C_ALLOC | gg.REGION_OTHER)
  176. gg.searchNumber("578351706144768;564058054983680", gg.TYPE_QWORD, nil, nil, nil, nil)
  177. gg.refineNumber("578351706144768", gg.TYPE_QWORD)
  178. gg.getResults(5000)
  179. gg.editAll("288233678981562368", gg.TYPE_QWORD)
  180. gg.setRanges(gg.REGION_C_ALLOC | gg.REGION_OTHER)
  181. gg.searchNumber("577252194516992;288233678981562368", gg.TYPE_QWORD, nil, nil, nil, nil)
  182. gg.refineNumber("577252194516992", gg.TYPE_QWORD)
  183. gg.getResults(5000)
  184. gg.editAll("288233678981562368", gg.TYPE_QWORD)
  185. gg.clearResults()
  186. gg.setRanges(gg.REGION_C_ALLOC | gg.REGION_OTHER)
  187. gg.searchNumber("132098;133635", gg.TYPE_DWORD, nil, nil, nil, nil)
  188. gg.refineNumber("132098", gg.TYPE_DWORD)
  189. gg.getResults(39)
  190. gg.editAll("288233678981562368", gg.TYPE_QWORD)
  191. gg.setRanges(gg.REGION_C_ALLOC | gg.REGION_OTHER)
  192. gg.searchNumber("133634;134914", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
  193. gg.refineNumber("133634", gg.TYPE_DWORD)
  194. gg.getResults(39)
  195. gg.editAll("288233678981562368", gg.TYPE_QWORD)
  196. gg.setRanges(gg.REGION_C_ALLOC | gg.REGION_OTHER)
  197. gg.searchNumber("134,914;135,682", gg.TYPE_DWORD, nil, nil, nil, nil)
  198. gg.refineNumber("134,914", gg.TYPE_DWORD)
  199. gg.getResults(50000)
  200. gg.editAll("135682", gg.TYPE_DWORD)
  201. gg.setRanges(gg.REGION_C_ALLOC | gg.REGION_OTHER)
  202. gg.searchNumber("131,842;134,658", gg.TYPE_DWORD, nil, nil, nil, nil)
  203. gg.refineNumber("131,842", gg.TYPE_DWORD)
  204. gg.getResults(5000)
  205. gg.editAll("135682", gg.TYPE_DWORD)
  206. gg.setRanges(gg.REGION_C_ALLOC)
  207. gg.searchNumber("132,098;131,586", gg.TYPE_DWORD, nil, nil, nil, nil)
  208. gg.refineNumber("132,098", gg.TYPE_DWORD)
  209. gg.getResults(5000)
  210. gg.editAll("135682", gg.TYPE_DWORD)
  211. gg.setRanges(gg.REGION_C_ALLOC | gg.REGION_OTHER)
  212. gg.searchNumber("1.87978584e-40", gg.TYPE_FLOAT, nil, nil, nil, nil)
  213. gg.getResults(22)
  214. gg.editAll("1504770736", gg.TYPE_FLOAT)
  215. gg.clearResults()
  216. gg.setRanges(gg.REGION_C_ALLOC | gg.REGION_OTHER)
  217. gg.searchNumber("1.87619851e-40", gg.TYPE_FLOAT, nil, nil, nil, nil)
  218. gg.getResults(31)
  219. gg.editAll("1504770736", gg.TYPE_FLOAT)
  220. gg.clearResults()
  221. gg.setRanges(gg.REGION_C_ALLOC | gg.REGION_OTHER)
  222. gg.searchNumber("768", gg.TYPE_DWORD, nil, nil, nil, nil)
  223. gg.refineNumber("768", gg.TYPE_DWORD)
  224. gg.refineNumber("768", gg.TYPE_DWORD)
  225. gg.getResults(39)
  226. gg.editAll("288233678981562368", gg.TYPE_QWORD)
  227. gg.getListItems()
  228. os.remove(gg.EXT_STORAGE .. '/Android/data/com.dts.freefireth/files/reportnew.db', gg.LOAD_APPEND)
  229. os.remove(gg.EXT_STORAGE .. '/Android/data/com.dts.freefireth/files/ymrtc_log.txt', gg.LOAD_APPEND)
  230. os.remove("/Android/data/com.dts.libil2cpp.soth/files/reportnew.db")
  231. os.remove("/Android/data/com.dts.libil2cpp.soth/files/ymrtc_log.txt")
  232. os.remove("/storage/emulated/0/Android/data/com.dts.freefireth/files/ymrtc_log_bak.txt")
  233. gg.searchNumber("-1.1888024e-10F;-0.00883197878F;-9,004,122,112.0F;4.8888483e24F;-0.0079164654F;1.0865689e-19F;1.0879452e-19F;4.1778991e34F:29", 16, false, 536870912, 0, -1)
  234. gg.refineNumber("-1.1888024e-10;-0.00883197878", 16, false, 536870912, 0, -1)
  235. gg.getResults(100)
  236. gg.editAll("120", 16)
  237. os.remove(gg.EXT_STORAGE .."/Android/data/com.dts.freefireth/files/reportnew.db", gg.LOAD_APPEND)
  238. os.remove(gg.EXT_STORAGE .."/Android/data/com.dts.freefireth/files/ymrtc_log.txt", gg.LOAD_APPEND)
  239. gg.searchNumber("-1.1888024e-10F;-0.00883197878F;-9,004,122,112.0F;4.8888483e24F;-0.0079164654F;1.0865689e-19F;1.0879452e-19F;4.1778991e34F:29", 16, false, 536870912, 0, -1)
  240. gg.refineNumber("-1.1888024e-10;-0.00883197878", 16, false, 536870912, 0, -1)
  241. gg.getResults(100)
  242. gg.editAll("120", 16)
  243. gg.clearResults()
  244. gg.toast("Bypass Complete")
  245. end
  246.  
  247. function Exit()
  248. os.exit()
  249. end
  250.  
  251. while true do
  252. if gg.isVisible(true) then
  253. XGCK = 1
  254. gg.setVisible(false)
  255. end
  256. gg.clearResults()
  257. if XGCK == 1 then
  258. Main()
  259. end
  260. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement