Skip to content

Instantly share code, notes, and snippets.

@osm1n
osm1n / cheatsheet.ps1
Created June 10, 2021 15:40 — forked from pcgeek86/cheatsheet.ps1
PowerShell Cheat Sheet / Quick Reference
Get-Command # Retrieves a list of all the commands available to PowerShell
# (native binaries in $env:PATH + cmdlets / functions from PowerShell modules)
Get-Command -Module Microsoft* # Retrieves a list of all the PowerShell commands exported from modules named Microsoft*
Get-Command -Name *item # Retrieves a list of all commands (native binaries + PowerShell commands) ending in "item"
Get-Help # Get all help topics
Get-Help -Name about_Variables # Get help for a specific about_* topic (aka. man page)
Get-Help -Name Get-Command # Get help for a specific PowerShell function
Get-Help -Name Get-Command -Parameter Module # Get help for a specific parameter on a specific command
apt-get upgrade -y && apt-get dist-upgrade -y
apt-get install -y firefox-esr-l10n-ja flashplugin-nonfree
systemctl start postgresql
systemctl enable postgresql
#Enable Metasploit log
apt-get install -y metasploit-framework
msfdb init
#The Backdoor Factory
@osm1n
osm1n / web-servers.md
Created January 19, 2021 21:21 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000