From efd95998c842177ce4e5ebbb78dba13ce93c1d38 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Thu, 26 Sep 2013 11:53:04 +0200 Subject: [PATCH] Use urllib instead of requests --- tools/decoding/decube.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/decoding/decube.py b/tools/decoding/decube.py index 2154fdd..92277dc 100644 --- a/tools/decoding/decube.py +++ b/tools/decoding/decube.py @@ -6,9 +6,9 @@ # Author: Sven Slootweg # License: WTFPL, use it as you wish -import requests, re, sys, urllib, math +import re, sys, urllib, math -body = re.search("]*>(.*)<\/script>", requests.get(sys.argv[1]).text).group(1) +body = re.search("]*>(.*)<\/script>", urllib.urlopen(sys.argv[1]).read()).group(1) #script = re.search('eval\(unescape\("([^"]+)"\)\);', body).group(1) # We don't actually need this, but we might in the future first_payload = re.search('c="([^"]+)"', body).group(1) second_payload = re.search('x\("([^"]+)"\);', body).group(1)