Skip to content

SwimmerSploit is a collection of option fluid payloads that can perform mutiple different shell types without having to be recompiled.

Notifications You must be signed in to change notification settings

OreoByte/SwimmerSploit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

SwimmerSploit

SwimmerSploit is a collection of option fluid payloads that can perform mutiple different shell types without having to be recompiled.


Simple Native Compile or Cross Compile Cheat Sheet


C++ 0r C

  • 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

Csharp/C#

  • 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 

Python3

  • 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

Nim

  • 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

Golang/Go

  • 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

Rust

  • 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.

About

SwimmerSploit is a collection of option fluid payloads that can perform mutiple different shell types without having to be recompiled.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published