man-spider 1.1.1__py3-none-any.whl → 1.1.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- man_spider/lib/file.py +3 -3
- man_spider/lib/parser/parser.py +3 -5
- man_spider/lib/smb.py +2 -1
- man_spider/lib/spider.py +3 -4
- man_spider/lib/spiderling.py +6 -5
- man_spider/manspider.py +2 -1
- {man_spider-1.1.1.dist-info → man_spider-1.1.2.dist-info}/METADATA +2 -3
- man_spider-1.1.2.dist-info/RECORD +18 -0
- man_spider-1.1.1.dist-info/RECORD +0 -18
- {man_spider-1.1.1.dist-info → man_spider-1.1.2.dist-info}/LICENSE +0 -0
- {man_spider-1.1.1.dist-info → man_spider-1.1.2.dist-info}/WHEEL +0 -0
- {man_spider-1.1.1.dist-info → man_spider-1.1.2.dist-info}/entry_points.txt +0 -0
man_spider/lib/file.py
CHANGED
man_spider/lib/parser/parser.py
CHANGED
|
@@ -117,10 +117,9 @@ class FileParser:
|
|
|
117
117
|
|
|
118
118
|
try:
|
|
119
119
|
|
|
120
|
-
matches = self.
|
|
120
|
+
matches = self.extractous(file, pretty_filename=pretty_filename)
|
|
121
121
|
|
|
122
122
|
except Exception as e:
|
|
123
|
-
#except (BadZipFile, textract.exceptions.CommandLineError) as e:
|
|
124
123
|
if log.level <= logging.DEBUG:
|
|
125
124
|
log.warning(f'Error extracting text from {pretty_filename}: {e}')
|
|
126
125
|
else:
|
|
@@ -129,10 +128,9 @@ class FileParser:
|
|
|
129
128
|
return matches
|
|
130
129
|
|
|
131
130
|
|
|
132
|
-
def
|
|
131
|
+
def extractous(self, file, pretty_filename):
|
|
133
132
|
'''
|
|
134
|
-
Extracts text from a file
|
|
135
|
-
Uses the textract library on specific extensions
|
|
133
|
+
Extracts text from a file using the extractous library
|
|
136
134
|
'''
|
|
137
135
|
|
|
138
136
|
matches = dict()
|
man_spider/lib/smb.py
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import ntpath
|
|
2
2
|
import logging
|
|
3
|
-
from .errors import *
|
|
4
3
|
from contextlib import suppress
|
|
5
4
|
from impacket.nmb import NetBIOSError, NetBIOSTimeout
|
|
6
5
|
from impacket.smbconnection import SessionError, SMBConnection
|
|
7
6
|
|
|
7
|
+
from man_spider.lib.errors import *
|
|
8
|
+
|
|
8
9
|
# set up logging
|
|
9
10
|
log = logging.getLogger('manspider.smb')
|
|
10
11
|
|
man_spider/lib/spider.py
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import re
|
|
2
|
-
import sys
|
|
3
2
|
import queue
|
|
4
|
-
import threading
|
|
5
3
|
from time import sleep
|
|
6
4
|
import multiprocessing
|
|
7
5
|
from pathlib import Path
|
|
8
|
-
|
|
9
|
-
from .
|
|
6
|
+
|
|
7
|
+
from man_spider.lib.spiderling import *
|
|
8
|
+
from man_spider.lib.parser import FileParser
|
|
10
9
|
|
|
11
10
|
# set up logging
|
|
12
11
|
log = logging.getLogger('manspider')
|
man_spider/lib/spiderling.py
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import string
|
|
2
2
|
import logging
|
|
3
3
|
import pathlib
|
|
4
|
-
from .smb import *
|
|
5
|
-
from .file import *
|
|
6
|
-
from .util import *
|
|
7
|
-
from .errors import *
|
|
8
4
|
import multiprocessing
|
|
9
5
|
from shutil import move
|
|
10
|
-
from .processpool import *
|
|
11
6
|
from traceback import format_exc
|
|
12
7
|
|
|
8
|
+
from man_spider.lib.smb import *
|
|
9
|
+
from man_spider.lib.file import *
|
|
10
|
+
from man_spider.lib.util import *
|
|
11
|
+
from man_spider.lib.errors import *
|
|
12
|
+
from man_spider.lib.processpool import *
|
|
13
|
+
|
|
13
14
|
|
|
14
15
|
log = logging.getLogger('manspider.spiderling')
|
|
15
16
|
|
man_spider/manspider.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: man-spider
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.2
|
|
4
4
|
Summary: Full-featured SMB spider capable of searching file content
|
|
5
5
|
License: GPL-3.0
|
|
6
6
|
Author: TheTechromancer
|
|
@@ -16,14 +16,13 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
16
16
|
Requires-Dist: extractous (>=0.3.0,<0.4.0)
|
|
17
17
|
Requires-Dist: impacket (>=0.12.0,<0.13.0)
|
|
18
18
|
Requires-Dist: python-magic (>=0.4.27,<0.5.0)
|
|
19
|
-
Project-URL: Homepage, https://github.com/blacklanternsecurity/MANSPIDER
|
|
20
|
-
Project-URL: Repository, https://github.com/blacklanternsecurity/MANSPIDER
|
|
21
19
|
Description-Content-Type: text/markdown
|
|
22
20
|
|
|
23
21
|
# MANSPIDER
|
|
24
22
|
### Crawl SMB shares for juicy information. File content searching + regex is supported!
|
|
25
23
|
|
|
26
24
|
### UPDATE 2025-05-26
|
|
25
|
+
|
|
27
26
|
**Manspider has been updated to support kerberos!** Also, the textract library has been replaced with [Extractous](https://github.com/yobix-ai/extractous), so you can now feel free to run it outside Docker. 🎉
|
|
28
27
|
|
|
29
28
|

|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
man_spider/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
man_spider/lib/__init__.py,sha256=ur53cnY4wqGh1C19LDk61D62vzk0iXZRYshU33Mqe-Q,86
|
|
3
|
+
man_spider/lib/errors.py,sha256=InHvv7ZfWn766Jm6DsWRRZCzWhWxaDzlfmGyDg3SOJo,1061
|
|
4
|
+
man_spider/lib/file.py,sha256=BV_waZ3b4Pl74uiXrKMZAaxbTxAvvPacA8mYeq579Zs,1522
|
|
5
|
+
man_spider/lib/logger.py,sha256=apDRFLWy2j7ShrxatHqBkYAGyv7b9FQyAO0uDvTHqdM,2440
|
|
6
|
+
man_spider/lib/parser/__init__.py,sha256=m0KGcdcwfM6xh0l1YFLvlXSeCI82auoB6ztrWN7qGyM,21
|
|
7
|
+
man_spider/lib/parser/parser.py,sha256=L8lbApOYB2jGVHl_aSkm9AdRgDpKA036YwHNlEvtDA8,4905
|
|
8
|
+
man_spider/lib/processpool.py,sha256=KkT7ZCzi6_6c9bNlW04MioSb8G8muoUcxIIF8DXEMrA,3742
|
|
9
|
+
man_spider/lib/smb.py,sha256=nSILevYjW3E5ftPwI4tbMLqL-2SBmV7W-vTAk-5ZEw0,8989
|
|
10
|
+
man_spider/lib/spider.py,sha256=oV-VAKK2vdqkcrEZU7SosApXycNaGHEJoBWzfUhlf0Q,7186
|
|
11
|
+
man_spider/lib/spiderling.py,sha256=pHDSsqYSAjlMGEbXyBgYg7vPMJcnF-2e6hX8h0ZJzz0,15758
|
|
12
|
+
man_spider/lib/util.py,sha256=Ti7R8JMcA9q1iSyqYPBn9aCQtNoua7jYCH70rfgslHE,3130
|
|
13
|
+
man_spider/manspider.py,sha256=cS80lHcexeJqGDBzPJs3GJj0YBcNMMJzQcVxfRnPjwA,8928
|
|
14
|
+
man_spider-1.1.2.dist-info/LICENSE,sha256=qvZcoAC_iNU83gvyvlLTL2TKCCmP0CBDzRQgXZKePAM,35102
|
|
15
|
+
man_spider-1.1.2.dist-info/METADATA,sha256=DppVaxKYFRX2r55Xzx-7ArPxGmn6ZKmS4lLcVpHhW6E,9501
|
|
16
|
+
man_spider-1.1.2.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
17
|
+
man_spider-1.1.2.dist-info/entry_points.txt,sha256=ECMHYrXRR3rO40LF4AiKmuM2DbPvdmkxINp0Wa_qVCc,55
|
|
18
|
+
man_spider-1.1.2.dist-info/RECORD,,
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
man_spider/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
man_spider/lib/__init__.py,sha256=ur53cnY4wqGh1C19LDk61D62vzk0iXZRYshU33Mqe-Q,86
|
|
3
|
-
man_spider/lib/errors.py,sha256=InHvv7ZfWn766Jm6DsWRRZCzWhWxaDzlfmGyDg3SOJo,1061
|
|
4
|
-
man_spider/lib/file.py,sha256=6k1U680OLjuM4uqteeTbUDZojpy7MVDBR3pBp_LD4hk,1503
|
|
5
|
-
man_spider/lib/logger.py,sha256=apDRFLWy2j7ShrxatHqBkYAGyv7b9FQyAO0uDvTHqdM,2440
|
|
6
|
-
man_spider/lib/parser/__init__.py,sha256=m0KGcdcwfM6xh0l1YFLvlXSeCI82auoB6ztrWN7qGyM,21
|
|
7
|
-
man_spider/lib/parser/parser.py,sha256=x2uzuS2ESZrAOR6hnfd5Goi8Sy04wRjNTXVf0LoGask,5006
|
|
8
|
-
man_spider/lib/processpool.py,sha256=KkT7ZCzi6_6c9bNlW04MioSb8G8muoUcxIIF8DXEMrA,3742
|
|
9
|
-
man_spider/lib/smb.py,sha256=uy9SbnwjYwiRh-7TVI7U0D8tcrU34o9pIHIAfo-IinQ,8974
|
|
10
|
-
man_spider/lib/spider.py,sha256=KcklxlgcTCOfBR6wlR8SRDGwES4M-IHedl7wyfjVrao,7185
|
|
11
|
-
man_spider/lib/spiderling.py,sha256=aVHkpyJI8YvKQyNldoLP7CzfMP0HYudpnzkzZx-wypo,15687
|
|
12
|
-
man_spider/lib/util.py,sha256=Ti7R8JMcA9q1iSyqYPBn9aCQtNoua7jYCH70rfgslHE,3130
|
|
13
|
-
man_spider/manspider.py,sha256=l4vfG_1CQjt6jVP_owAHybhajizSXTa9D3nocHOU3BY,8917
|
|
14
|
-
man_spider-1.1.1.dist-info/LICENSE,sha256=qvZcoAC_iNU83gvyvlLTL2TKCCmP0CBDzRQgXZKePAM,35102
|
|
15
|
-
man_spider-1.1.1.dist-info/METADATA,sha256=e1AtliskoGLNQ1iXBzwbtLDHzjRWe8JfWEWvQzIcRWM,9648
|
|
16
|
-
man_spider-1.1.1.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
17
|
-
man_spider-1.1.1.dist-info/entry_points.txt,sha256=ECMHYrXRR3rO40LF4AiKmuM2DbPvdmkxINp0Wa_qVCc,55
|
|
18
|
-
man_spider-1.1.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|