Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastAPI Security Testing API

This repository provides various security testing endpoints including full scans, XSS tests, SQLi tests, CSRF tests, file upload tests, privilege escalation tests, rate limit tests, and directory brute force tests.

Installation

  1. Clone the repository:
    git clone https://github.com/yourusername/security-testing-api.git
    cd security-testing-api

Install the required dependencies:

sh Copy code pip install -r requirements.txt Run the FastAPI application:

sh Copy code uvicorn main:app --reload Endpoints Full Scan POST /full_scan

Performs a full scan including various tests.

Example: sh Copy code curl -X POST "http://localhost:8000/full_scan" \ -F target="http://example.com" \ -F param="id" \ -F credentials="username:password" \ -F wordlist=@wordlist.txt \ -F upload_file=@testfile.txt \ -F password_list_file=@passwords.txt \ -F useragents_file=@useragents.txt
Nmap Scan POST /scan

Performs a scan using Nmap on the provided target.

Example: sh Copy code curl -X POST "http://localhost:8000/scan" \ -H "Content-Type: application/json" \ -d '{"target": "http://example.com"}'
XSS Test POST /xss_test

Performs an XSS test on the provided target.

Example: sh Copy code curl -X POST "http://localhost:8000/xss_test" \ -H "Content-Type: application/json" \ -d '{"target": "http://example.com"}'
SQLi Test POST /sqli_test

Performs an SQLi test on the provided target with a parameter.

Example: sh Copy code curl -X POST "http://localhost:8000/sqli_test" \ -H "Content-Type: application/json" \ -d '{"target": "http://example.com", "param": "id"}'
CSRF Test POST /csrf_test

Performs a CSRF test on the provided target.

Example: sh Copy code curl -X POST "http://localhost:8000/csrf_test" \ -H "Content-Type: application/json" \ -d '{"target": "http://example.com"}'
File Upload Test POST /file_upload_test

Performs a file upload test on the provided target.

Example: sh Copy code curl -X POST "http://localhost:8000/file_upload_test" \ -F target="http://example.com" \ -F upload_file=@testfile.txt
Privilege Escalation Test POST /privilege_escalation_test

Performs a privilege escalation test on the provided target.

Example: sh Copy code curl -X POST "http://localhost:8000/privilege_escalation_test" \ -H "Content-Type: application/json" \ -d '{"target": "http://example.com", "credentials": "username:password"}'
Rate Limit Test POST /rate_limit_test

Performs a rate limit test on the provided target.

Example: sh Copy code curl -X POST "http://localhost:8000/rate_limit_test" \ -F target="http://example.com" \ -F username="admin" \ -F password_list=@passwords.txt
Directory Brute Force POST /directory_brute_force

Performs a directory brute force test on the provided target.

Example: sh Copy code curl -X POST "http://localhost:8000/directory_brute_force" \ -F target="http://example.com" \ -F wordlist=@wordlist.txt \ -F useragents=@useragents.txt
```

About

An api too automate pentesting tasks.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages