Parser for serialized python pickles written in C#/.NET Core
This repository should be seen as a proof-of-concept.
Do not unpickle data received from an untrusted or unauthenticated source.
The pickle
module allows to execute arbitrary code during unpickling
To exchange data use a language-independent serialization format such as JSON or XML.
// Initialize PickleReader with pickle data.
using(var reader = new PickleReader(new FileInfo("data.pickle")) {
// Deserialize data.
object[] deserialized = reader.Unpickle();
// How to parse the data is up to you!
}
Please visit the rpaextract repository for an example application using sharppickle
. Usage can be found in Archive.cs.
sharppickle is licensed under the European Union Public Licence v1.2