waymore 8.0__py3-none-any.whl → 8.1__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.
- waymore/__init__.py +1 -1
- waymore/waymore.py +40 -0
- {waymore-8.0.dist-info → waymore-8.1.dist-info}/METADATA +1 -1
- waymore-8.1.dist-info/RECORD +8 -0
- waymore-8.0.dist-info/RECORD +0 -8
- {waymore-8.0.dist-info → waymore-8.1.dist-info}/WHEEL +0 -0
- {waymore-8.0.dist-info → waymore-8.1.dist-info}/entry_points.txt +0 -0
- {waymore-8.0.dist-info → waymore-8.1.dist-info}/licenses/LICENSE +0 -0
- {waymore-8.0.dist-info → waymore-8.1.dist-info}/top_level.txt +0 -0
waymore/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "8.
|
|
1
|
+
__version__ = "8.1"
|
waymore/waymore.py
CHANGED
|
@@ -1334,6 +1334,46 @@ def getConfig():
|
|
|
1334
1334
|
configPath = Path(waymorePath / "config.yml")
|
|
1335
1335
|
else:
|
|
1336
1336
|
configPath = Path(args.config)
|
|
1337
|
+
|
|
1338
|
+
# If the config file doesn't exist, create the default one
|
|
1339
|
+
if not os.path.isfile(configPath):
|
|
1340
|
+
try:
|
|
1341
|
+
# Make sure the directory exists
|
|
1342
|
+
os.makedirs(os.path.dirname(configPath), exist_ok=True)
|
|
1343
|
+
# Create the default config content using the DEFAULT_* constants
|
|
1344
|
+
defaultConfig = f"""FILTER_CODE: {DEFAULT_FILTER_CODE}
|
|
1345
|
+
FILTER_MIME: {DEFAULT_FILTER_MIME}
|
|
1346
|
+
FILTER_URL: {DEFAULT_FILTER_URL}
|
|
1347
|
+
FILTER_KEYWORDS: {DEFAULT_FILTER_KEYWORDS}
|
|
1348
|
+
URLSCAN_API_KEY:
|
|
1349
|
+
VIRUSTOTAL_API_KEY:
|
|
1350
|
+
CONTINUE_RESPONSES_IF_PIPED: True
|
|
1351
|
+
WEBHOOK_DISCORD: YOUR_WEBHOOK
|
|
1352
|
+
TELEGRAM_BOT_TOKEN: YOUR_TOKEN
|
|
1353
|
+
TELEGRAM_CHAT_ID: YOUR_CHAT_ID
|
|
1354
|
+
DEFAULT_OUTPUT_DIR:
|
|
1355
|
+
INTELX_API_KEY:
|
|
1356
|
+
SOURCE_IP:
|
|
1357
|
+
"""
|
|
1358
|
+
with open(configPath, "w", encoding="utf-8") as f:
|
|
1359
|
+
f.write(defaultConfig)
|
|
1360
|
+
writerr(
|
|
1361
|
+
colored(
|
|
1362
|
+
'Config file not found - created default config at "'
|
|
1363
|
+
+ str(configPath)
|
|
1364
|
+
+ '"',
|
|
1365
|
+
"yellow",
|
|
1366
|
+
)
|
|
1367
|
+
)
|
|
1368
|
+
except Exception as e:
|
|
1369
|
+
writerr(
|
|
1370
|
+
colored(
|
|
1371
|
+
"Config file not found, but failed to create default config file: "
|
|
1372
|
+
+ str(e),
|
|
1373
|
+
"red",
|
|
1374
|
+
)
|
|
1375
|
+
)
|
|
1376
|
+
|
|
1337
1377
|
config = yaml.safe_load(open(configPath))
|
|
1338
1378
|
try:
|
|
1339
1379
|
FILTER_URL = config.get("FILTER_URL")
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
waymore/__init__.py,sha256=-MeBpGZjZAP00U7wuwS3KF0ZKG6ORosDm5YJ930rPuU,21
|
|
2
|
+
waymore/waymore.py,sha256=vt1WHsSLJ6w0GK0Scfr8UrkFUbzVxdLHRvUB_JhpJZk,361907
|
|
3
|
+
waymore-8.1.dist-info/licenses/LICENSE,sha256=o_jq62xZ1YxI8tqzQKbNtqr3RW2i5sh0rk6ixCJEroU,1068
|
|
4
|
+
waymore-8.1.dist-info/METADATA,sha256=ypwSIcrqfjZ_X_H8k93iKRR2wYc1b5gLT_i885TJxb8,54223
|
|
5
|
+
waymore-8.1.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
|
|
6
|
+
waymore-8.1.dist-info/entry_points.txt,sha256=YHy5EUf3r_7OTkt9jvylLjNeg7Z5yvIVm5RUAyfNcN4,49
|
|
7
|
+
waymore-8.1.dist-info/top_level.txt,sha256=RFTphkWaRu1N7lUWIPUjabgCPQ3ETmNllF7qze4JJ_s,8
|
|
8
|
+
waymore-8.1.dist-info/RECORD,,
|
waymore-8.0.dist-info/RECORD
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
waymore/__init__.py,sha256=fhOOMK5NU1T_rlAC37W34DQ8PV6d1T_rpCJtTL1qOD8,21
|
|
2
|
-
waymore/waymore.py,sha256=hQ6fEkUGx4cmF9JfsD38riKmtzyr77ud6LBP64a0aRk,360364
|
|
3
|
-
waymore-8.0.dist-info/licenses/LICENSE,sha256=o_jq62xZ1YxI8tqzQKbNtqr3RW2i5sh0rk6ixCJEroU,1068
|
|
4
|
-
waymore-8.0.dist-info/METADATA,sha256=pAYgVUDdgpEE9u4V7zUYKWuIcnTHaclLc-qFO3HoqQg,54223
|
|
5
|
-
waymore-8.0.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
|
|
6
|
-
waymore-8.0.dist-info/entry_points.txt,sha256=YHy5EUf3r_7OTkt9jvylLjNeg7Z5yvIVm5RUAyfNcN4,49
|
|
7
|
-
waymore-8.0.dist-info/top_level.txt,sha256=RFTphkWaRu1N7lUWIPUjabgCPQ3ETmNllF7qze4JJ_s,8
|
|
8
|
-
waymore-8.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|