A scripting language for security-focused tasks.
SecScript is a Python-based scripting language designed to simplify common security operations and make security-related workflows easier to write and automate.
It brings together functionality for networking, web requests, cryptography, and remote connections in one scripting environment, with the goal of reducing repetitive code and making security tasks more straightforward.
Status: Early development.
- Networking: DNS operations, network scanning, and banner-related functionality.
- Traffic Analysis: ARP operations and packet sniffing.
- Web: HTTP requests and web indexing.
- Cryptography: Hashing utilities.
- Remote Connections: SSH client functionality.
- Certificates: TLS certificate checking.
SecScript also includes its own grammar, AST builder, interpreter, and error-handling system.
SecScript provides installation scripts for Linux, Windows, and macOS. The installers handle the required dependencies and install the seclang command.
Supported distributions:
- Debian / Ubuntu / Pop!_OS
- Arch Linux / Manjaro
- Fedora
Run:
curl -fsSL https://raw.githubusercontent.com/acdr-code/Sec-Script/master/installers/install.sh -o install.sh
chmod +x install.sh
./install.shRequires winget.
Open PowerShell and run:
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/acdr-code/Sec-Script/master/installers/install.ps1" -OutFile "install.ps1"
Set-ExecutionPolicy -Scope Process Bypass
.\install.ps1Requires Homebrew to be installed.
Run:
curl -fsSL https://raw.githubusercontent.com/acdr-code/Sec-Script/master/installers/install-macos.sh -o install-macos.sh
chmod +x install-macos.sh
./install-macos.shSupports both Apple Silicon and Intel Macs.
After installation, verify that SecScript is available:
seclang --helpSec-Script/
├── core/
│ ├── ASTBuild.py
│ ├── ASTNode.py
│ ├── Grammar.py
│ ├── interpreter.py
│ └── errorHandler.py
│
├── fileio/
│
├── installers/
│ ├── install.sh
│ ├── install.ps1
│ └── install-macos.sh
│
├── security/
│ ├── cert/
│ ├── crypto/
│ ├── network/
│ ├── remote/
│ ├── traffic/
│ ├── web/
│ └── SecurityStuff.py
│
├── tests/
│
├── utills/
│
├── main.py
├── pyproject.toml
├── requirements.txt
├── BUILD.md
├── README.md
└── LICENSE
Clone the repository:
git clone https://github.com/acdr-code/Sec-Script.git
cd Sec-ScriptInstall the project in editable mode:
pipx install --editable .Changes to the source code will then be reflected without reinstalling the package.
- Expand networking capabilities
- Improve service detection and banner functionality
- Add malware analysis features
- Add digital forensics helpers
- Build a proper documentation website
SecScript is licensed under the Apache License 2.0.