This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Create Powershell Profile | |
New-Item -Path $profile -ItemType File -Force | |
#Installing Vim movement | |
Get-Module PSReadLine -ListAvailable | |
Install-Module PSReadLine -Scope CurrentUser | |
Set-PSReadLineOption -EditMode Vi | |
notepad $profile | |
#Referencing environment variables |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gdbserver --wrapper env 'LD_PRELOAD=./libefence.so' -- :1234 ./test-program |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# passive | |
amass enum --passive -d example.com -o example.com.subs | |
# active | |
amass enum -src -ip -brute -min-for-recursive 2 -d example.com -o example.com.subs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ip -f inet6 addr show eth0 | sed -En -e 's/.*inet6 ([0-9a-fA-F:]+).*/\1/p' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ts is in moreutils | |
command | ts '[%Y-%m-%d %H:%M:%S]' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo sysctl kern.hostname=localhost | |
$ sudo hostname -s localhost | |
$ sudo scutil --set HostName localhost | |
$ sudo scutil --set LocalHostName localhost | |
$ sudo scutil --set ComputerName localhost |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (op, code) in zip(s[0::2], s[1::2]): | |
print op, code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#change interrupt key to ctrl-] | |
stty intr ^] | |
#now ctrl-c will be passed through to guest |
NewerOlder