mirror of
https://github.com/cowrie/cowrie.git
synced 2025-07-01 18:07:27 -04:00
fix references to urllib
This commit is contained in:
@ -169,7 +169,7 @@ class Output(cowrie.core.output.Output):
|
|||||||
vtUrl = "https://www.virustotal.com/vtapi/v2/url/scan"
|
vtUrl = "https://www.virustotal.com/vtapi/v2/url/scan"
|
||||||
headers = http_headers.Headers({'User-Agent': ['Cowrie SSH Honeypot']})
|
headers = http_headers.Headers({'User-Agent': ['Cowrie SSH Honeypot']})
|
||||||
fields = {"apikey": self.apiKey, "url": scanUrl}
|
fields = {"apikey": self.apiKey, "url": scanUrl}
|
||||||
data = urllib.urlencode(fields)
|
data = urlencode(fields)
|
||||||
body = StringProducer(data)
|
body = StringProducer(data)
|
||||||
contextFactory = WebClientContextFactory()
|
contextFactory = WebClientContextFactory()
|
||||||
|
|
||||||
@ -225,7 +225,7 @@ class Output(cowrie.core.output.Output):
|
|||||||
"comment": "First seen by Cowrie SSH honeypot http://github.com/micheloosterhof/cowrie",
|
"comment": "First seen by Cowrie SSH honeypot http://github.com/micheloosterhof/cowrie",
|
||||||
"apikey": self.apiKey}
|
"apikey": self.apiKey}
|
||||||
headers = http_headers.Headers({'User-Agent': ['Cowrie SSH Honeypot']})
|
headers = http_headers.Headers({'User-Agent': ['Cowrie SSH Honeypot']})
|
||||||
data = urllib.urlencode(parameters)
|
data = urlencode(parameters)
|
||||||
body = StringProducer(data)
|
body = StringProducer(data)
|
||||||
contextFactory = WebClientContextFactory()
|
contextFactory = WebClientContextFactory()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user