blacksandbeacon
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
- bug_report.md
- custom.md
- feature_request.md
- pull_request_template.md
- ci.yml
- dependabot.yml
- pullrequest_template.md
- beacon.c
- gopher_beacon.c
- beacon.c
- beacon.c
- bof.c
- cat.c
- beacon_api.h
- syscalls.h
- bof.c
- is_sudo.c
- bof.c
- bof.c
- userenum.c
- bof.c
- whoami.c
- build.sh
- server.py
- config.example.json
- BOF_AUTHORING.md
- index.html
- PROTOCOL.md
- aes.c
- aes.h
- aes_cfb.c
- aes_cfb.h
- beacon.h
- beacon_common.c
- beacon_common.h
- cJSON.c
- cJSON.h
- config.c
- config.h
- config_py.py
- config_harness
- config_harness.c
- crypto_harness.c
- test_beacon_build.py
- test_bof_compile.py
- test_c2_http_e2e.py
- test_c2_server.py
- test_config.py
- test_crypto.py
- test_install_deploy.py
- github-actions-demo.yml
- .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
jsDelivrjsDelivr 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 ▼
crypto
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 ▼
gcc
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 ▼
pip install
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 ▼
python3
This command is an alias of `python`.
tldr python
View documentation for the original command:
scp
View Details ▼
scp
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 ▼
ssh
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 ▼
apt-get
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:
