This repository has been archived on 2022-04-23. You can view files and clone it, but cannot push or open issues or pull requests.
2022-04-23 11:31:54 +02:00
2019-11-24 19:25:47 +01:00
2019-11-24 19:25:47 +01:00
2020-05-20 13:14:31 +02:00
2020-05-19 22:35:28 +02:00

sharppickle

Parser for serialized python pickles written in C#/.NET Core

Why?


This repository should be seen as a proof-of-concept. DO NOT USE Python's pickle module as a way to communicate between your python script and your application. Especially since the pickle module is unsecure as it allows to execute arbitrary code during unpickling!

To exchange data use a language-independant serialization format such as JSON or XML.

How to use


// 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!
}

Example


Please visit the rpaextract repository for an example application using sharppickle. Usage can be found in Archive.cs.

License


sharppickle is licensed under the European Union Public Licence v1.2

Description
Parser for serialized python pickles written in C#/.NET Core
Readme 137 KiB
Languages
C# 100%