pwntester / ysoserial.net

Deserialization payload generator for a variety of .NET formatters

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unhandled exception

0xspade opened this issue · comments

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 

Could you please include the command that you had used?

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

Could you please try with TypeConfuseDelegateMono perhaps?

I don't think this tool is compatible with Linux.

Correct, no compatible with linux and no current plan to support it