Powershell - Get/Set-ExecutionPolicy
Get-ExecutionPolicy -List Lists current ExecutionPolicy settings Set-ExecutionPolicy Undefined -Scope LocalMachine Sets ExecutionPolicy to Undefined Policies AllSigned Scripts ca...
Get-ExecutionPolicy -List Lists current ExecutionPolicy settings Set-ExecutionPolicy Undefined -Scope LocalMachine Sets ExecutionPolicy to Undefined Policies AllSigned Scripts ca...
Common Commands Initial Network Scan Real World Environment Scan (less noisy): nmap -T1 -A -v -Pn -oN nmap.txt X.X.X.X Lab Environment Scan (very noisy): nmap -T5 -A -v -Pn -oN nmap.txt X.X.X...
Used for Directory Searching Websites Includes: Excluded HTTP Error Codes Extension File (will need to point this to one you have) Output File Proxy (BurpSuite) feroxbuster -u http://X...
Basic Network Troubleshooting for Workstation/Server Note If troubleshooting on server, MAKE SURE YOU HAVE PERMISSION TO REBOOT BEFORE DOING SO (could cause issues with others users being logged i...
Disable Windows Commands through WSL Distro Create the following file if not already created: sudo nano /etc/wsl.conf Add the following to wsl.conf: [interop] en...
Clear Terminal History PATH: C:\Users\YOURUSERNAME\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadLine\ConsoleHost_history.txt Create PROFILE PATH (reference output of echo $PROFILE) ...
Ram Clear Cache Create a new shortcut and enter the following path: %windir%\system32\rundll32.exe advapi32.dll,ProcessIdleTasks Mini-Tray Clear Duplicates (Batch) ...
Format Drive (if unable to find valid Drive/Disk) Open Command Prompt and type: diskpart list disk select disk NUMOFDISK NOTE: BELOW THIS POINT, THESE COMMANDS WILL WIPE ...
If you run into suspend/sleep/black screen issues Set to Startup xset dpms 0 0 0 && xset s noblank && xset s off Disable ‘splash’ on GRUB Navigate to /etc/default/grub Remove...
# EVERYTHING BELOW HERE IS CUSTOM/USER MADE # TAMPER WITH EVERYTHING ABOVE AT YOUR OWN RISK # Start fastfetch #fastfetch # Clears Bash/Zsh History #echo "" > ~/.bash_history && \ #echo...