Created
April 23, 2019 03:58
-
-
Save nbk2000/5321628d3567956616a523df6f8953d4 to your computer and use it in GitHub Desktop.
Nginx Config for sic by @d0nutptr
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
# Nginx Example Config for sic (Sequential Import Chaining) tool by @d0nutptr | |
# | |
# Should let Nginx terminate SSL/TLS connections for sic | |
# assuming the sic tool is being run something like this: | |
# | |
# ./sic -p 3000 --ph "https://a.attacker.com" --ch "https://b.attacker.com" -t template_file | |
# | |
# NOTE: If you don't have a wildcard certificate, then you'll need to obtain | |
# a certificate for the hostname used for the Polling (ph) and Callback (ch) hosts | |
# | |
# Config written by @nbk_2000 22-APR-2019 | |
server { | |
listen 80 default_server; | |
listen 443 ssl default_server; | |
root /var/www/html; | |
index index.html index.php; | |
server_name _ ~^(?<sub>.+)\.attacker\.com$; | |
location ~* \/(polling|callback|staging).* { | |
proxy_pass http://127.0.0.1:3000; | |
proxy_read_timeout 3600; | |
} | |
ssl_certificate /path/to/your/wildcard/cert/goes/here/fullchain.pem; | |
ssl_certificate_key /path/to/your/wildcard/cert/goes/here/privkey.pem; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment