Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Macsploit IntegrationNew to Visual Studio Code? Get it now.
Macsploit Integration

Macsploit Integration

stafa

|
35 installs
| (1) | Free
Seamless Macsploit Integration, discord.gg/enhancing
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Macsploit-Integration

VSC Extension for Seamless Macsploit Execution

Insert Script in Autoexecute for Extension to work.

local WebSocket = WebSocket.connect("ws://localhost:8080")

local function fName()
    local milliseconds = math.floor((os.clock() % 1) * 1000)
    return "script"..tostring(milliseconds)..".lua"
end
 
WebSocket.OnMessage:Connect(function(message)
    local success, result = pcall(function()
        local data = game:GetService("HttpService"):JSONDecode(message)
        if data.op == "load" then
            local fileName = fName()
            writefile(fileName, data.string)

            local func, loadError = loadfile(fileName)
            if func then
                local execSuccess, execError = pcall(func)
                if not execSuccess then
                    error(execError)
                end
            else
                error(loadError)
            end
            
            delfile(fileName)
        end
    end)
    
    if not success then
        error(result)
    end
end)

WebSocket.OnClose:Connect(function()
    print("WebSocket connection closed")
end)
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft