/dart_rs

Basic Dart reverse shell code

Primary LanguageRust

Dart reverse shell v1.1

Updated and (currently) working basic dart reverse shell for Windows (Powershell) based on this one by Potato-Industries. Pretty self explanatory. Only took two and a half years to find the time to come back to this...

Code has been rewritten to support the latest version of Dart, error handling improved, process management problems fixed, etc. Avoids quite a few endpoint AV products, including BitDefender even though Jotti says otherwise (tested on a fully updated release of BitDefender Total Security as of 2023-11-10). Tested and working on Windows 10/11.

How to compile

You’ll need a platform that supports the Dart SDK. I used a Windows 10 64-bit VM for the below steps. From there:

  1. Install the Dart SDK from dart.dev via the instructions (using Chocolately is easiest)

  2. Grab dart.rs from this repo

  3. Modify the host and port to a value that suits you

  4. Open a command prompt and compile the binary with dart:

image

  1. Transfer the binary to the target system, set up a listener on the box you configured and give it a crack:

image

  1. OPTIONAL: Install Visual Studio Community to get ‘editbin.exe’ so you can modify your Dart shell binary to run silently. Check out the advice here for how to get editbin.exe. Use editbin.exe to stop the binary executing with a persistent black command window in the foreground:

image


Better than it was, but could still use some improvements.