Git Product home page Git Product logo

pyretrace's Introduction

#pyretrace

A python reimplementation on Proguard's Retrace, with a deobfuscation API for python.

PyPI version

Installation

$ pip install pyretrace

from source:

$ pip install https://github.com/EverythingMe/pyretrace.git

or if you're having permission issues:

$ git clone https://github.com/EverythingMe/pyretrace.git
cd pyretrace
sudo pip install .

Usage

There are two ways of using pyretrace:

  1. As a command line tool:

     $ pyretrace -m path/to/mapping_file.txt -s path/to/stacktrace.txt
    
  2. As an API module:

     import pyretrace
     
     retrace = Retrace(mapping_file_path, verbose, regex)
     deobfuscated_string = retrace.deobfuscate('my obfuscated string')
    

pyretrace's People

Contributors

benbek avatar rotemmiz avatar thusoy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pyretrace's Issues

Can this package be used for obfuscating Python code and then de-obfuscating?

I want to obfuscate my code (change the names of fields and functions to nonsense) so I can submit it (reasonably) safely to services such as StackOverflow, ChatGPT, and Claude. Once I get an answer I want to be able to translate that code's fields and function names back to the original names. Can we use this tool for that, or modify it to behave like that? I've found pyminify which does the obfuscation but nothing there looks like it allows you to translate code back to the original names.

Thanks in advance for any suggestions.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.