Skip to content

Instantly share code, notes, and snippets.

@suuhm
suuhm / win_424_proxy.bat
Created February 20, 2024 08:29
Windows Setup Portforwarding 4to4 Proxy Tunnel
@echo off
SETLOCAL ENABLEEXTENSIONS
REM 424_tunnel script (c) 2024 suuhm
REM netsh interface ipv4 set interface "Ethernet" forwarding=enabled
REM netsh interface portproxy add v4tov4 listenaddress=lokal_IP listenport=9999 connectaddress=target_IP connectport=80
REM netsh interface portproxy show all
@suuhm
suuhm / hashcat_md5_crack.sh
Created February 7, 2024 00:19
Extract md5 hashes in text and use hashcat to crack with mask attack
#!/bin/bash
# hashes only:
#grep -Eo "\b[a-f0-9]{32}\b" hashes.txt > md5-hashes.txt
# Mails:Hashes extract from your textfile:
sed -nE "s/.*'([a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,})'.*'([a-f0-9]{32})'.*/\1:\2/p" your_text_file.txt > mail-md5.txt
# Crack hashes with usernames:
hashcat -a0 -m0 --username --potfile-path mail_md5.potfile mail-md5.txt /usr/share/wordlists/rockyou.txt.gz
@suuhm
suuhm / WLMS-Disabler.bat
Last active October 22, 2025 07:13
WLMS-Disabler : Disable and prevent the forced Shutdown on not licensed Windows Server and Client , Win 8 to win 11 , Server 2022 supported / https://github.com/suuhm/Powershell-Scripts-Collection
@echo off
SET mypath=%~dp0
echo %mypath:~0,-1%
pushd %~dp0
echo\
REM popd
REM !!! YOU NEED PSEXEC !!!
REM DOWNLOAD zip package incl psexec:
@suuhm
suuhm / virtualenv_pip_python.sh
Created January 9, 2024 16:13
PIP update / set virtual enviroment and get requierement.txt and install it
# PIP / VIRTUALENV
# ----------------
python -m pip install --upgrade pip || \
#
apt update && \
apt install python-pip python3-pip python3-virtualenv
# OLD: ( pip install virualenv )
virtualenv [--python=python3] project-XYZ
cd project-XYZ ; source bin/activate
#
@suuhm
suuhm / setup_openwrt_lxc_container_proxmox.sh
Last active March 10, 2026 20:41
Setup OpenWrt 23.05 LXC Container in Proxmox - Updated Version: 2024
#!/bin/bash
# Setting Up OpenWRT on a Virtual Machine with Proxmox
# Based on: https://community.bigbeartechworld.com/t/setting-up-openwrt-on-a-virtual-machine-with-proxmox/257
# Set your wished version:
export VER="23.05"
export ARCH="amd64"
export INDEX_URL="https://images.linuxcontainers.org/images/openwrt/$VER/$ARCH/default"
#export BUILDDATE=$(date -d "yesterday" '+%Y%m%d')
@suuhm
suuhm / ssh_bruteforce_hydra_quick.sh
Created January 6, 2024 15:30
Usage: ssh_bruteforce_hydra_quick.sh --host <IP> [PORT] [USER] using kali wordlist of john
#!/bin/bash
#
[ "$1" != "--host" ] && echo "Usage: $0 --host <IP> [PORT] [USER]" && exit 1 || IP=$2
[ -z $3 ] && PRT=22 || PRT=$3
[ -z $4 ] && USR="root" || USR=$4
echo "SSH BRUTE on $IP:$PRT - User: ($USR) ";echo "----------------------------------------------------------------";echo; sleep 2
hydra $IP -s PRT -o "$IP-ssh-brute.txt" -l $USR -P /usr/share/wordlists/john.lst -e nsr -u -f -t 16 ssh
#
@suuhm
suuhm / install_powershell.sh
Created January 5, 2024 11:48
powershell install on linux ubuntu / suse / fedora / debian / kali
wget https://github.com/PowerShell/PowerShell/releases/download/v7.2.17/powershell-lts_7.2.17-1.deb_amd64.deb
#suse fedora
#rpm -Uvh powershell-lts_7.2.17-1.deb_amd64.deb
dpkg -i powershell-lts_7.2.17-1.deb_amd64.deb
pwsh
@suuhm
suuhm / get_mcast_bcast.sh
Last active October 23, 2023 18:21
Oneliner - Get a list of all joined multicast/broadcast members
# Just enter the wished device you wanr to list your broadcast and multicast member ip's
D=eth0 ; B=$(ip a s dev $D | grep -E "^.*i.*brd \d" | cut -d ' ' -f8); echo 0 >/proc/sys/net/ipv4/icmp_echo_ignore_broadcasts; F=/tmp/mcout; rm $F; clear; while true; do ping $B -W2 -c2 | grep from | cut -d " " -f4 | cut -d ":" -f1 >> $F; ping 224.0.0.1 -W2 -c2 | grep from | cut -d " " -f4 | cut -d ":" -f1 >> $F; clear; echo "BROAD/MULTICAST [$B] (END CTRL^C)"; echo; cat $F | sort -u; sleep 2; done
@suuhm
suuhm / github_repo_release_downloader.sh
Last active October 13, 2023 13:44
Script for Downloading/ Listing all (or one) files from the latest github realeases of a specific repo
#! /bin/bash
# github_repo_release_downloader.sh (c) suuhm - 2023
# --------------------------------------------------
# Download/list all wished files in a Github repository:
#
#
# Options:
# ./github_repo_release_downloader.sh
# --list : List all files in Repo
@suuhm
suuhm / openwrt-arp-spoofer-2.sh
Created October 8, 2023 13:30
OpenWRT - ARP Spoofing and setup SSLStrip
# SET PROXY-ARP
# -------------
echo 1 > /proc/sys/net/ipv4/conf/eth0.1/proxy_arp
# Check with ARPPING
# ------------------
apt install arping
arping 203.0.113.114 -i eth0