Coder Social home page Coder Social logo

initracer's Introduction

InitRacer

Setup

The following install instructions have been tested on Ubuntu 16.04.1.

Dependencies

  1. Install Google Chrome from https://www.google.com/chrome

  2. Install other dependencies by issuing the following commands:

    curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
    sudo apt-get install -y git nodejs python-pip python-dev libffi-dev libssl-dev libxml2-dev libxslt1-dev libjpeg8-dev zlib1g-dev g++
    sudo npm install -g http-server [email protected]
    sudo webdriver-manager update
    pip install mitmproxy==0.17
    
  3. Install mitmproxy certificate

    A. Start mitmproxy by issuing: mitmdump

    B. Open http://mitm.it/ in Google Chrome by issuing:

    google-chrome-stable http://mitm.it/ --proxy-server="127.0.0.1:8080"
    

    C. Download the mitmproxy certificate for Ubuntu by clicking on "Other"

    D. Install the mitmproxy certificate: Open chrome://settings/certificates in Google Chrome, click on "Authorities", and import the certificiate mitmproxy-ca-cert.pem. In addition, issue the following commands.

    sudo cp ~/Downloads/mitmproxy-ca-cert.pem /usr/local/share/ca-certificates/mitmproxy-ca-cert.crt
    sudo update-ca-certificates
    

    Test that the mitmproxy certificate is installed correctly, by repeating steps (A) and (B), and opening https://github.com/cs-au-dk/initracer in the browser.

InitRacer

Issue the following commands:

git clone https://github.com/cs-au-dk/initracer.git
cd initracer
npm install

Usage

The following command runs InitRacer on http://localhost:8080/test/access-before-definition/dropdown/index.html, and saves the result in out/example/:

http-server # for serving the test/ directory
./initracer.js --site example --url http://localhost:8080/test/access-before-definition/dropdown/index.html --validate

The report generated by InitRacer can be found at http://localhost:8080/report/.

Running all tests: Issue the command ./run-tests.sh and open http://localhost:8080/report/.

Running all experiments:

Download and extract the recordings of the websites of the 100 largest companies from the Fortune 500 list by issuing the following commands:

wget http://initracer.casadev.cs.au.dk/recordings.zip
unzip recordings.zip

Then issue the command ./run-experiments.sh and open http://localhost:8080/report/.

initracer's People

Contributors

christofferqa avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

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.