Sonarcloud 1 (#1358)

* remove duplicate branch

* do check malshare ssl cert
This commit is contained in:
Michel Oosterhof 2020-06-01 11:29:34 +08:00 committed by GitHub
parent 2ea41be79c
commit dea7855c33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 9 deletions

View File

@ -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")

View File

@ -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` '