Scapy Manager (scapy-man)
Step CA Manager using Python
Setup
git clone https://github.com/nikhiljohn10/scapy
cd scapy
pip install --user poetry
poetry update
Demo
poetry run bash examples/deploy.sh
You will be asked to provide a Cloudflare Token to upload the worker. The worker will be uploaded to your Cloudflare Account and deployed to Cloudflare Edge Network.
If successully deployed, you will find a url where the demo CA Root certificate and hosted. Install this certificate in systems to access stepca.nikz.in.
Python Package
pip install scapy-man
Troubleshooting
- If
scapynot found:export PATH=$PATH:$(realpath ~/.local/bin) - If
pipnot found:sudo apt install python3-pip - If
python3-pipnot found:sudo apt update
Usage with Step CA
INSTALLATION_PATHS=$(scapy get step all -p)
sudo dpkg -i $INSTALLATION_PATHS
scapy gen passwords
scapy gen worker
export CA_NAME="Scapy CA"
step ca init \
--name "$CA_NAME" \
--dns stepca.local \
--address :443 \
--provisioner admin \
--password-file $(scapy path password root) \
--provisioner-password-file $(scapy path password provisioner)
step crypto change-pass $(scapy path key intermediate)
export FINGERPRINT=$(step certificate fingerprint $(scapy path cert root))
scapy deploy --worker scapy --js worker.js
In the above commands,
- Generate a password and store in step path
- Generate a basic worker file
- Export
CA_NAMEvariable with CA Name - Generate PKI using Step CA
- Export
FINGERPRINTvariable with fingerprint of Root Certificate - Deploy worker
scapywithworker.jsas script file.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file scapy-man-0.2.2.tar.gz.
File metadata
- Download URL: scapy-man-0.2.2.tar.gz
- Upload date:
- Size: 14.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ba678c109b94cdc36a3015865c47c0aefd7965ba72a263aea4d54fc9d1f7c5a
|
|
| MD5 |
69687e403cfe4bd225d1cc017bb5a410
|
|
| BLAKE2b-256 |
476572de8ad1ea4ae7e856f99efdd52d0c9140b380d5eb6e954cc7a0fda2f164
|
File details
Details for the file scapy_man-0.2.2-py3-none-any.whl.
File metadata
- Download URL: scapy_man-0.2.2-py3-none-any.whl
- Upload date:
- Size: 16.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10fa7feec1204264316907024464c9ca1c10104adeec7f865f155de8058b11a5
|
|
| MD5 |
f19ee3e6f5400fe56b9610781aecf887
|
|
| BLAKE2b-256 |
143bb02191c7569b1588cb23c41d0ac9f44d38ba4e57293fe2b163f9210705b0
|