secator 0.3.1__py2.py3-none-any.whl → 0.3.3__py2.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/cli.py CHANGED
@@ -558,7 +558,7 @@ def health(json, debug):
558
558
  console.print('\n:wrench: [bold gold3]Checking installed addons ...[/]')
559
559
  table = get_health_table()
560
560
  with Live(table, console=console):
561
- for addon in ['google', 'mongodb', 'redis', 'dev', 'trace', 'build']:
561
+ for addon in ['worker', 'google', 'mongodb', 'redis', 'dev', 'trace', 'build']:
562
562
  addon_var = ADDONS_ENABLED[addon]
563
563
  info = {
564
564
  'name': addon,
@@ -612,7 +612,7 @@ def addons():
612
612
  def install_worker():
613
613
  "Install worker addon."
614
614
  run_install(
615
- cmd=f'{sys.executable} -m pip install .[worker]',
615
+ cmd=f'{sys.executable} -m pip install secator[worker]',
616
616
  title='worker addon',
617
617
  next_steps=[
618
618
  'Run "secator worker" to run a Celery worker using the file system as a backend and broker.',
@@ -626,7 +626,7 @@ def install_worker():
626
626
  def install_google():
627
627
  "Install google addon."
628
628
  run_install(
629
- cmd=f'{sys.executable} -m pip install .[google]',
629
+ cmd=f'{sys.executable} -m pip install secator[google]',
630
630
  title='google addon',
631
631
  next_steps=[
632
632
  'Set the "GOOGLE_CREDENTIALS_PATH" and "GOOGLE_DRIVE_PARENT_FOLDER_ID" environment variables.',
@@ -639,7 +639,7 @@ def install_google():
639
639
  def install_mongodb():
640
640
  "Install mongodb addon."
641
641
  run_install(
642
- cmd=f'{sys.executable} -m pip install .[mongodb]',
642
+ cmd=f'{sys.executable} -m pip install secator[mongodb]',
643
643
  title='mongodb addon',
644
644
  next_steps=[
645
645
  '[dim]\[optional][/] Run "docker run --name mongo -p 27017:27017 -d mongo:latest" to run a local MongoDB instance.',
@@ -653,7 +653,7 @@ def install_mongodb():
653
653
  def install_redis():
654
654
  "Install redis addon."
655
655
  run_install(
656
- cmd=f'{sys.executable} -m pip install .[redis]',
656
+ cmd=f'{sys.executable} -m pip install secator[redis]',
657
657
  title='redis addon',
658
658
  next_steps=[
659
659
  '[dim]\[optional][/] Run "docker run --name redis -p 6379:6379 -d redis" to run a local Redis instance.',
secator/definitions.py CHANGED
@@ -155,7 +155,7 @@ WORDS = 'words'
155
155
 
156
156
 
157
157
  # Create all folders
158
- for folder in [BIN_FOLDER, DATA_FOLDER, REPORTS_FOLDER, WORDLISTS_FOLDER, SCRIPTS_FOLDER, CVES_FOLDER, PAYLOADS_FOLDER,
158
+ for folder in [BIN_FOLDER, DATA_FOLDER, REPORTS_FOLDER, WORDLISTS_FOLDER, CVES_FOLDER, PAYLOADS_FOLDER,
159
159
  REVSHELLS_FOLDER, CELERY_DATA_FOLDER, CELERY_RESULTS_FOLDER]:
160
160
  if not os.path.exists(folder):
161
161
  console.print(f'[bold turquoise4]Creating folder {folder} ...[/] ', end='')
secator/installer.py CHANGED
@@ -306,7 +306,7 @@ def fmt_health_table_row(version_info, category=None):
306
306
  version = version_info['version']
307
307
  status = version_info['status']
308
308
  installed = version_info['installed']
309
- name_str = f'[magenta]{name}[/]'
309
+ name_str = f'[magenta]{name:<13}[/]'
310
310
 
311
311
  # Format version row
312
312
  _version = version or ''
secator/tasks/wpscan.py CHANGED
@@ -66,7 +66,7 @@ class wpscan(VulnHttp):
66
66
  },
67
67
  }
68
68
  output_types = [Vulnerability, Tag]
69
- install_cmd = 'sudo apt install build-essential && sudo gem install wpscan'
69
+ install_cmd = 'sudo apt install -y build-essential ruby-dev rubygems && sudo gem install wpscan'
70
70
  proxychains = False
71
71
  proxy_http = True
72
72
  proxy_socks5 = False
secator/utils.py CHANGED
@@ -416,6 +416,8 @@ def print_version():
416
416
  location = info['location']
417
417
  if status == 'outdated':
418
418
  console.print('[bold red] (outdated)[/]')
419
+ else:
420
+ console.print('')
419
421
  console.print(f'[bold gold3]Latest version[/]: {latest_version}', highlight=False)
420
422
  console.print(f'[bold gold3]Location[/]: {location}')
421
423
  console.print(f'[bold gold3]Python binary[/]: {sys.executable}')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: secator
3
- Version: 0.3.1
3
+ Version: 0.3.3
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
@@ -175,7 +175,15 @@ wget -O - https://raw.githubusercontent.com/freelabz/secator/main/scripts/instal
175
175
  <summary>Docker</summary>
176
176
 
177
177
  ```sh
178
- docker run -it freelabz/secator --help
178
+ docker run -it --rm --net=host freelabz/secator -v "$HOME/.secator:/root/.secator" --help
179
+ ```
180
+
181
+ The volume mount `-v` is necessary to save all `secator` reports to your host machine.
182
+
183
+ You can set up an alias to facilitate running `secator` from Docker:
184
+ ```sh
185
+ alias secator="docker run -it --rm --net=host freelabz/secator -v $HOME/.secator:/root/.secator"
186
+ secator --help
179
187
  ```
180
188
 
181
189
  </details>
@@ -1,14 +1,14 @@
1
1
  secator/.gitignore,sha256=da8MUc3hdb6Mo0WjZu2upn5uZMbXcBGvhdhTQ1L89HI,3093
2
2
  secator/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  secator/celery.py,sha256=QQlDblcCMfs7r2l0DhB2X8miLCtHE5MdC-XiGMK8IcA,12226
4
- secator/cli.py,sha256=ipkIGc5NBY-SLWENhdeueYmpOnDP2eGURX4xBIcSNic,31531
4
+ secator/cli.py,sha256=zwHB7JcWppX38IE39p4eSUUYDP5SdehYOJ-ByKNtVDw,31565
5
5
  secator/config.py,sha256=iOeRzq7u1rvR1-Oq5v9wGxQYB613X0xKGLIcrfhEGc4,3693
6
6
  secator/decorators.py,sha256=ZlrdUQ5kpisaNRI4-csQWwbrB4oXs6SXijramNMVqfE,10490
7
- secator/definitions.py,sha256=JxoqbhkFH6jj5UwaMnrueimZOb6Zi3qksWuLC5O15oI,7636
8
- secator/installer.py,sha256=pvyTVoG3prZm9V48CFCnIPjJQF7SdV9yU3sARnI12sI,9321
7
+ secator/definitions.py,sha256=TrEF29DLkD9niHoi41TyHx9AVbTA6VAc2Qz4YV7bbZA,7620
8
+ secator/installer.py,sha256=-_IBcOl0oMNRmWLtRLvI0EmPIfdR3jVPWiBoVGiiuSw,9325
9
9
  secator/report.py,sha256=g0stVCcx9klbUS01uKvWcxNE9MJfNFMexYA2SoDIWJU,2596
10
10
  secator/rich.py,sha256=W4PipeZfIVnERfW3ySeWSvnZ90jhCFiABBoERYy_6kM,3177
11
- secator/utils.py,sha256=i9nnkOuRQIZbWRfyOS1dsT4wfJ7vvaJeZ3IZPwX3vKM,10945
11
+ secator/utils.py,sha256=QzPeENTBTn4T2pxcHlmkQtX9snURwWJpwGB1MX_dSxs,10972
12
12
  secator/utils_test.py,sha256=xVF9RH1-p3X0TdmODJi4k62H7Xth96Ib7qnUZ4vAJs8,5043
13
13
  secator/configs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
14
  secator/configs/profiles/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -92,9 +92,9 @@ secator/tasks/nmap.py,sha256=LS5FBo-vFxbHVK4DxF5x-O2cAvAK3zL1pROT1GddX9E,9459
92
92
  secator/tasks/nuclei.py,sha256=7MlTygHd4EVz81ndrVwP5y6PZ-4j-Y8Oxuk3G3ayHPI,3343
93
93
  secator/tasks/searchsploit.py,sha256=l0uNj5Jzax3lVMiMDxC8V3-bQ05y-FPaOhVdro1ibV4,1713
94
94
  secator/tasks/subfinder.py,sha256=cpFyFCpVaDZ3QAjNId26ezOwntn3CA5Uk-AC2l0mo0E,1087
95
- secator/tasks/wpscan.py,sha256=OgFCWEPOjOVdFreBXZDLBRc-PrFmTUv97UaXmaAS9yc,5413
96
- secator-0.3.1.dist-info/METADATA,sha256=-y1zHhBhLVGECVIisVgjr7FEJQ_nIlrRGGJ0XxKZQ4s,13553
97
- secator-0.3.1.dist-info/WHEEL,sha256=wpsUbWzR9la66_V7_eWTdyvs6WD26tazKT2BBEAC-EM,105
98
- secator-0.3.1.dist-info/entry_points.txt,sha256=lPgsqqUXWgiuGSfKy-se5gHdQlAXIwS_A46NYq7Acic,44
99
- secator-0.3.1.dist-info/licenses/LICENSE,sha256=19W5Jsy4WTctNkqmZIqLRV1gTDOp01S3LDj9iSgWaJ0,2867
100
- secator-0.3.1.dist-info/RECORD,,
95
+ secator/tasks/wpscan.py,sha256=UVWnBPOQ1RDB2wzMswWR6vc6cucYgHtuJ8pLZoqCM40,5434
96
+ secator-0.3.3.dist-info/METADATA,sha256=ENNGyZUCSC56T6Qw6B81TJ3G7099tspaKsO7RF7qukw,13884
97
+ secator-0.3.3.dist-info/WHEEL,sha256=wpsUbWzR9la66_V7_eWTdyvs6WD26tazKT2BBEAC-EM,105
98
+ secator-0.3.3.dist-info/entry_points.txt,sha256=lPgsqqUXWgiuGSfKy-se5gHdQlAXIwS_A46NYq7Acic,44
99
+ secator-0.3.3.dist-info/licenses/LICENSE,sha256=19W5Jsy4WTctNkqmZIqLRV1gTDOp01S3LDj9iSgWaJ0,2867
100
+ secator-0.3.3.dist-info/RECORD,,