Files
oscp/Necronomicon/Programming/PowerShell/Speak.md
T
2025-11-21 17:17:42 +01:00

27 lines
466 B
Markdown

## Description
Speaks through your targets speakers
## The Function
### [Speak]
Using SAPI.SpVoice you will feed strings to the functions to have it speak through your targets speakers using the following syntax
```PowerShell
speak "you have been hacked"
```
```Powershell
function speak {
[CmdletBinding()]
param (
[Parameter (Position=0,Mandatory = $True)]
[string]$Sentence
)
$s=New-Object -ComObject SAPI.SpVoice
$s.Rate = -2
$s.Speak($Sentence)
}
```