Unhandled exception
0xspade opened this issue · comments
<<"Spade">> commented
Powershell on Debian Linux
Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an object
at ysoserial.Generators.TypeConfuseDelegateGenerator.TypeConfuseDelegateGadget (System.String cmd) [0x000ad] in <ea956b426eca4a2ea734dd6ba9ce1670>:0
at ysoserial.Generators.TypeConfuseDelegateGenerator.Generate (System.String cmd, System.String formatter, System.Boolean test, System.Boolean minify) [0x00000] in <ea956b426eca4a2ea734dd6ba9ce1670>:0
at ysoserial.Program.Main (System.String[] args) [0x00339] in <ea956b426eca4a2ea734dd6ba9ce1670>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object
at ysoserial.Generators.TypeConfuseDelegateGenerator.TypeConfuseDelegateGadget (System.String cmd) [0x000ad] in <ea956b426eca4a2ea734dd6ba9ce1670>:0
at ysoserial.Generators.TypeConfuseDelegateGenerator.Generate (System.String cmd, System.String formatter, System.Boolean test, System.Boolean minify) [0x00000] in <ea956b426eca4a2ea734dd6ba9ce1670>:0
at ysoserial.Program.Main (System.String[] args) [0x00339] in <ea956b426eca4a2ea734dd6ba9ce1670>:0
Soroush Dalili commented
Could you please include the command that you had used?
<<"Spade">> commented
PowerShell 6.2.3
Copyright (c) Microsoft Corporation. All rights reserved.
https://aka.ms/pscore6-docs
Type 'help' to get help.
PS /home/spade/tools> .\ysoserial.exe -g TypeConfuseDelegate -f NetDataContractSerializer -c "powershell.exe -encodedCommand <base64 string>" -o base64
I tried all formatter but all are the same output
Soroush Dalili commented
Could you please try with TypeConfuseDelegateMono perhaps?
Soroush Dalili commented
I don't think this tool is compatible with Linux.
Alvaro Muñoz commented
Correct, no compatible with linux and no current plan to support it