Skip to content

Commit a58b995

Browse files
committed
Remove broken dependency ssdeep
1 parent 0e8ef7e commit a58b995

10 files changed

Lines changed: 0 additions & 23 deletions

File tree

docs/source/build.rst

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,6 @@ Starting from Thug 0.8.0, Thug is installable through pip with the following pro
112112
113113
pip install thug
114114
115-
If you experience issues related to ssdeep while installing Thug as shown before, try
116-
the following command before reporting the issue
117-
118-
.. code-block:: sh
119-
120-
export BUILD_LIB=1
121-
pip install thug
122-
123115
Alternatively you can clone the Thug repository and execute
124116

125117
.. code-block:: sh

docs/source/logging.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,6 @@ and evaluated content type.
310310
"content-type" : Content Type
311311
"md5" : MD5 checksum
312312
"sha256" : SHA-256 checksum
313-
"ssdeep" : Ssdeep hash
314313
"flags" : Flags
315314
"size" : Data size
316315
"mime-type" : Evaluated content type
@@ -570,7 +569,6 @@ locations
570569
"content-type" : Content Type
571570
"md5" : MD5 checksum
572571
"sha256" : SHA-256 checksum
573-
"ssdeep" : Ssdeep hash
574572
"flags" : Flags
575573
"size" : Data size
576574
"mime-type" : Evaluated content type

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ dependencies = [
5757
"requests==2.32.5",
5858
"requests-futures==1.0.2",
5959
"setuptools>=65.5.1",
60-
"ssdeep==3.4",
6160
"stpyv8==13.1.201.22",
6261
"yara-python==4.5.4",
6362
"zope.interface==8.2",

tests/Logging/modules/test_MongoDB.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ class TestMongoDB:
4141
file_data = {
4242
"sha1": "b13d13733c4c9406fd0e01485bc4a34170b7d326",
4343
"data": data,
44-
"ssdeep": "24:9EGtDqSyDVHNkCq4LOmvmuS+MfTAPxokCOB:97tG5DjQ4LDs+sTAPxLT",
4544
"sha256": "459bf0aeda19633c8e757c05ee06b8121a51217cea69ce60819bb34092a296a0",
4645
"type": "JAR",
4746
"md5": "d4be8fbeb3a219ec8c6c26ffe4033a16",

tests/Logging/test_ThugLogging.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ class TestThugLogging:
3131
jar_path = os.path.join(cwd_path, os.pardir, "test_files/sample.jar")
3232
sample = {
3333
"sha1": "b13d13733c4c9406fd0e01485bc4a34170b7d326",
34-
"ssdeep": "24:9EGtDqSyDVHNkCq4LOmvmuS+MfTAPxokCOB:97tG5DjQ4LDs+sTAPxLT",
3534
"sha256": "459bf0aeda19633c8e757c05ee06b8121a51217cea69ce60819bb34092a296a0",
3635
"type": "JAR",
3736
"md5": "d4be8fbeb3a219ec8c6c26ffe4033a16",

thug/DOM/Navigator.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
import hashlib
2222
import logging
2323

24-
import ssdeep
25-
2624
from .JSClass import JSClass
2725
from .MimeTypes import MimeTypes
2826
from .Plugins import Plugins
@@ -417,7 +415,6 @@ def fetch(
417415
md5.update(response.content)
418416
sha256 = hashlib.sha256()
419417
sha256.update(response.content)
420-
ssdeep_hash = ssdeep.hash(response.content)
421418

422419
mtype = log.Magic.get_mime(response.content)
423420

@@ -426,7 +423,6 @@ def fetch(
426423
"status": response.status_code,
427424
"md5": md5.hexdigest(),
428425
"sha256": sha256.hexdigest(),
429-
"ssdeep": ssdeep_hash,
430426
"fsize": len(response.content),
431427
"ctype": ctype,
432428
"mtype": mtype,

thug/Logging/SampleLogging.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import zipfile
2424
import tempfile
2525
import pefile
26-
import ssdeep
2726
import magic
2827

2928
log = logging.getLogger("Thug")
@@ -162,7 +161,6 @@ def build_sample(self, data, url=None, sampletype=None):
162161
p["md5"] = hashlib.md5(data).hexdigest() # nosec
163162
p["sha1"] = hashlib.sha1(data).hexdigest() # nosec
164163
p["sha256"] = hashlib.sha256(data).hexdigest()
165-
p["ssdeep"] = ssdeep.hash(data)
166164

167165
if p["type"] in ("PE",):
168166
imphash = self.get_imphash(data)

thug/Logging/ThugLogging.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,6 @@ def log_location(self, url, data, flags=None):
265265
- content Content
266266
- md5 MD5 checksum
267267
- sha256 SHA-256 checksum
268-
- ssdeep Ssdeep hash
269268
- fsize Content size
270269
- ctype Content type (whatever the server says it is)
271270
- mtype Calculated MIME type

thug/Logging/modules/JSON.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@ def log_location(self, url, data, flags=None):
223223
- content Content
224224
- md5 MD5 checksum
225225
- sha256 SHA-256 checksum
226-
- ssdeep Ssdeep hash
227226
- fsize Content size
228227
- ctype Content type (whatever the server says it is)
229228
- mtype Calculated MIME type
@@ -244,7 +243,6 @@ def log_location(self, url, data, flags=None):
244243
"content-type": data.get("ctype", None),
245244
"md5": data.get("md5", None),
246245
"sha256": data.get("sha256", None),
247-
"ssdeep": data.get("ssdeep", None),
248246
"flags": flags,
249247
"size": data.get("fsize", None),
250248
"mimetype": data.get("mtype", None),

thug/Logging/modules/MongoDB.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,6 @@ def log_location(self, url, data, flags=None):
199199
"content-type": data.get("ctype", None),
200200
"md5": data.get("md5", None),
201201
"sha256": data.get("sha256", None),
202-
"ssdeep": data.get("ssdeep", None),
203202
"flags": flags,
204203
"size": data.get("fsize", None),
205204
"mime-type": data.get("mtype", None),

0 commit comments

Comments
 (0)