Samsung / jalangi2

Dynamic analysis framework for JavaScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

doesn't seem to work with mitmproxy 0.18.2

msridhar opened this issue · comments

I just installed the latest mitmproxy, 0.18.2, from Homebrew on Mac. I tried to run the example command-line instantiation from the README:

./scripts/mitmproxywrapper.py --toggle --auto-disable --quiet --anticache -s "scripts/proxy.py --inlineIID --inlineSource --analysis src/js/sample_analyses/ChainedAnalyses.js --analysis src/js/runtime/analysisCallbackTemplate.js"

Here's what I see on the console:

Enabling proxy on Wi-Fi...
Script error: Traceback (most recent call last):
  File "scripts/proxy.py", line 12, in <module>
    mitmversion = float(stdout.decode()[9:]) # remove "mitmdump "
ValueError: invalid literal for float(): 0.18.2 

We should fix this. Also, we should document which known good version of mitmproxy we have tested Jalangi with.