Skip to content

Instantly share code, notes, and snippets.

#Accepts hostname or IP
#Runs Powershell netsh with and the ethernet types / IP addresses
#Stops the trace after X time
#Waits for the command to save the file and exit
#Copies file back to analyst machine
#removes all trace of the packet capture file
$IpAddress = (Get-NetIPAddress | Where-Object {($_.PrefixOrigin -eq "Dhcp") -and ($_.InterfaceAlias -eq "Local Area Connection")}).IpAddress
@plentz
plentz / nginx.conf
Last active July 30, 2024 17:13
Best nginx configuration for improved security(and performance)
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active July 31, 2024 13:08
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname