Skip to content

Commit

Permalink
Organized imports, updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
moloch committed Feb 3, 2016
1 parent 15f7d1d commit 3a4eab4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This is a Burp plugin that is designed to passively scan for CSP headers that co
## Installation

#### Jython Setup
1. Download the latest [Jython 2.7.x](http://www.jython.org/) .jar file
1. Download the latest standalone [Jython 2.7.x](http://www.jython.org/downloads.html) .jar file
1. In Burp select `Extender` and then the `Options` tab, under the _Python Environment_ heading click `Select File ...` and browse to the Jython .jar file

#### CSP Bypass Plugin Setup
Expand Down
7 changes: 3 additions & 4 deletions burp_csp_bypass.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@
# pylint: disable=E0602,C0103,W0621,R0903,R0201


from burp import IBurpExtender
from burp import IScannerCheck

from urlparse import urlparse
from httplib import HTTPResponse
from StringIO import StringIO
from urlparse import urlparse

from burp import IBurpExtender, IScannerCheck


class HttpDummySocket(object):
Expand Down
1 change: 0 additions & 1 deletion csp_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from collections import defaultdict
from urlparse import urlparse


### Constants
BASE_URI = "base-uri"
FORM_ACTION = "form-action"
Expand Down
1 change: 0 additions & 1 deletion tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

from csp_parser import *


# Constants
CSP_HEADER_NAME = "Content-Security-Policy"

Expand Down

0 comments on commit 3a4eab4

Please sign in to comment.