Git Product home page Git Product logo

ascii-zip's Introduction

ascii-zip

A deflate compressor that emits compressed data that is in the [A-Za-z0-9] ASCII byte range.

Example

$ echo 'Hello ASCII world!' >hello
$ ./compress.py --mode raw --output ./hello.infalted ./hello >/dev/null
$ cat ./hello.infalted
D0Up0IZUnnnnnnnnnnnnnnnnnnnUU5nnnnnn3SUUnUUUwCiudIbEAtwwwEt333
G0GDGGDtGptw0GwDDDGtDGDt33333www03333sDdFPsgWWwackSKKaowOWGQ4

Why?

It can be used for bypassing certain filters in certain applications :)

This algorithm is at the heart of the Rosetta Flash vulnerability. For additional information, see

ascii-zip's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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

ascii-zip's Issues

Variable scoping

I created a new brute-force mode for the tool (it is not pretty yet as it simply works but is a huge hack). I was able to find what I did (a deflated stream that includes the string "5#"), however, there were many issues and the ASCIICompressor code throws a couple of exceptions:

floyd-fuh@b181fe8

So I'm generally a little confused about the scope of your variables, for example "huffman". It is set here (but due to python's scoping, will live in the function as variable if I got that right): https://github.com/molnarg/ascii-zip/blob/master/compress.py#L67 . But of course if "cursor" was below 0, the variable is still uninitialized. Something similar happens on https://github.com/molnarg/ascii-zip/blob/master/compress.py#L81 . But then you just use the maybe-uninitialized variable "huffman" here https://github.com/molnarg/ascii-zip/blob/master/compress.py#L96 .

This is all problematic as some of the functions actually return None, such as here:
https://github.com/molnarg/ascii-zip/blob/master/compress.py#L139 or https://github.com/molnarg/ascii-zip/blob/master/compress.py#L159

I'm not enough into the topic of the deflate algorithm, so it is hard for me to fully undestand the code and fix it. Any chance you'll have a look?

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.