Home > jsidle

jsidle

Jsidle is a project mainly written in RUBY and JAVASCRIPT, based on the BSD-3-Clause license.

The JSidle Javascript packer

h1. JSidle Javascript Packer

Blog post about the JSidle packer: http://relentless-coding.blogspot.com/2010/07/new-javascript-packer-jsidle.html

The concept of the JSidle packer is described in the Hack in the Box magazine, Volume 1, Issue 3. Get it here: http://magazine.hitb.org

h2. Usage

./jsidle [ -i file ] [ -o file ] [ opt1=val1 opt2=val2 ... ]
options: delay=
         include_md5lib=true|false
         mode=web|pdf
         speed=
         static=true|false
         strip_comments=true|false

h2. Examples

Asssuming tools/benchmark.html showed a speed of 20000 and you want the delay to be 5 seconds in the target browser:

./jsidle -i exploit.js -o packed.js speed=20000 delay=5

Using the query string feature (the query string key will be printed to STDERR):

echo "alert('owned')" | ./jsidle -o exploit.js speed=20000 delay=5 static=false

Packing Javascript for usage in PDF files:

./jsidle -i pdf-exploit.js -o packed.js mode=pdf speed=300
Previous:Ruby-Testing