secator 0.15.0__py3-none-any.whl → 0.15.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.

Potentially problematic release.


This version of secator might be problematic. Click here for more details.

secator/runners/_base.py CHANGED
@@ -11,7 +11,7 @@ import humanize
11
11
  from secator.definitions import ADDONS_ENABLED
12
12
  from secator.celery_utils import CeleryData
13
13
  from secator.config import CONFIG
14
- from secator.output_types import FINDING_TYPES, OutputType, Progress, Info, Warning, Error, Target, State
14
+ from secator.output_types import FINDING_TYPES, OUTPUT_TYPES, OutputType, Progress, Info, Warning, Error, Target, State
15
15
  from secator.report import Report
16
16
  from secator.rich import console, console_stdout
17
17
  from secator.runners._helpers import (get_task_folder_id, run_extractors)
@@ -924,8 +924,8 @@ class Runner:
924
924
  elif isinstance(item, Info) and item.task_id and item.task_id not in self.celery_ids:
925
925
  self.celery_ids.append(item.task_id)
926
926
 
927
- # If finding, run on_item hooks
928
- elif isinstance(item, tuple(FINDING_TYPES)):
927
+ # If output type, run on_item hooks
928
+ elif isinstance(item, tuple(OUTPUT_TYPES)):
929
929
  item = self.run_hooks('on_item', item)
930
930
  if not item:
931
931
  return
secator/tasks/gf.py CHANGED
@@ -31,5 +31,6 @@ class gf(Tagger):
31
31
 
32
32
  @staticmethod
33
33
  def on_item(self, item):
34
- item.extra_data = {'source': 'url'}
34
+ if isinstance(item, Tag):
35
+ item.extra_data = {'source': 'url'}
35
36
  return item
secator/tasks/naabu.py CHANGED
@@ -74,6 +74,7 @@ class naabu(ReconPort):
74
74
 
75
75
  @staticmethod
76
76
  def on_item(self, item):
77
- if item.host == '127.0.0.1':
78
- item.host = 'localhost'
77
+ if isinstance(item, Port):
78
+ if item.host == '127.0.0.1':
79
+ item.host = 'localhost'
79
80
  return item
@@ -86,6 +86,8 @@ class searchsploit(Command):
86
86
 
87
87
  @staticmethod
88
88
  def on_item(self, item):
89
+ if not isinstance(item, Exploit):
90
+ return item
89
91
  match = SEARCHSPLOIT_TITLE_REGEX.match(item.name)
90
92
  # if not match:
91
93
  # self._print(f'[bold red]{item.name} ({item.reference}) did not match SEARCHSPLOIT_TITLE_REGEX. Please report this issue.[/]') # noqa: E501
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: secator
3
- Version: 0.15.0
3
+ Version: 0.15.1
4
4
  Summary: The pentester's swiss knife.
5
5
  Project-URL: Homepage, https://github.com/freelabz/secator
6
6
  Project-URL: Issues, https://github.com/freelabz/secator/issues
@@ -21,6 +21,7 @@ Classifier: Programming Language :: Python :: 3.11
21
21
  Requires-Python: >=3.8
22
22
  Requires-Dist: beautifulsoup4<=5
23
23
  Requires-Dist: celery<6
24
+ Requires-Dist: click<8.2.0
24
25
  Requires-Dist: cpe<2
25
26
  Requires-Dist: distro<2
26
27
  Requires-Dist: dotmap<2
@@ -74,7 +74,7 @@ secator/output_types/user_account.py,sha256=EvF3Ebg9eXS_-iDguU1dSHZ9wAsJimEJznDv
74
74
  secator/output_types/vulnerability.py,sha256=nF7OT9zGez8sZvLrkhjBOORjVi8hCqfCYUFq3eZ_ywo,2870
75
75
  secator/output_types/warning.py,sha256=47GtmG083GqGPb_R5JDFmARJ9Mqrme58UxwJhgdGPuI,853
76
76
  secator/runners/__init__.py,sha256=EBbOk37vkBy9p8Hhrbi-2VtM_rTwQ3b-0ggTyiD22cE,290
77
- secator/runners/_base.py,sha256=M9IL8S_U4rcp6j_C_aFEjMpmAzVWQ9mjSMQbHAo_7Y8,32641
77
+ secator/runners/_base.py,sha256=X-FJ5NFLStyRnEQU4WIpHiBtnzYwa0VXOoPs8yZcuFc,32658
78
78
  secator/runners/_helpers.py,sha256=FoawlexiNl1-QMBfwBx0p4Hi7rGZxHe_RAMahqZuJ0Y,2883
79
79
  secator/runners/celery.py,sha256=bqvDTTdoHiGRCt0FRvlgFHQ_nsjKMP5P0PzGbwfCj_0,425
80
80
  secator/runners/command.py,sha256=JVnk5yLgOSsnmqyQgVG_A_S3GHV56jpKrcQhC2ftGVg,26919
@@ -100,7 +100,7 @@ secator/tasks/feroxbuster.py,sha256=djIHmJcYzZq-rcvufWmowT7XjjckM365WqzEAFBgJwI,
100
100
  secator/tasks/ffuf.py,sha256=1bFzkb1GpLZPqp8yxIVk1JAMiM-FQEIdp86k69_fXZY,2643
