Skip to content

Commit

Permalink
Move browser initialization out of browserEngine and put it in to sca…
Browse files Browse the repository at this point in the history
…n.py
  • Loading branch information
IAmStoxe committed May 1, 2019
1 parent 1d22590 commit 8e00a32
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/browserEngine.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ def navigate_to(uri):
browser.get(uri)


init_browser()

5 changes: 4 additions & 1 deletion modes/scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from urllib.parse import urlparse, quote, unquote

from core.arjun import arjun
from core.browserEngine import browser_engine, kill_browser
from core.browserEngine import browser_engine, kill_browser, init_browser
from core.checker import checker
from core.colors import good, bad, end, info, green, red, que
import core.config
Expand Down Expand Up @@ -33,6 +33,9 @@ def scan(target, paramData, encoding, headers, delay, timeout, skipDOM, find, sk
logger.debug('Scan target: {}'.format(target))
response = requester(target, {}, headers, GET, delay, timeout).text

# initialize browser
init_browser()

if not skipDOM:
logger.run('Checking for DOM vulnerabilities')
highlighted = dom(response)
Expand Down

0 comments on commit 8e00a32

Please sign in to comment.