Skip to content

Instantly share code, notes, and snippets.

Avatar
🏴‍☠️

wuseman wuseman

🏴‍☠️
View GitHub Profile
@wuseman
wuseman / wireguard-fw.sh
Created August 1, 2023 01:38
Firewall rules for a WireGuard VPN setup
View wireguard-fw.sh
#!/bin/sh
iptables -A WGSI -p udp --dport 51820 -j ACCEPT
ip6tables -A WGSI -p udp --dport 51820 -j ACCEPT
iptables -A WGSI -i wgs1 -j ACCEPT
ip6tables -A WGSI -i wgs1 -j ACCEPT
iptables -I WGSF -i wgs1 -j ACCEPT
iptables -I WGSF -o wgs1 -j ACCEPT
ip6tables -I WGSF -i wgs1 -j ACCEPT
ip6tables -I WGSF -o wgs1 -j ACCEPT
@wuseman
wuseman / README.md
Created July 14, 2023 18:37
Input Swipe/Touch/Tap for Android Debug Bridge (part of https://github.com/wuseman/adb-shell)
View README.md

This cheatsheet provides an illustration of the screen layout, highlighting the important touch points on an Android device. It includes examples of using the input tap command in ADB to simulate taps at specific coordinates. The input tap command allows you to interact with the device's screen programmatically, enabling automated testing and UI interactions.

Origin (0, 0)
+----------------------------------+
@wuseman
wuseman / weechat_theme.txt
Created May 10, 2023 08:43 — forked from fats/weechat_theme.txt
[weechat] The Theme™
View weechat_theme.txt
# requires: 256 color terminal
/script install iset.pl
/script install buffers.pl
/script install colorize_nicks.py
/set weechat.look.buffer_notify_default message
/set weechat.look.color_nick_offline on
/set weechat.look.prefix_action " •"
/set weechat.look.prefix_join "▬▶"
@wuseman
wuseman / lftp.rc
Created April 27, 2023 06:35
Example lftp.rc configuration with detailed explained
View lftp.rc
########## SETTINGS
# On startup, lftp executes ~/.lftprc and ~/.lftp/rc. You can place aliases and 'set' commands
# there. Some people prefer to see full protocol debug, use 'debug' to turn the debug on.
# Certain commands and settings take a time interval parameter. It has the format Nx[Nx...], where N is time amount
# (floating point) and x is time unit: d - days, h - hours, m - minutes, s - seconds. Default unit is second. E.g.
# 5h30m or 5.5h. Also the interval can be 'infinity', 'inf', 'never', 'forever' - it means infinite interval. E.g.
# 'sleep forever' or 'set dns:cache-expire never'.
@wuseman
wuseman / Sagemcom_F@st_5370e.nmap.txt
Created March 9, 2023 02:51
Sagemcom_F@st_5370e.nmap.txt
View Sagemcom_F@st_5370e.nmap.txt
PORT STATE SERVICE REASON VERSION
22/tcp open ssh syn-ack ttl 55 Dropbear sshd 2012.55 (protocol 2.0)
| ssh-hostkey:
| 1024 3e323787c2ffe0f9d2341f312e17ebff (DSA)
| ssh-dss AAAAB3NzaC1kc3MAAACBAIbChJDVK49L2eH6sjEipIfgeJTaevhExQuu1x61tirrzXBGQCwlHbP+2/M8wv4QG/HEKXr+hhPkSYFeL+foLab7x2ZIIL/Rngj303xlQ9AVK/FlNyJBe8pPodtNn2itxgLnhbBeq/7q/79M9Xjrf1XXwKPEZp1UXtX8RJhqottnAAAAFQDpRpOJSVRfXEPMvX8798Jf6+prwQAAAIAOwHxKwTnJeMjqskIRNbwGap7rEqnPB2H6VjT/PQWLFhfwkQ++dbLxpBr7qV3cnUDMxso3tudVWdu4Bj/a5jmRrHQn02xWQfmAA6HPTN8LN1jQL1R4xDEIbWvwsGl+IfUFdJ2FgnAPceqUGsfBSc9j7sReBBC/TsTimHkyIZLCmAAAAIBarV5gjdCvzpbyD8OvrQppwdo3dbwcm4U2eX1YOG+xEs2Zb5q1hbrJ2fXsjL84d96DtII/tDWBwr4TdpDTiUV7LXpPjv8Z/JnuTcEWeDqHVzAsINGTLsNdvTOUgNjqM8510LFL7IHd7EgIyETiUTmoyoANJkL4XV9JcEQhC84A8w==
| 1040 44d66e3e7e9dfaa6026a27b8d7cceb60 (RSA)
|_ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgwCBl2loYGQ1mOG18KhRMZ2UmeumF4YIQXeQz9DgK5qd1IBLnM+RL4wVeIMR8ZSYxgmvlTvnenqi/+4Xvk9CZt6gRKZAjpR/dPdgJ0ahNYDBOZ14CGpcSQUN3A4MfdCAz8LeVIo84X/Y5E7jVOn4iLRus3Fo1WY7OE
@wuseman
wuseman / 22.04
Created February 14, 2023 04:15
Ubuntu 22.04 LTS (Jammy Jellyfish) complete sources.list
View 22.04
deb http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
@wuseman
wuseman / lftp.rc
Created September 13, 2022 19:13
lftp.rc
View lftp.rc
########## SETTINGS
# On startup, lftp executes ~/.lftprc and ~/.lftp/rc. You can place aliases and 'set' commands
# there. Some people prefer to see full protocol debug, use 'debug' to turn the debug on.
# Certain commands and settings take a time interval parameter. It has the format Nx[Nx...], where N is time amount
# (floating point) and x is time unit: d - days, h - hours, m - minutes, s - seconds. Default unit is second. E.g.
# 5h30m or 5.5h. Also the interval can be 'infinity', 'inf', 'never', 'forever' - it means infinite interval. E.g.
# 'sleep forever' or 'set dns:cache-expire never'.
@wuseman
wuseman / send_sms_via_at.at
Created August 25, 2022 15:37
Send sms via AT
View send_sms_via_at.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
@wuseman
wuseman / root.sh
Created August 20, 2022 07:49 — forked from Arinerron/root.sh
"Root" via dirtyc0w privilege escalation exploit (automation script) / Android (32 bit)
View root.sh
#!/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...";