Skip to content

Instantly share code, notes, and snippets.

@akarayn
akarayn / root.sh
Created February 21, 2023 06:22
"Root" via dirtyc0w privilege escalation exploit (automation script) / Android (32 bit)
#!/bin/bash
# Give the usual warning.
clear;
echo "[INFO] Automated Android root script started.\n\n[WARN] Exploit requires sdk module \"NDK\".\nFor more information, visit the installation guide @ https://goo.gl/E2nmLF\n[INFO] Press Ctrl+C to stop the script if you need to install the NDK module. Waiting 10 seconds...";
sleep 10;
clear;
# Download and extract exploit files.
echo "[INFO] Downloading exploit files from GitHub...";
@akarayn
akarayn / send_sms_via_at.at
Created February 21, 2023 06:21
Send sms via AT
// Script-send_sms_text_mode.at
// Send SMS in Text Mode via /dev/tty[A-Z]CM[0-9]
//List of supported responses
AT+CMGF=?
// WAIT for 1 sec
WAIT=1
@akarayn
akarayn / iptables-template.sh
Created February 21, 2023 06:21
Very good Template for iptables
#!/bin/sh
#------------------------------------------------------------------------------
# File: fw_laptop
# Author: Uwe Hermann <uwe@hermann-uwe.de>
# URL: http://www.hermann-uwe.de/files/fw_laptop
# License: GNU GPL (version 2, or any later version).
# $Id: fw_laptop 515 2006-05-21 17:13:43Z uh1763 $
#------------------------------------------------------------------------------
# A firewall script intended to be used on workstations / laptops. It basically