Skip to content

Instantly share code, notes, and snippets.

@kleo
kleo / android-ssh-server
Last active April 4, 2023 02:31
GNURoot Debian Jessie Android SSH Server
# GNURoot Debian Jessie Android SSH Server
# Google Play Store: https://play.google.com/store/apps/details?id=com.gnuroot.debian
# Github: https://github.com/corbinlc/GNURootDebian
# change root password
passwd
apt update
apt install -y nano
# Copy and paste this into
nano ~/.inputrc
# Completion case-insensitive
set completion-ignore-case On
# Tab to cycle through all possible completions
TAB: menu-complete
# Shift + tab to cycle backwards
@kleo
kleo / raspberrypi-usb-tether
Created November 13, 2016 15:26
Raspberry Pi USB Tether
#modify interfaces file
sudo nano /etc/network/interfaces
auto usb0
allow-hotplug usb0
iface usb0 inet static
address 192.168.42.10
netmask 255.255.255.0
network 192.168.42.0
broadcast 192.168.42.255
@kleo
kleo / android-nginx-server
Created November 14, 2016 09:37
GNURoot Debian Jessie Android NGINX Web Server with PHP 5
#install nginx
apt-get install nginx
#install php5 dependencies
apt-get install php5-fpm php5-cli php5-mysql
or apt-get build-dep php5
#modify /etc/nginx/sites-available/default
Port 8080
@kleo
kleo / charset.lst
Last active February 4, 2024 20:51
hex-lower = [0123456789abcdef]
hex-upper = [0123456789ABCDEF]
numeric = [0123456789]
numeric-space = [0123456789 ]
symbols14 = [!@#$%^&*()-_+=]
symbols14-space = [!@#$%^&*()-_+= ]
symbols-all = [!@#$%^&*()-_+=~`[]{}|\:;"'<>,.?/]
whoami /groups | findstr /b BUILTIN\Administrators | findstr /c:"Enabled group" && goto :isadministrator
@kleo
kleo / analyze.sh
Created April 17, 2017 23:30
Wifi Pineapple Analyze OUI
#!/bin/bash
# Darren Kitchen - https://forums.hak5.org/index.php?/topic/36913-is-analyzesh-mentioned-at-defcon-available/&do=findComment&comment=268226
if [ -z "$1" ]; then
echo "Usage: analyze.sh input_file output_file"; exit
fi
if [ ! -f oui-small.txt ]
then
echo "Downloading OUI Database"
wget http://standards.ieee.org/regauth/oui/oui.txt
echo "Database downloaded. Fixing up oui.txt"
@kleo
kleo / wget.bat
Last active August 10, 2017 01:31 — forked from parzonka/call-wget-example.bat
wget for windows cmd (credits: https://superuser.com/a/536400/)
cscript /nologo wget.js http://example.com
@kleo
kleo / macchanger
Last active August 6, 2017 23:20
macchanger on boot (credits: https://askubuntu.com/a/862173/)
# /etc/cron.d/macchanger
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
@reboot root sleep 15
@reboot root macchanger -r eth0
@kleo
kleo / timer.bat
Created August 6, 2017 23:19
Windows batch file timer (credits: https://stackoverflow.com/a/9935540/)
@echo off
setlocal EnableDelayedExpansion
set "startTime=%time: =0%"
set /P "=Any process here..."
set "endTime=%time: =0%"