79469439

Date: 2025-02-26 10:59:56
Score: 8 🚩
Natty:
Report link

Keith Hill made the excellent suggestion to use the following shortcut command line, however it did not pass the arguments correctly. Paths with spaces were split apart when they arrived at the Test.ps1 script.

powershell.exe -noprofile -noexit -command "& {c:\test1.ps1 $args}"

Has anyone found a way to do this without the extra script?

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noprofile -noexit -command & { get-item $([string]$args) }"

enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Blacklisted phrase (2): anyone found
  • RegEx Blacklisted phrase (3): Has anyone found
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: brrrr66