Skip to content

Commit

Permalink
Merge pull request #14 from drainware/master
Browse files Browse the repository at this point in the history
Updated punkspider information
  • Loading branch information
MarioVilas committed Jun 10, 2015
2 parents fc33663 + 0061c32 commit 36ed3d4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions plugins/testing/recon/punkspider.py
Expand Up @@ -135,12 +135,12 @@ def run(self, info):
# The PunkSPIDER API.

URL = (
"http://punkspider.hyperiongray.com/service/search/detail/%s"
"https://www.punkspider.org/service/search/detail/%s"
)

HEADERS = {
"Accept": "*/*",
"Referer": "http://punkspider.hyperiongray.com/",
"Referer": "https://www.punkspider.org/",
"User-Agent": "Mozilla/5.0 (Windows NT 6.1; WOW64)"
" AppleWebKit/537.36 (KHTML, like Gecko)"
" Chrome/31.0.1650.63 Safari/537.36",
Expand All @@ -150,7 +150,8 @@ def run(self, info):
def query_punkspider(self, host_id):
try:
r = requests.get(self.URL % host_id,
headers = self.HEADERS)
headers = self.HEADERS,
verify=False)
assert r.headers["Content-Type"].startswith("application/json"),\
"Response from server is not a JSON encoded object"
return r.json()
Expand Down

0 comments on commit 36ed3d4

Please sign in to comment.