File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments