Update powershell_commands.md

This commit is contained in:
Omar Santos 2019-12-26 21:11:30 -05:00 committed by GitHub
parent b87afb96a3
commit c9f6dd7554
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,7 @@
| `1..255 \| % {echo "10.1.2.$_"; ping -n 1 -w 100 10.1.2.$_ | SelectString ttl}` | Launches a ping sweep to the 10.1.2.0/24 network |
| `1..1024 \| % {echo ((new-object Net.Sockets.TcpClient).Connect("10.1.2.3",$_))"Port $_ is open!"} 2>$null` | Launches a port scan to the 10.1.2.3 host (scans for ports 1 through 1024) |
| `Get-HotFix` | Obtains a list of all installed hotfixes |
| ```cd HKLM:
\ls``` | Navigates the Windows registry |
| ```Get-NetFirewallRule all ``` ```New-NetFirewallRule -Action Allow -DisplayName LetMeIn-RemoteAddress 10.6.6.6 | Lists and modifies the Windows firewall rules``` |
| ```cd HKLM: ls``` | Navigates the Windows registry |
| ```Get-NetFirewallRule all
New-NetFirewallRule -Action Allow -DisplayName LetMeIn-RemoteAddress 10.6.6.6 | Lists and modifies the Windows firewall rules``` |
| `Get-Command` | Gets a list of all available commands |