Skip to content

Commit 0bad12e

Browse files
authored
Included example nginx config
Thanks nbk_2000!
1 parent 2caddfa commit 0bad12e

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

example_nginx.conf

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Nginx Example Config for sic (Sequential Import Chaining) tool by @d0nutptr
2+
#
3+
# Should let Nginx terminate SSL/TLS connections for sic
4+
# assuming the sic tool is being run something like this:
5+
#
6+
# ./sic -p 3000 --ph "https://a.attacker.com" --ch "https://b.attacker.com" -t template_file
7+
#
8+
# NOTE: If you don't have a wildcard certificate, then you'll need to obtain
9+
# a certificate for the hostname used for the Polling (ph) and Callback (ch) hosts
10+
#
11+
# Config written by @nbk_2000 22-APR-2019
12+
13+
server {
14+
15+
listen 80 default_server;
16+
listen 443 ssl default_server;
17+
18+
root /var/www/html;
19+
20+
index index.html index.php;
21+
22+
server_name _ ~^(?<sub>.+)\.attacker\.com$;
23+
24+
location ~* \/(polling|callback|staging).* {
25+
proxy_pass http://127.0.0.1:3000;
26+
proxy_read_timeout 3600;
27+
}
28+
29+
ssl_certificate /path/to/your/wildcard/cert/goes/here/fullchain.pem;
30+
ssl_certificate_key /path/to/your/wildcard/cert/goes/here/privkey.pem;
31+
}

0 commit comments

Comments
 (0)