From ccdf54bed18c1b4b51e40a57e8d4996b7a758266 Mon Sep 17 00:00:00 2001 From: Michel Oosterhof Date: Mon, 26 Sep 2016 05:12:38 +0000 Subject: [PATCH] fix references to urllib --- cowrie/output/virustotal.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cowrie/output/virustotal.py b/cowrie/output/virustotal.py index 8350931..13ae51e 100644 --- a/cowrie/output/virustotal.py +++ b/cowrie/output/virustotal.py @@ -169,7 +169,7 @@ class Output(cowrie.core.output.Output): vtUrl = "https://www.virustotal.com/vtapi/v2/url/scan" headers = http_headers.Headers({'User-Agent': ['Cowrie SSH Honeypot']}) fields = {"apikey": self.apiKey, "url": scanUrl} - data = urllib.urlencode(fields) + data = urlencode(fields) body = StringProducer(data) contextFactory = WebClientContextFactory() @@ -225,7 +225,7 @@ class Output(cowrie.core.output.Output): "comment": "First seen by Cowrie SSH honeypot http://github.com/micheloosterhof/cowrie", "apikey": self.apiKey} headers = http_headers.Headers({'User-Agent': ['Cowrie SSH Honeypot']}) - data = urllib.urlencode(parameters) + data = urlencode(parameters) body = StringProducer(data) contextFactory = WebClientContextFactory()