Skip to content

Instantly share code, notes, and snippets.

@sumgr0
Created May 29, 2020 19:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sumgr0/bb664ddfa7f492acb79676f93818860a to your computer and use it in GitHub Desktop.
Save sumgr0/bb664ddfa7f492acb79676f93818860a to your computer and use it in GitHub Desktop.
#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