Skip to content

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

License

Notifications You must be signed in to change notification settings

Kaskadee/sharppickle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sharppickle

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

Why?


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.

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages