A simple tool to interrogate a given archive (jar,zip,tar etc) for its contents and embedded jars. This allows you to generate a catalog of contents and programmatically analyse this information.
This project makes use of the the pyrus package. (https://github.com/abn/pyrus).
The following creates a dev environment under the directory jsnoop.dev. You can change the name of this directory by editing the script provided.
git clone git@github.com:abn/jsnoop.git
cd jsnoop
source scripts/start-dev-env.sh
You can install this using easy_install or pip
easy_install http://github.com/abn/jsnoop/tarball/master#egg=jsnoop-0.0.1
pip http://github.com/abn/jsnoop/tarball/master#egg=jsnoop-0.0.1
NOTE: This is not a stable module yet, so I suggest using a virtualenv.
To use the provided examples you should either have jsnoop installed as a module or use the dev environment.
# fetch the virtual env
source scripts/start-dev-env.sh
# run the sample
python3 examples/process.py <input-file>