Created
May 29, 2020 19:29
-
-
Save sumgr0/bb664ddfa7f492acb79676f93818860a to your computer and use it in GitHub Desktop.
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
#cloud-config | |
packages: | |
- nginx | |
writehomepage: | |
- &write_homepage | | |
cat > /var/www/html/index.html <<EOF | |
<html> | |
<header><title>Welcome!</title></header> | |
<body> | |
<h1>The webpage is currently under maintanence, kindly visit later! </h1> | |
</body> | |
</html> | |
EOF | |
writepoc: | |
- &write_poc | | |
cat > /var/www/html/sumgr0.html <<EOF | |
<html> | |
<header><title>POC!</title></header> | |
<body> | |
<h1>Welcome, check the page-source</h1> | |
<! PoC of sub-domain takeover by @sumgr0!> | |
</html> | |
EOF | |
runcmd: | |
- [ sh, -c, *write_homepage ] | |
- [ sh, -c, *write_poc ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment