moriarty-project 0.1.17__py3-none-any.whl → 0.1.19__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.
moriarty/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
1
  from __future__ import annotations
2
2
 
3
3
  __all__ = ["__version__"]
4
- __version__ = "0.1.17"
4
+ __version__ = "0.1.19"
@@ -8,13 +8,37 @@ import subprocess
8
8
  import shlex
9
9
  import shutil
10
10
  import logging
11
- import socket
12
11
  import fcntl
13
12
  import struct
14
13
  import array
15
14
  import platform
16
15
  import asyncio
17
- from typing import List, Dict, Tuple, Optional, Set, Any, Union
16
+ from .utils import (
17
+ is_root,
18
+ get_wireless_interfaces,
19
+ get_network_interfaces,
20
+ get_monitor_interfaces,
21
+ set_monitor_mode,
22
+ restore_network_interface,
23
+ start_monitor_mode,
24
+ stop_monitor_mode,
25
+ run_command_async,
26
+ randomize_mac,
27
+ get_interface_mac,
28
+ get_interface_ip,
29
+ get_interface_netmask,
30
+ get_interface_gateway,
31
+ is_wireless_interface,
32
+ get_interface_signal,
33
+ get_interface_ssid,
34
+ get_interface_channel,
35
+ get_interface_bitrate,
36
+ create_deauth_packet,
37
+ parse_airodump_csv,
38
+ parse_airodump_stations,
39
+ run_command,
40
+ command_exists
41
+ )
18
42
  from dataclasses import asdict
19
43
 
20
44
  import netifaces
@@ -131,14 +155,9 @@ def run_command(cmd: Union[str, List[str]], capture_output: bool = False,
131
155
 
132
156
  try:
133
157
  return subprocess.run(cmd, check=check, **kwargs)
134
- if f.read().strip() == '803': # ARPHRD_IEEE80211_RADIOTAP
135
- monitor_ifaces.append(interface)
136
- except (IOError, FileNotFoundError):
137
- continue
138
158
  except Exception as e:
139
- logger.error(f"Erro ao obter interfaces em modo monitor: {e}")
140
-
141
- return monitor_ifaces
159
+ logger.error(f"Erro ao executar comando: {e}")
160
+ raise
142
161
 
143
162
  def set_monitor_mode(interface: str, channel: int = None) -> bool:
144
163
  """Ativa o modo monitor em uma interface."""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: moriarty-project
3
- Version: 0.1.17
3
+ Version: 0.1.19
4
4
  Summary: Client-side OSINT toolkit with forensic-grade evidence handling.
5
5
  Project-URL: Homepage, https://github.com/DonatoReis/moriarty
6
6
  Project-URL: Documentation, https://github.com/DonatoReis/moriarty#readme
@@ -98,7 +98,7 @@ Description-Content-Type: text/markdown
98
98
  <!-- Badges -->
99
99
  <p align="center">
100
100
  <a href="https://pypi.org/project/moriarty-project/">
101
- <img src="https://img.shields.io/badge/version-0.1.17-blue" alt="Version 0.1.17">
101
+ <img src="https://img.shields.io/badge/version-0.1.19-blue" alt="Version 0.1.19">
102
102
  </a>
103
103
  <a href="https://www.python.org/downloads/">
104
104
  <img src="https://img.shields.io/pypi/pyversions/moriarty-project?color=blue" alt="Python Versions">
@@ -1,4 +1,4 @@
1
- moriarty/__init__.py,sha256=L2fbjocaZTjJE15HUUNFYfcFQWfvjP1fcAB1QUShkbU,85
1
+ moriarty/__init__.py,sha256=Yp4hHBhcnDfq44XpeeKzEotfwBbiVdxlSb_WrbBfoCQ,85
2
2
  moriarty/adapters/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  moriarty/agent/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  moriarty/assets/modules/.gitkeep,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -413,7 +413,7 @@ moriarty/modules/wifippler/core/attacks/wpa.py,sha256=meYN_ZOeAghXnht2GWUpLcXAbz
413
413
  moriarty/modules/wifippler/core/attacks/wps.py,sha256=yYx6VITE3QYGBwM8J1RO6yu_r45ZLWNDWwdVMaU6xho,17504
414
414
  moriarty/modules/wifippler/core/models/__init__.py,sha256=J6GPV457hbFy7Tdk2PNKzT8LnO9Cj3xqRDaQ8IoDptA,148
415
415
  moriarty/modules/wifippler/core/models/network.py,sha256=xUi1Ac7LWWsrihq8RfDu9dHLZFN4oALlNvfJhHxWgok,6709
416
- moriarty/modules/wifippler/core/utils/__init__.py,sha256=n1WMg5Jy8AbJLCSEAez427wE7QTNwrKhhtIMQoIMN_g,20151
416
+ moriarty/modules/wifippler/core/utils/__init__.py,sha256=rI06D6Ke0TfhBt-kU_uBTE46yOWIosNejlPdqRh3i3k,20422
417
417
  moriarty/net/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
418
418
  moriarty/net/dns_cache.py,sha256=JwuDYKqmuSD-hl7PMyyQAen57ut-uvIszYrMKT-i8pY,6022
419
419
  moriarty/net/dns_client.py,sha256=iem7FekC79ruwxWzG6eFkicYJi-urkRV0kNvj9uakM0,6591
@@ -427,7 +427,7 @@ moriarty/tests/test_email_service.py,sha256=mWqimjQRlljZNBuNePvSzhfq5FZ4mljrILGW
427
427
  moriarty/tests/test_models.py,sha256=etklIISEUts3banaSRDSjhv-g6kd4wxucchCmlJkx6Y,1282
428
428
  moriarty/tests/test_orchestrator.py,sha256=Do3M1qnbqPf_1pR3v89FXxhiwfYPZfXRvcfl05isQvs,856
429
429
  moriarty/tests/test_tls_client.py,sha256=bQ46yXlIYNZwPTd8WGs6eUynHj56hVosxBycSU1gJe4,461
430
- moriarty_project-0.1.17.dist-info/METADATA,sha256=5Q4nUsqSqJBBCjMtO1qJ2CLNLVnk-dE5f1fplqPIbbY,11709
431
- moriarty_project-0.1.17.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
432
- moriarty_project-0.1.17.dist-info/entry_points.txt,sha256=L4TAUKy7HAy5hT46ZqS6eNOCmUTMi4x7ehZkIkTNnuE,51
433
- moriarty_project-0.1.17.dist-info/RECORD,,
430
+ moriarty_project-0.1.19.dist-info/METADATA,sha256=YSht8jqV46n-YX4YuMesdIKlkKIsBtCcus1p-rrh7vE,11709
431
+ moriarty_project-0.1.19.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
432
+ moriarty_project-0.1.19.dist-info/entry_points.txt,sha256=L4TAUKy7HAy5hT46ZqS6eNOCmUTMi4x7ehZkIkTNnuE,51
433
+ moriarty_project-0.1.19.dist-info/RECORD,,