BugInjectX
BugInjectX is a powerful, Python-based tool designed for automated vulnerability discovery, focusing on SQL Injection (SQLi), Cross-Site Scripting (XSS), and Server-Side Request Forgery (SSRF) attacks. It leverages dictionary-based payload injections to identify vulnerabilities in web applications by testing URL and header parameters for potential exploits.
Features
- Automated Vulnerability Testing: Detects SQLi, XSS, and SSRF vulnerabilities.
- Dictionary-based Payload Injection: Uses extensive, custom dictionaries for payloads.
- Color-coded Output: Easy-to-read, color-coded feedback in the terminal.
- Custom Headers: Inject custom headers like
X-BUG-HUNTER-IDfor enhanced anonymity. - Async Operations: Utilizes
asyncioandaiohttpfor high-speed, efficient attacks. - Cross-Platform: Works on any system with Python 3+ installed.
Why BugInjectX?
BugInjectX is designed for bug hunters, penetration testers, and security researchers who need an efficient and streamlined method to automate vulnerability testing. With built-in support for common CVEs like SQLi, XSS, and SSRF, BugInjectX is your go-to tool for comprehensive web application testing.
Supported Vulnerabilities
- SQL Injection (SQLi): Tests for SQLi flaws in URL and header parameters.
- Cross-Site Scripting (XSS): Identifies XSS vulnerabilities via payload injection.
- Server-Side Request Forgery (SSRF): Tests for SSRF vulnerabilities by injecting payloads that manipulate server-side requests.
Installation
To install BugInjectX, simply run:
pip install buginjectx
Alternatively, you can install from source:
- Clone the Repository:
git clone https://github.com/GreyNodeSecurity/BugInjectX
- Navigate to the project directory:
cd BugInjectX
- Install the dependencies:
pip install -r requirements.txt
If you are using some O.S. like Kali, or you get the following error;
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.
If you wish to install a non-Kali-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have pypy3-venv installed.
If you wish to install a non-Kali-packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.
For more information, refer to the following:
* https://www.kali.org/docs/general-use/python3-external-packages/
* /usr/share/doc/python3.12/README.venv
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
Please use the following command:
pipx install -r requirements.txt
OR BUILD ENVIRONMENT:
python3 -m venv venv
source venv/bin/activate
Quick Start
Once installed, BugInjectX can be run with the following command:
python3 main.py
Sample Usage
- Run BugInjectX with custom Target:
python3 main.py --target https://target.com --header "X-BUG-HUNTER-ID: Z3r0-S3c"
- Test with Custom Payload Dictionaries:
python3 main.py --target https://target.com --sql-payloads /path/to/sql_payloads.txt --xss-payloads /path/to/xss_payloads.txt --ssrf-payloads /path/to/ssrf_payloads.txt
Configuration
BugInjectX allows you to specifically custom payload dictionaries for each vulnerability type (SQLi, XSS, SSRF). You can easily specify the location of these dictionaries in the command-line arguments:
--sql-payloads: Path to the SQLi Payloads File.--xss-payloads: Path to the XSS Payloads File.--ssrf-payloads: Path to the SSRF Payloads File.--header: Optional custom header for your requests (e.g.,X-BUG-HUNTER-ID).
Contributing
We welcome contributions! If you’d like to contribute to BugInjectX, please fork the repository, create a new branch, and submit a pull request. We are particularly looking for:
Improvements to existing features:
- Bug fixes
- Additional payload dictionaries for new vulnerabilities
Contact
- Name: Z3r0 S3c
- Email: z3r0s3c@greynodesecurity.com
- Twitter: @Z3r0_S3c
- Company: Grey Node Security
- Web: https://greynodesecurity.com
Metadata
Release files for BugInjectX 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| buginjectx-0.2.0.tar.gz | 8.6 kB | Without provenance | Details for buginjectx-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| BugInjectX-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for BugInjectX-0.2.0-py3-none-any.whl |
Total release size: 17.6 kB
Release files / buginjectx-0.2.0.tar.gz
| Download URL | buginjectx-0.2.0.tar.gz |
|---|---|
| Size | 8.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8b5f9e180fc8a407711042b2f367a49ba626e68403a0613702de0f1f28a84bf3
|
|
BLAKE2b-256 checksum How to use checksums |
a96d2739efcc932d732e67d93b25af4422f43482543064d38ebc5ed3b517feab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / BugInjectX-0.2.0-py3-none-any.whl
| Download URL | BugInjectX-0.2.0-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
839b8c8f4268705dc68c267fb2ca1fd1ce3cde0ccf3d02344e75b989e591d1c6
|
|
BLAKE2b-256 checksum How to use checksums |
55db844717392edb1f63b07beab1363d3ca7a3afe99285e5783a98f30c8a0ba6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Security for BugInjectX 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.