101
101
  secator/tasks/fping.py,sha256=w4_GaeCjkZ5Cdp-GP02faKgXmO7tf4U_lj4q0bg532Y,1163
102
102
  secator/tasks/gau.py,sha256=aiD3gBn9oyWocSFcLhLyGaS7Rek2QNnWx-rf-1wxkeU,1741
103
- secator/tasks/gf.py,sha256=4hhWT2HYJFP4jEaeeg9xen9pvfuvMQCsUwDGzFT41vM,993
103
+ secator/tasks/gf.py,sha256=vSX9oseNHQ9saWPPFHL7fxo_1mwRDx35DsQgD3clR30,1022
104
104
  secator/tasks/gitleaks.py,sha256=Mbg6eBwI4nm9GVSaYb6IN1eKtScbITweMVd7mMLDP-Q,2670
105
105
  secator/tasks/gospider.py,sha256=z6ulHgTIc5hzt5DCS7IUIBhRW8PCoBl569rUO00HsF4,2355
106
106
  secator/tasks/grype.py,sha256=D1MJldP0X7ffL8XGPWyQN82ljfhOgdWAMhHIveoz-V8,2566
@@ -110,10 +110,10 @@ secator/tasks/katana.py,sha256=0eDauUZW4cBLJ_S1J1SHx4LSC0fNOsRtngOplecG8So,5442
110
110
  secator/tasks/maigret.py,sha256=31OiuVYDw0FTtaTWqttzAZv9I8LTw7rNofnQ6Xi3wOA,2163
111
111
  secator/tasks/mapcidr.py,sha256=DnVOe8qtoQ14TB-Dgk8XSStQNq0myxujIS_QH2m2Wjc,1049
112
112
  secator/tasks/msfconsole.py,sha256=1GRpXJv1fRVpDyR9Nu4LDX-Iv1aov4BfAhcjHgyCkik,6584
113
- secator/tasks/naabu.py,sha256=aZR8CNg7uQqzsbr1Hbw7fqnIVwhiIKhAxj4DxxY8gIE,2412
113
+ secator/tasks/naabu.py,sha256=37IqL7D8l88TWXQQF4bulkzVePxIgx7Ap5HlDY7_SxI,2443
114
114
  secator/tasks/nmap.py,sha256=M2NeKT7JPD3UXaYdEfMAntnWuTYBEKv9IS10YB7iaX0,17021
115
115
  secator/tasks/nuclei.py,sha256=zawUyNvpdBO-Q5r3vXxcJ3Md6JEP45td7O8BZqi8bXw,5032
116
- secator/tasks/searchsploit.py,sha256=wKGQqVyOX8FqdcmQj3ULDmw0MzX1zL00kMugc0rcYZs,3479
116
+ secator/tasks/searchsploit.py,sha256=F3-apPGAQTQcIcwLVK3tk-wy4fivCc6f9W82hlAy-ok,3530
117
117
  secator/tasks/subfinder.py,sha256=heW9vE92GFXdFF1qipvAr4VMXFhgOk7D7c204CTbkZY,1297
118
118
  secator/tasks/testssl.py,sha256=BIhy0iEG3CsEWu0MFe8bpXZWziw5GW8pPrXUDC0SU6I,11639
119
119
  secator/tasks/trivy.py,sha256=P1qAfLmRzndEBMvGWXCDjB_4cRNP89pBR3HNK2801fE,3318
@@ -121,8 +121,8 @@ secator/tasks/wafw00f.py,sha256=YSV796pQmfWVy4VjOOljX2YqSh1Jn6d474xypcPxz8o,2774
121
121
  secator/tasks/wpprobe.py,sha256=VpLzTLIlW-tTx7tJJU7aEUDQFr30li7oO3BLHQ77NMs,4069
122
122
  secator/tasks/wpscan.py,sha256=eiTvHQqVJArX1qRAwjmB9T3GxXQlT7_HSUYuTi0VS8s,5796
123
123
  secator/workflows/__init__.py,sha256=R_TTyjg9f2Ph2_LYiF0lL07IjTrfRE_zqJzy-N7_WCk,675
124
- secator-0.15.0.dist-info/METADATA,sha256=f_wo6Vt38MV5WD2Wwf_I9obDL-bhpeTOd0hJsZhxQQ4,15779
125
- secator-0.15.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
126
- secator-0.15.0.dist-info/entry_points.txt,sha256=lPgsqqUXWgiuGSfKy-se5gHdQlAXIwS_A46NYq7Acic,44
127
- secator-0.15.0.dist-info/licenses/LICENSE,sha256=19W5Jsy4WTctNkqmZIqLRV1gTDOp01S3LDj9iSgWaJ0,2867
128
- secator-0.15.0.dist-info/RECORD,,
124
+ secator-0.15.1.dist-info/METADATA,sha256=CM2np8h6zlS75Mbg8QGx-GMxNHPyfOSjWVi8g0U0ojE,15806
125
+ secator-0.15.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
126
+ secator-0.15.1.dist-info/entry_points.txt,sha256=lPgsqqUXWgiuGSfKy-se5gHdQlAXIwS_A46NYq7Acic,44
127
+ secator-0.15.1.dist-info/licenses/LICENSE,sha256=19W5Jsy4WTctNkqmZIqLRV1gTDOp01S3LDj9iSgWaJ0,2867
128
+ secator-0.15.1.dist-info/RECORD,,