Skip to content

Instantly share code, notes, and snippets.

View richlamdev's full-sized avatar

Richard Lam richlamdev

View GitHub Profile
@richlamdev
richlamdev / filetransfers.txt
Created July 26, 2020 15:50
CLI File Transfers
SMB
#git clone https://github.com/SecureAuthCorp/impacket.git
#cd impacket
#python setup.py install
cp /usr/share/doc/python3-impacket/examples/smbserver.py /tftp
python3 smbserver.py share-name /tftp
From Linux:
smbclient -L <ip of attacking machine>
@richlamdev
richlamdev / temporary mailboxes.txt
Created July 26, 2020 18:31
termporary mailboxes
Temporary mailbox
https://www.guerrillamail.com/en/
https://10minutemail.com
https://www.trash-mail.com/inbox/
https://www.mailinator.com
http://www.yopmail.com/en
https://generator.email
https://en.getairmail.com
http://www.throwawaymail.com/en
@richlamdev
richlamdev / wordlist sources.txt
Created July 26, 2020 18:34
wordlist sources
crackstation
skullsecurity
seclists
weakpass
probable-wordlists (github)
@richlamdev
richlamdev / ghostscript.txt
Last active December 1, 2020 05:23
ghostscript notes
GHOSTSCRIPT - CONCATENTATE PAGES
#with compressions (default)
#combines in1.pdf and in2.pdf into out.pdf.
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=out.pdf in1.pdf in2.pdf
#without compression:
#combines in1.pdf and in2.pdf into out.pdf.
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress -sOutputFile=out.pdf in1.pdf in2.pdf
@richlamdev
richlamdev / ssh_tunnel.txt
Created July 26, 2020 19:23
SSH Tunnel Example
#on remote server
python3 -m http.server 25000
#on local client
ssh -L 8000:localhost:25000 id@remote -N
Open browser and navigate to http://localhost:8000
@richlamdev
richlamdev / hash lookups
Last active February 24, 2024 07:57
Hash lookups online
LIST OF WEBSITES DEHASH / HASH ONLINE
https://crackstation.net/
http://crypo.in.ua/tools/
http://www.md5decrypter.co.uk/
http://www.md5this.com/index.php
http://md5hack.com/
http://www.miraclesalad.com/webtools/md5.php
http://hash.online-convert.com/md5-generator
http://md5decryption.com/
@richlamdev
richlamdev / raspberrypi.txt
Created December 3, 2020 01:50
raspberry pi random notes
INSTALL FIRST
sudo apt update
sudo apt dist-upgrade -y
sudo apt install vim ufw tmux git tcpdump nmap rsyslog-gnutls
ADDUSER with same permissions as pi user
sudo adduser <username>
sudo usermod -aG adm,dialout,cdrom,sudo,audio,video,plugdev,games,users,netdev,input,i2c,spi <username>
sudo userdel -r pi
@richlamdev
richlamdev / ubuntu.txt
Created December 3, 2020 01:58
ubuntu random notes
INITIAL PACKAGES TO INSTALL
sudo apt update
sudo apt install vim git ansible sshpass
DNS CONFIG
/etc/systemd/resolved.conf
DNS=192.168.x.x 192.168.x.x
(space delimited/separation between DNS server list)
sudo ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
sudo systemctl restart systemd-resolved.service
@richlamdev
richlamdev / freebsd.txt
Created December 3, 2020 02:13
freebsd random notes
CSH key bindings
/home/homedir/.cshrc
bindkey "^R" i-search-back
bindkey "^S" i-search-fwd
alias ls ls -G
GRUB2 - Multiboot
menuentry "FreeBSD 11.0 x64" --class freebsd --class bsd --class os {
insmod ufs2
insmod bsd
@richlamdev
richlamdev / openbsd.txt
Created December 3, 2020 02:14
openbsd random notes
ENABLE USER TO SU
sudo user mod -G wheel <username>
UNBOUND fixes
chown _unbound:wheel /var/unbound/etc
chmod 755 /var/unbound/etc
UPDATE KERNEL
syspatch