This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import http.server | |
| import socketserver | |
| PORT = 8000 | |
| class MyRequestHandler(http.server.SimpleHTTPRequestHandler): | |
| def do_GET(self): | |
| # Set the Content Security Policy header | |
| self.send_response(200) | |
| self.send_header("Content-Type", "text/html") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import http.server | |
| import socketserver | |
| import ssl | |
| # Run: openssl req -new -x509 -days 365 -nodes -out server.crt -keyout server.key | |
| PORT = 8000 | |
| class MyRequestHandler(http.server.SimpleHTTPRequestHandler): | |
| def do_GET(self): | |
| # Set the response code and headers | |
| self.send_response(200) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Automated setup script for XSS Canary Callback server | |
| # Define color variables | |
| RED='\033[0;31m' | |
| GREEN='\033[0;32m' | |
| YELLOW='\033[1;33m' | |
| BLUE='\033[0;34m' | |
| NC='\033[0m' # No Color |
OlderNewer