blacksandbeacon

(★ 15)

Black Sand Beacon — a lightweight, memory-resident micro beacon or implant for the LazyOwn RedTeam Framework — is the first offensive platform to deliver true native BOF (Beacon Object File) support for Linux. Inspired by the Windows-based Black Basalt Beacon, it enables red teams to write position-independent, fileless post-exploitation modules

File Explorer

  • .gitignore
  • aes.c
  • aes.h
  • app.py
  • beacon.h
  • beacon3.c
  • beacon5.c
  • beacon6.c
  • beacon_p2p
  • beacon_p2p.c
  • bof.c
  • cJSON.c
  • cJSON.h
  • CODE_OF_CONDUCT.md
  • CONTRIBUTING.md
  • gopher_beacon.c
  • gopher_c2.py
  • install.sh
  • issudo.c
  • issudo.x64.o
  • LICENSE
  • Makefile
  • pull_request_template.md
  • QUICKSTART.md
  • README.md
  • requirements-dev.txt
  • requirements.txt
  • SECURITY.md

# Use via CDN

jsDelivr

jsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.

Command Glossary

Commands referenced in this DOCs, explained below.

🔍

crypto

View Details ▼

Manage cryptography.
Accessed in configuration mode.

crypto key generate rsa

Generate an `rsa` key:

crypto key generate rsa modulus {{1024}}

Define a modulus for a key:

crypto key zeroize

Remove all keys:

🔍

gcc

View Details ▼

Preprocess and compile C and C++ source files, then assemble and link them together.
Part of GCC (GNU Compiler Collection).

gcc {{path/to/source1.c path/to/source2.c ...}} {{[-o|--output]}} {{path/to/output_executable}}

Compile multiple source files into an executable:

gcc {{path/to/source.c}} -Wall {{[-o|--output]}} {{output_executable}}

Activate output of all errors and warnings:

gcc {{path/to/source.c}} -Wall {{[-g|--debug]}} -Og {{[-o|--output]}} {{path/to/output_executable}}

Show common warnings, debug symbols in output, and optimize without affecting debugging:

🔍

pip install

View Details ▼

Install Python packages.

pip install {{package1 package2 ...}}

Install one or more packages:

pip install {{package1 package2 ...}} {{[-U|--upgrade]}}

Upgrade all specified packages to the latest version, installing any that are not already present:

pip install {{package}}=={{version}}

Install a specific version of a package:

🔍

python3

View Details ▼

This command is an alias of `python`.

tldr python

View documentation for the original command:

🔍

scp

View Details ▼

Secure copy.
Copy files between hosts using Secure Copy Protocol over SSH.

scp {{path/to/local_file}} {{remote_host}}:{{path/to/remote_file}}

Copy a local file to a remote host:

scp -P {{port}} {{path/to/local_file}} {{remote_host}}:{{path/to/remote_file}}

Use a specific port when connecting to the remote host:

scp {{remote_host}}:{{path/to/remote_file}} {{path/to/local_directory}}

Copy a file from a remote host to a local directory:

🔍

ssh

View Details ▼

Secure Shell is a protocol used to securely log onto remote systems.
It can be used for logging or executing commands on a remote server.

ssh {{username}}@{{remote_host}}

Connect to a remote server:

ssh {{username}}@{{remote_host}} -i {{path/to/key_file}}

Connect to a remote server with a specific [i]dentity (private key):

ssh {{username}}@10.0.0.1 -p {{2222}}

Connect to a remote server with IP `10.0.0.1` and using a specific [p]ort (Note: `10.0.0.1` can be shortened to `10.1`):

🔍

apt-get

View Details ▼

Debian and Ubuntu package management utility.
Search for packages using `apt-cache`.
It is recommended to use `apt` when used interactively in Ubuntu versions 16.04 and later.

sudo apt-get update

Update the list of available packages and versions (it's recommended to run this before other `apt-get` commands):

sudo apt-get install {{package}}

Install a package, or update it to the latest available version:

sudo apt-get remove {{package}}

Remove a package:

// repository documentation