Skip to content

Instantly share code, notes, and snippets.

View malwaremily's full-sized avatar

Emily Eubanks malwaremily

View GitHub Profile
@malwaremily
malwaremily / redteam1liners.md
Last active October 16, 2021 00:41
my fav red team 1liners
@malwaremily
malwaremily / .vimrc
Created September 25, 2021 16:34
.vimrc config
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"
" ██╗ ██╗██╗███╗ ███╗██████╗ ██████╗
" ██║ ██║██║████╗ ████║██╔══██╗██╔════╝
" ██║ ██║██║██╔████╔██║██████╔╝██║
" ╚██╗ ██╔╝██║██║╚██╔╝██║██╔══██╗██║
" ╚████╔╝ ██║██║ ╚═╝ ██║██║ ██║╚██████╗
" ╚═══╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝
"
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
@malwaremily
malwaremily / git_cheatsheet.md
Last active September 18, 2021 18:02
emily's git cheatsheet

HOW TO ROLL BACK COMMIT

Find the commit you want to roll back to

git log

Tell git which commit you'd like to reset your local repo to

git revert --no-commit 1e58b1d7... HEAD
git commit
@malwaremily
malwaremily / vim-cheatsheet.md
Last active September 26, 2021 04:59
Vim Cheatsheet

MODIFY FILE

Find all foo and replace with bar

:%s/foo/bar/g

COPY A LINE TO ANOTHER LINE

yy - Copy line into buffer

p - Paste the line someplace else

OPEN/CLOSE VIM FOLDS

@malwaremily
malwaremily / nasapaul.txt
Last active February 23, 2021 22:19
nasa paul hittin the honeypot
141.98.81.154
141.98.81.154
142.93.216.97
188.166.106.32
141.98.81.154
141.98.81.154
203.195.144.157
108.16.0.72
161.35.57.121
178.62.79.64
@malwaremily
malwaremily / security_news_2021.md
Last active October 16, 2021 19:11
Security News 2021
@malwaremily
malwaremily / analyze.sh
Last active March 4, 2021 04:47
Manual HoneyTrap Log Parser
#!/bin/bash
#
# Manual HoneyTrap Log Parser
#
# To use this program run it and specify a file:
# analyze.sh infile.txt
# Source IP
egrep -ao 'source-ip=\b((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b' $1 >> sourceip.txt
sed 's/.*=//' sourceip.txt >> src
@malwaremily
malwaremily / quickregex.md
Last active January 25, 2021 02:35
Regex Statements
Grep for IP addresses
grep -aoE "source-ip=\b((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b"
@malwaremily
malwaremily / massCompress.sh
Created July 8, 2020 17:24
Batched compress videos files in directory using ffmpeg
# See this stackoverflow discussion: https://unix.stackexchange.com/questions/28803/how-can-i-reduce-a-videos-size-with-ffmpeg
mkdir compressed
for file in *.mp4; do ffmpeg -i "$file" -vcodec libx265 -crf 28 "compressed/${file%.mp4}.jpg"; done
@malwaremily
malwaremily / dockerGuide.md
Last active April 23, 2020 00:26
Docker frequently used cmd guide

View Existing Docker Containers

docker ps -a

Start a Docker Container

docker start <IMAGE_ID>

Stop a Docker Container

docker kill <IMAGE_ID>