-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create https_server_for_exfiltration_xss.toml
added entry
- Loading branch information
1 parent
8e0fbaa
commit 1d4657c
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
title = "Quickly setting up a HTTPS server for data exfiltration" | ||
description = "Prevent browsers from blocking requests to your host when exfiltrating data via XSS" | ||
tags = ["web", "xss", "linux", "xss"] | ||
source = [] | ||
|
||
[[data]] | ||
description = "Modern browsers follow the mixed content blocking policy, which stops loading HTTP content on HTTPS pages to protect security. With stunnel you can quickly add TLS functionality to your webserver and be able to receive connections from scripts running on HTTPS websites." | ||
language = "bash" | ||
command = """pacman -S stunnel glibc lib32-glibc # or apt, or others depending on distro | ||
cp /etc/stunnel/stunnel.conf-sample /etc/stunnel/stunnel.conf | ||
openssl req -new -x509 -days 365 -nodes -out /etc/stunnel/stunnel.pem -keyout /etc/stunnel/stunnel.pem | ||
python -m http.server 8080 | ||
# or, alternatively, php -S 0.0.0.0:8080 | ||
sudo stunnel3 -d 443 -r 8080 -p /etc/stunnel/stunnel.pem""" |