Run like
> decode_saml_request.sh sample_data
Run like
> decode_saml_request.sh sample_data
| #!/bin/bash | |
| # | |
| # WordPress Setup Attack Script | |
| # | |
| # Created by Stephen Rees-Carter (https://stephenreescarter.net/) | |
| # | |
| # This script injects a remote shell into a fresh copy of WordPress that hasn't been set up yet. | |
| # Once the shells have been set up, it removes the config file with the custom database connection to reset the site back to a fresh install. | |
| # |
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl https://www.npmjs.org/install.sh | sh |
| #!/usr/bin/env node | |
| var program = require('commander'); | |
| var request = require('request'); | |
| var chalk = require('chalk'); | |
| program | |
| .version('0.0.1') | |
| .usage('[options] <keywords>') | |
| .option('-o, --owner [name]', 'Filter by the repositories owner') |
| var insertCSS = require('insert-css') | |
| var domify = require('domify') | |
| var css = ".button { display: inline-block; font-family: Arial; background-color: papayawhip; padding: 10px; border: 1px solid salmon; }" | |
| var html = '<div class="button">BUTTON</div>' | |
| // inserts new <style> tag into the <head> | |
| insertCSS(css) | |
| // append the html elements that domify returns to the <body> |