mgeeky / Stracciatella

OpSec-safe Powershell runspace from within C# (aka SharpPick) with AMSI, Constrained Language Mode and Script Block Logging disabled at startup
GNU General Public License v3.0
495 stars 64 forks source link

Case sensitivity #3

Closed hatemnsec closed 3 years ago

hatemnsec commented 3 years ago

The old version of Stracciatella, was accepting cmdlets in any case.

for instance: `beacon> stracciatella get-sqlserverinfo [*] Tasked Beacon to run Stracciatella: get-sqlserverinfo [+] host called home, sent: 10 bytes [+] host called home, sent: 268609 bytes [+] received output:

ComputerName : HOST Instance : HOST\SQLEXPRESS DomainName : WORKGROUP ServiceProcessID : 2826 `

while the new version causes some errors,

`beacon> stracciatella Get-SQLServerInfo [*] Tasked Beacon to run Stracciatella: Get-SQLServerInfo [+] host called home, sent: 270064 bytes [+] received output:

ERROR: Get-SQLServerInfo : The term 'Get-SqlServerInfo' is not recognized as the name of a cmdlet, ERROR: function, script file, or operable program. Check the spelling of the name, or if a path was ERROR: included, verify that the path is correct and try again. ERROR: At line:1 char:1 ERROR: + Get-SQLServerInfo ERROR: + ~~~~~ ERROR: + CategoryInfo : ObjectNotFound: (Get-SQLServerInfo:String) [], CommandNotFoundExcept ERROR: ion ERROR: + FullyQualifiedErrorId : CommandNotFoundException ERROR: `

mgeeky commented 3 years ago

Hmmm, that's interesting. Never experienced such an issue before. Can you please point me to the specific version number where case sensitivity worked previously?

Best regards, M.

mgeeky commented 3 years ago

Hi,

Finally got around that bug and addressed it in this commit bfd0e01

Thanks for your issue report.

Regards, Mariusz.