SwimmerSploit is a collection of option fluid payloads that can perform mutiple different shell types without having to be recompiled.
- Compile C++/C on Linux for Linux.
gcc linux.c -o compiled
g++ linux.cpp -o compiled
make -f MakeFile
- Compile C++/C on Linux for Windows.
x86_64-w64-mingw32-gcc hello_world.c -o hi.exe
x86_64-w64-mingw32-g++ hello_world.cpp -o hi.exe
i686-w64-mingw32-gcc hello_world.cpp -o hi.exe
i686-w64-mingw32-g++ hello_world.c -o hi.exe
i686-w64-mingw32-gcc loader.c -lws2_32 -o avbypass.exe
make -f Makefile.win OS_TARGET=win64 CPU_TARGET=x86_64
- Compile Csharp/C# on Linux for Linux.
dotnet build
dotnet build solutionfile.sln
- Compile Csharp/C# on Linux for Window.
xbuild solution_file.sln # retired
dotnet build -r win-x64 project.csproj
mono-csc revshells.cs -out:runner.exe
- Compile Python3 on Linux for Linux.
pyinstaller -F python3-code.py
nuitka3 code.py --standalone --onefile
- Compile Python3 on Windows for Window.
pyinstaller -F python3-code.py
- Compile Nim on Linux for Linux.
nim c filename.nim
nim c filename.nim -o:./run.out
- Compile Nim on Linux for Window.
min c -d:release -d:mingw --cpu=i386 project.nim
min c -d:release -d:mingw --cpu=amd64 -o:./run.exe project.nim
nim c -d:release -d:mingw --cpu=i386 --app:lib -o:./re.dll project_dll.nim
- Compile Golang/Go on Linux for Linux.
go build hello.go
go build -o run_me hello.go
- Compile Golang/Goon on Linux for Window.
GOOS=windows GOARCH=amd64 go build -o pwn.exe runner.go
GOOS=windows GOARCH=386 go build -o pwn.exe runner.go
GOOS=windows GOARCH=amd64 go build -buildmode=c-shared -o pwn.dll loader.go
GOOS=windows GOARCH=386 go build -buildmode=c-shared -o pwn.dll loader.go
- Compile Rust on Linux for Linux.
rustc -o run.elf code.rs --target -target i686-unknown-linux-musl
rustc -o run.elf code.rs
- Compile Rust on Linux for Window.
rustup target add x86_64-pc-windows-msvc
rustup target add x86_64-pc-windows-gnu
rustup target add i686-pc-windows-msvc
rustup target add i686-pc-windows-gnu
rustc -o exec.exe rust.rs --target i686-pc-windows-gnu
rustc -o exec.exe rust.rs --target x86_64-pc-windows-gnu
cargo build --target i686-pc-windows-gnu
cargo run --target i686-pc-windows-gnu
- NOTE that the compile targets are not installed by default.