Skip to content

Commit 4b835cb

Browse files
Update PowerShell-OneLiners.txt
1 parent 4a4a2bf commit 4b835cb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

PowerShell-OneLiners.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@ PowerVeiw and output localy to disk for beacon:
44
Powerview UserHunting Search by keyword:
55
powershell Get-NetUser -Filter "(description=*medical*)" | Select-Object -Prop samaccountname.description,title
66
powershell Get-NetUser -Filter "(title=*medical*)" | Select-Object -Prop samaccountname.description,title
7+
8+
Simple Web request:
9+
powershell.exe -exec bypass -w hidden -command $wc = New-Object System.Net.Webclient; $wc.Headers.Add('User-Agent','Mozilla/5.0 (Windows NT 6.1; WOW64;Trident/7.0; AS; rv:11.0) Like Gecko'); $wc.proxy= [System.Net.WebRequest]::DefaultWebProxy; $wc.proxy.credentials = [System.Net.CredentialCache]::DefaultNetworkCredentials; $wc.downloadstring('http://google.com/')
710

0 commit comments

Comments
 (0)