mirror of https://github.com/cowrie/cowrie.git
Sonarcloud 1 (#1358)
* remove duplicate branch * do check malshare ssl cert
This commit is contained in:
parent
2ea41be79c
commit
dea7855c33
|
@ -88,8 +88,7 @@ class Output(cowrie.core.output.Output):
|
|||
try:
|
||||
res = requests.post(
|
||||
"https://malshare.com/api.php?mode=cli",
|
||||
files={fileName: open(artifact, "rb")},
|
||||
verify=False
|
||||
files={fileName: open(artifact, "rb")}
|
||||
)
|
||||
if res and res.ok:
|
||||
print("Submited to MalShare")
|
||||
|
|
|
@ -121,13 +121,6 @@ class Output(cowrie.core.output.Output):
|
|||
(entry["session"], entry["timestamp"], entry['url'], 'NULL', 'NULL')
|
||||
)
|
||||
|
||||
elif entry["eventid"] == 'cowrie.session.file_download':
|
||||
self.simpleQuery(
|
||||
'INSERT INTO `input` (`session`, `timestamp`, `realm`, `input`) '
|
||||
'VALUES (?, ?, ?, ?)',
|
||||
(entry["session"], entry["timestamp"], entry["realm"], entry["input"])
|
||||
)
|
||||
|
||||
elif entry["eventid"] == 'cowrie.client.version':
|
||||
r = yield self.db.runQuery(
|
||||
'SELECT `id` FROM `clients` '
|
||||
|
|
Loading…
Reference in New Issue