mirror of
https://github.com/The-Art-of-Hacking/h4cker.git
synced 2024-12-18 10:56:09 +00:00
Update powershell_commands.md
This commit is contained in:
parent
f7fd42b92f
commit
b87afb96a3
@ -8,9 +8,9 @@
|
|||||||
| `Get-Location` | Gets the present directory |
|
| `Get-Location` | Gets the present directory |
|
||||||
| `Get-Process` | Gets a process listing |
|
| `Get-Process` | Gets a process listing |
|
||||||
| `Get-Service` | Gets a service listing |
|
| `Get-Service` | Gets a service listing |
|
||||||
| `Get-Process | Export-Csvprocs.csv` | Exports output to a comma-separated values (CSV) file |
|
| `Get-Process \| Export-Csvprocs.csv` | Exports output to a comma-separated values (CSV) file |
|
||||||
| `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..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) |
|
| `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 |
|
| `Get-HotFix` | Obtains a list of all installed hotfixes |
|
||||||
| ```cd HKLM:
|
| ```cd HKLM:
|
||||||
\ls``` | Navigates the Windows registry |
|
\ls``` | Navigates the Windows registry |
|
||||||
|
Loading…
Reference in New Issue
Block a user