A lightweight, local HTTPS server designed for security professionals and developers. Quickly host files, generate payloads with AI, and monitor access logs in real-time.
Disclaimer: This tool is intended for educational and authorized testing purposes only. Use it responsibly and ethically. The developer is not responsible for any misuse.
- Simple Setup: Get up and running with a single setup script.
- Local HTTPS: Serves content over HTTPS for realistic testing scenarios.
- AI Payload Generation: Leverage AI to quickly create payloads, from simple web pages to reverse shells.
- File Hosting: Easily host any file with custom content and a specific filename.
- Live Access Log: Monitor all incoming requests to your hosted files in real-time, capturing IP addresses, user agents, and timestamps.
Follow these steps to get the Attack Server running on your local machine.
- A Unix-like operating system (Linux, macOS).
- Administrative/root privileges for installation.
- An internet connection for AI configuration.
-
Run the Setup Script This script will install dependencies and create the necessary server files.
sudo ./setup.sh
-
Install the Local Certificate Authority To avoid browser security warnings, you need to trust the server's self-signed certificate.
macOS Instructions
- Open
Keychain Access.app. - Go to
File > Import Items.... - Navigate to the
AttackServer/certs/directory and selectcert.pem. - In the
Systemkeychain, find and double-click theattackserver.comcertificate. - Expand the Trust section.
- For "When using this certificate:", select Always Trust.
- Close the window (you may need to enter your password).
Linux (Debian/Ubuntu) Instructions
- Copy the certificate to the system's CA directory.
sudo cp certs/cert.pem /usr/local/share/ca-certificates/attackserver.crt
- Update the system's certificate store.
sudo update-ca-certificates
Windows Instructions
- Double-click the
certs/cert.pemfile. - Click the "Install Certificate..." button.
- Choose "Local Machine" and click Next.
- Select "Place all certificates in the following store".
- Click "Browse..." and select the "Trusted Root Certification Authorities" store.
- Click OK, then Next, and finally Finish.
- Open
-
Configure Local Hostname You need to map the
attackserver.comdomain to your local machine.- Open your hosts file with root privileges.
sudo nano /etc/hosts
- Add the following line to the end of the file:
127.0.0.1 attackserver.com - Save and close the file (In
nano, pressCtrl+X, thenY, thenEnter).
- Open your hosts file with root privileges.
Once setup is complete, you can start the server with a single command.
- In your terminal, type:
sudo attackserver
- Navigate to
https://attackserver.comin your web browser.
When you want to stop the server run:
sudo attackserver stopTo use the AI payload generation feature, you must first configure your API key.
- Navigate to the Settings page on the web interface.
- Click the provided link to generate a new API key from the service provider.
- Copy your API key and paste it into the "API Key" input field in the Settings page.
- Click Save.
- From the home page, click Create with AI.
- In the prompt box, describe the payload you want to create. Be specific for the best results.
- Example 1:
A simple HTML page with a login form. - Example 2:
A python3 reverse shell to 10.10.15.2 on port 9001.
- Example 1:
- The AI will generate the content and filename for you. Review and click Create File to host it.
You can also host a file manually without using the AI.
- Filename: Enter the path where the file will be accessible (e.g.,
payload.sh,index.html). - Content: Paste or type the content of the file.
- Host: Click the Create File button. The file will now be available at
https://attackserver.com/your-filename.
The Access Log page functions like a collaborator client in a security engagement. It shows a real-time log of every visitor who accesses a file you are hosting. Each entry includes:
- Timestamp
- IP Address
- Method
- Source IP Address
