waymore 8.0__py3-none-any.whl → 8.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.
waymore/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "8.0"
1
+ __version__ = "8.2"
waymore/waymore.py CHANGED
@@ -1306,34 +1306,58 @@ def getConfig():
1306
1306
  useDefaults = False
1307
1307
  try:
1308
1308
  # Get the path of the config file. If -c / --config argument is not passed, then it defaults to config.yml in the same directory as the run file
1309
- waymorePath = (
1310
- Path(os.path.join(os.getenv("APPDATA", ""), "waymore"))
1311
- if os.name == "nt"
1312
- else (
1313
- Path(os.path.join(os.path.expanduser("~"), ".config", "waymore"))
1314
- if os.name == "posix"
1315
- else (
1316
- Path(
1317
- os.path.join(
1318
- os.path.expanduser("~"),
1319
- "Library",
1320
- "Application Support",
1321
- "waymore",
1322
- )
1323
- )
1324
- if os.name == "darwin"
1325
- else None
1326
- )
1327
- )
1328
- )
1329
- waymorePath.absolute
1309
+ if os.name == "nt":
1310
+ waymorePath = Path(os.path.join(os.getenv("APPDATA", ""), "waymore"))
1311
+ elif sys.platform == "darwin":
1312
+ waymorePath = Path(os.path.expanduser("~/Library/Application Support/waymore"))
1313
+ else:
1314
+ waymorePath = Path(os.path.expanduser("~/.config/waymore"))
1315
+
1330
1316
  if args.config is None:
1331
- if waymorePath == "":
1332
- configPath = "config.yml"
1333
- else:
1334
- configPath = Path(waymorePath / "config.yml")
1317
+ configPath = waymorePath / "config.yml"
1335
1318
  else:
1336
1319
  configPath = Path(args.config)
1320
+
1321
+ # If the config file doesn't exist, create the default one
1322
+ if not os.path.isfile(configPath):
1323
+ try:
1324
+ # Make sure the directory exists
1325
+ if configPath.parent != Path("."):
1326
+ os.makedirs(configPath.parent, exist_ok=True)
1327
+ # Create the default config content using the DEFAULT_* constants
1328
+ defaultConfig = f"""FILTER_CODE: {DEFAULT_FILTER_CODE}
1329
+ FILTER_MIME: {DEFAULT_FILTER_MIME}
1330
+ FILTER_URL: {DEFAULT_FILTER_URL}
1331
+ FILTER_KEYWORDS: {DEFAULT_FILTER_KEYWORDS}
1332
+ URLSCAN_API_KEY:
1333
+ VIRUSTOTAL_API_KEY:
1334
+ CONTINUE_RESPONSES_IF_PIPED: True
1335
+ WEBHOOK_DISCORD: YOUR_WEBHOOK
1336
+ TELEGRAM_BOT_TOKEN: YOUR_TOKEN
1337
+ TELEGRAM_CHAT_ID: YOUR_CHAT_ID
1338
+ DEFAULT_OUTPUT_DIR:
1339
+ INTELX_API_KEY:
1340
+ SOURCE_IP:
1341
+ """
1342
+ with open(configPath, "w", encoding="utf-8") as f:
1343
+ f.write(defaultConfig)
1344
+ writerr(
1345
+ colored(
1346
+ 'Config file not found - created default config at "'
1347
+ + str(configPath)
1348
+ + '"',
1349
+ "yellow",
1350
+ )
1351
+ )
1352
+ except Exception as e:
1353
+ writerr(
1354
+ colored(
1355
+ "Config file not found, but failed to create default config file: "
1356
+ + str(e),
1357
+ "red",
1358
+ )
1359
+ )
1360
+
1337
1361
  config = yaml.safe_load(open(configPath))
1338
1362
  try:
1339
1363
  FILTER_URL = config.get("FILTER_URL")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: waymore
3
- Version: 8.0
3
+ Version: 8.2
4
4
  Summary: Find way more from the Wayback Machine, Common Crawl, Alien Vault OTX, URLScan, VirusTotal & Intelligence X!
5
5
  Home-page: https://github.com/xnl-h4ck3r/waymore
6
6
  Author: xnl-h4ck3r
@@ -21,7 +21,7 @@ Dynamic: license-file
21
21
 
22
22
  <center><img src="https://github.com/xnl-h4ck3r/waymore/blob/main/waymore/images/title.png"></center>
23
23
 
24
- ## About - v8.0
24
+ ## About - v8.2
25
25
 
26
26
  The idea behind **waymore** is to find even more links from the Wayback Machine (plus other sources) than other existing tools.
27
27
 
@@ -0,0 +1,8 @@
1
+ waymore/__init__.py,sha256=2foLKfyOKthgtKMgXiATf2xYq4Dyc-ThTZtvyOyLM9I,21
2
+ waymore/waymore.py,sha256=6jieoU7gzTXrqWTBSwU3r0duH-5R4XpbLEsqmZio3DY,361369
3
+ waymore-8.2.dist-info/licenses/LICENSE,sha256=o_jq62xZ1YxI8tqzQKbNtqr3RW2i5sh0rk6ixCJEroU,1068
4
+ waymore-8.2.dist-info/METADATA,sha256=hFCSjii_ftfXba3VdYPoX-lvp0wbmdMeeieKX88egMs,54223
5
+ waymore-8.2.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
6
+ waymore-8.2.dist-info/entry_points.txt,sha256=YHy5EUf3r_7OTkt9jvylLjNeg7Z5yvIVm5RUAyfNcN4,49
7
+ waymore-8.2.dist-info/top_level.txt,sha256=RFTphkWaRu1N7lUWIPUjabgCPQ3ETmNllF7qze4JJ_s,8
8
+ waymore-8.2.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.10.1)
2
+ Generator: setuptools (80.10.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -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,,