waymore 8.0__tar.gz → 8.1__tar.gz
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-8.0/waymore.egg-info → waymore-8.1}/PKG-INFO +1 -1
- {waymore-8.0 → waymore-8.1}/setup.py +80 -80
- waymore-8.1/waymore/__init__.py +1 -0
- {waymore-8.0 → waymore-8.1}/waymore/waymore.py +40 -0
- {waymore-8.0 → waymore-8.1/waymore.egg-info}/PKG-INFO +1 -1
- waymore-8.0/waymore/__init__.py +0 -1
- {waymore-8.0 → waymore-8.1}/LICENSE +0 -0
- {waymore-8.0 → waymore-8.1}/README.md +0 -0
- {waymore-8.0 → waymore-8.1}/pyproject.toml +0 -0
- {waymore-8.0 → waymore-8.1}/requirements.txt +0 -0
- {waymore-8.0 → waymore-8.1}/setup.cfg +0 -0
- {waymore-8.0 → waymore-8.1}/tests/test_import.py +0 -0
- {waymore-8.0 → waymore-8.1}/waymore.egg-info/SOURCES.txt +0 -0
- {waymore-8.0 → waymore-8.1}/waymore.egg-info/dependency_links.txt +0 -0
- {waymore-8.0 → waymore-8.1}/waymore.egg-info/entry_points.txt +0 -0
- {waymore-8.0 → waymore-8.1}/waymore.egg-info/requires.txt +0 -0
- {waymore-8.0 → waymore-8.1}/waymore.egg-info/top_level.txt +0 -0
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
#!/usr/bin/env python
|
|
2
|
-
import os
|
|
3
|
-
import re
|
|
4
|
-
import shutil
|
|
5
|
-
|
|
6
|
-
from setuptools import find_packages, setup
|
|
7
|
-
|
|
8
|
-
# Read version from __init__.py without importing
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
def get_version():
|
|
12
|
-
init_path = os.path.join(os.path.dirname(__file__), "waymore", "__init__.py")
|
|
13
|
-
with open(init_path, encoding="utf-8") as f:
|
|
14
|
-
content = f.read()
|
|
15
|
-
match = re.search(r'__version__\s*=\s*["\']([^"\']+)["\']', content)
|
|
16
|
-
if match:
|
|
17
|
-
return match.group(1)
|
|
18
|
-
raise RuntimeError("Unable to find version string.")
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
target_directory = (
|
|
22
|
-
os.path.join(os.getenv("APPDATA", ""), "waymore")
|
|
23
|
-
if os.name == "nt"
|
|
24
|
-
else (
|
|
25
|
-
os.path.join(os.path.expanduser("~"), ".config", "waymore")
|
|
26
|
-
if os.name == "posix"
|
|
27
|
-
else (
|
|
28
|
-
os.path.join(os.path.expanduser("~"), "Library", "Application Support", "waymore")
|
|
29
|
-
if os.name == "darwin"
|
|
30
|
-
else None
|
|
31
|
-
)
|
|
32
|
-
)
|
|
33
|
-
)
|
|
34
|
-
|
|
35
|
-
# Copy the config.yml file to the target directory if it exists
|
|
36
|
-
configNew = False
|
|
37
|
-
if target_directory and os.path.isfile("config.yml"):
|
|
38
|
-
os.makedirs(target_directory, exist_ok=True)
|
|
39
|
-
# If file already exists, create a new one
|
|
40
|
-
if os.path.isfile(target_directory + "/config.yml"):
|
|
41
|
-
configNew = True
|
|
42
|
-
os.rename(target_directory + "/config.yml", target_directory + "/config.yml.OLD")
|
|
43
|
-
shutil.copy("config.yml", target_directory)
|
|
44
|
-
os.rename(target_directory + "/config.yml", target_directory + "/config.yml.NEW")
|
|
45
|
-
os.rename(target_directory + "/config.yml.OLD", target_directory + "/config.yml")
|
|
46
|
-
else:
|
|
47
|
-
shutil.copy("config.yml", target_directory)
|
|
48
|
-
|
|
49
|
-
setup(
|
|
50
|
-
name="waymore",
|
|
51
|
-
packages=find_packages(),
|
|
52
|
-
version=get_version(),
|
|
53
|
-
description="Find way more from the Wayback Machine, Common Crawl, Alien Vault OTX, URLScan & VirusTotal!",
|
|
54
|
-
long_description=open("README.md", encoding="utf-8").read(),
|
|
55
|
-
long_description_content_type="text/markdown",
|
|
56
|
-
author="@xnl-h4ck3r",
|
|
57
|
-
url="https://github.com/xnl-h4ck3r/waymore",
|
|
58
|
-
install_requires=[
|
|
59
|
-
"requests",
|
|
60
|
-
"pyyaml",
|
|
61
|
-
"termcolor",
|
|
62
|
-
"psutil",
|
|
63
|
-
"urlparse3",
|
|
64
|
-
"tldextract",
|
|
65
|
-
],
|
|
66
|
-
entry_points={
|
|
67
|
-
"console_scripts": [
|
|
68
|
-
"waymore = waymore.waymore:main",
|
|
69
|
-
],
|
|
70
|
-
},
|
|
71
|
-
)
|
|
72
|
-
|
|
73
|
-
if configNew:
|
|
74
|
-
print(
|
|
75
|
-
"\n\033[33mIMPORTANT: The file "
|
|
76
|
-
+ target_directory
|
|
77
|
-
+ "/config.yml already exists.\nCreating config.yml.NEW but leaving existing config.\nIf you need the new file, then remove the current one and rename config.yml.NEW to config.yml\n\033[0m"
|
|
78
|
-
)
|
|
79
|
-
else:
|
|
80
|
-
print("\n\033[92mThe file " + target_directory + "/config.yml has been created.\n\033[0m")
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
import os
|
|
3
|
+
import re
|
|
4
|
+
import shutil
|
|
5
|
+
|
|
6
|
+
from setuptools import find_packages, setup
|
|
7
|
+
|
|
8
|
+
# Read version from __init__.py without importing
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def get_version():
|
|
12
|
+
init_path = os.path.join(os.path.dirname(__file__), "waymore", "__init__.py")
|
|
13
|
+
with open(init_path, encoding="utf-8") as f:
|
|
14
|
+
content = f.read()
|
|
15
|
+
match = re.search(r'__version__\s*=\s*["\']([^"\']+)["\']', content)
|
|
16
|
+
if match:
|
|
17
|
+
return match.group(1)
|
|
18
|
+
raise RuntimeError("Unable to find version string.")
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
target_directory = (
|
|
22
|
+
os.path.join(os.getenv("APPDATA", ""), "waymore")
|
|
23
|
+
if os.name == "nt"
|
|
24
|
+
else (
|
|
25
|
+
os.path.join(os.path.expanduser("~"), ".config", "waymore")
|
|
26
|
+
if os.name == "posix"
|
|
27
|
+
else (
|
|
28
|
+
os.path.join(os.path.expanduser("~"), "Library", "Application Support", "waymore")
|
|
29
|
+
if os.name == "darwin"
|
|
30
|
+
else None
|
|
31
|
+
)
|
|
32
|
+
)
|
|
33
|
+
)
|
|
34
|
+
|
|
35
|
+
# Copy the config.yml file to the target directory if it exists
|
|
36
|
+
configNew = False
|
|
37
|
+
if target_directory and os.path.isfile("config.yml"):
|
|
38
|
+
os.makedirs(target_directory, exist_ok=True)
|
|
39
|
+
# If file already exists, create a new one
|
|
40
|
+
if os.path.isfile(target_directory + "/config.yml"):
|
|
41
|
+
configNew = True
|
|
42
|
+
os.rename(target_directory + "/config.yml", target_directory + "/config.yml.OLD")
|
|
43
|
+
shutil.copy("config.yml", target_directory)
|
|
44
|
+
os.rename(target_directory + "/config.yml", target_directory + "/config.yml.NEW")
|
|
45
|
+
os.rename(target_directory + "/config.yml.OLD", target_directory + "/config.yml")
|
|
46
|
+
else:
|
|
47
|
+
shutil.copy("config.yml", target_directory)
|
|
48
|
+
|
|
49
|
+
setup(
|
|
50
|
+
name="waymore",
|
|
51
|
+
packages=find_packages(),
|
|
52
|
+
version=get_version(),
|
|
53
|
+
description="Find way more from the Wayback Machine, Common Crawl, Alien Vault OTX, URLScan & VirusTotal!",
|
|
54
|
+
long_description=open("README.md", encoding="utf-8").read(),
|
|
55
|
+
long_description_content_type="text/markdown",
|
|
56
|
+
author="@xnl-h4ck3r",
|
|
57
|
+
url="https://github.com/xnl-h4ck3r/waymore",
|
|
58
|
+
install_requires=[
|
|
59
|
+
"requests",
|
|
60
|
+
"pyyaml",
|
|
61
|
+
"termcolor",
|
|
62
|
+
"psutil",
|
|
63
|
+
"urlparse3",
|
|
64
|
+
"tldextract",
|
|
65
|
+
],
|
|
66
|
+
entry_points={
|
|
67
|
+
"console_scripts": [
|
|
68
|
+
"waymore = waymore.waymore:main",
|
|
69
|
+
],
|
|
70
|
+
},
|
|
71
|
+
)
|
|
72
|
+
|
|
73
|
+
if configNew:
|
|
74
|
+
print(
|
|
75
|
+
"\n\033[33mIMPORTANT: The file "
|
|
76
|
+
+ target_directory
|
|
77
|
+
+ "/config.yml already exists.\nCreating config.yml.NEW but leaving existing config.\nIf you need the new file, then remove the current one and rename config.yml.NEW to config.yml\n\033[0m"
|
|
78
|
+
)
|
|
79
|
+
else:
|
|
80
|
+
print("\n\033[92mThe file " + target_directory + "/config.yml has been created.\n\033[0m")
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "8.1"
|
|
@@ -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")
|
waymore-8.0/waymore/__init__.py
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "8.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|