pyntcli 0.1.84__py3-none-any.whl → 0.1.85__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.
pyntcli/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.1.84"
1
+ __version__ = "0.1.85"
pyntcli/commands/burp.py CHANGED
@@ -290,6 +290,11 @@ class BurpCommand(sub_command.PyntSubCommand):
290
290
  ui_thread.print_generator(proxy_docker.stdout)
291
291
 
292
292
  util.wait_for_healthcheck("http://localhost:{}".format(args.port))
293
+ ui_thread.print(ui_thread.PrinterText(
294
+ util.GOT_INITIAL_HEALTHCHECK_MESSAGE,
295
+ ui_thread.PrinterText.INFO,
296
+ ))
297
+
293
298
  self._start_proxy(args)
294
299
 
295
300
  run_burp_xml(doc, args.proxy_port)
@@ -304,10 +309,10 @@ class BurpCommand(sub_command.PyntSubCommand):
304
309
  )
305
310
 
306
311
  with ui_thread.progress(
307
- "ws://localhost:{}/progress?scanId={}".format(args.port, self.scan_id),
308
- partial(lambda *args: None),
309
- "scan in progress...",
310
- 100,
312
+ "ws://localhost:{}/progress?scanId={}".format(args.port, self.scan_id),
313
+ partial(lambda *args: None),
314
+ "scan in progress...",
315
+ 100,
311
316
  ):
312
317
  html_report = self._get_report(args, "html")
313
318
  html_report_path = os.path.join(
@@ -161,6 +161,10 @@ class CommandSubCommand(sub_command.PyntSubCommand):
161
161
  ui_thread.print_generator(proxy_docker.stdout)
162
162
 
163
163
  util.wait_for_healthcheck("http://localhost:{}".format(args.port))
164
+ ui_thread.print(ui_thread.PrinterText(
165
+ util.GOT_INITIAL_HEALTHCHECK_MESSAGE,
166
+ ui_thread.PrinterText.INFO,
167
+ ))
164
168
 
165
169
  if args.captured_domains:
166
170
  ui_thread.print(
pyntcli/commands/har.py CHANGED
@@ -92,6 +92,13 @@ class HarSubCommand(sub_command.PyntSubCommand):
92
92
  healthcheck = partial(
93
93
  util.wait_for_healthcheck, "http://localhost:{}".format(port)
94
94
  )
95
+
96
+ healthcheck()
97
+ ui_thread.print(ui_thread.PrinterText(
98
+ util.GOT_INITIAL_HEALTHCHECK_MESSAGE,
99
+ ui_thread.PrinterText.INFO,
100
+ ))
101
+
95
102
  ui_thread.print_generator(ui_thread.AnsiText.wrap_gen(har_docker.stdout))
96
103
 
97
104
  with ui_thread.progress(
@@ -140,6 +140,10 @@ class ListenSubCommand(sub_command.PyntSubCommand):
140
140
  ui_thread.print_generator(proxy_docker.stdout)
141
141
 
142
142
  util.wait_for_healthcheck("http://localhost:{}".format(args.port))
143
+ ui_thread.print(ui_thread.PrinterText(
144
+ util.GOT_INITIAL_HEALTHCHECK_MESSAGE,
145
+ ui_thread.PrinterText.INFO,
146
+ ))
143
147
 
144
148
  self._start_proxy(args)
145
149
 
@@ -114,13 +114,20 @@ class NewmanSubCommand(sub_command.PyntSubCommand):
114
114
  healthcheck = partial(
115
115
  util.wait_for_healthcheck, "http://localhost:{}".format(port)
116
116
  )
117
+
118
+ healthcheck()
119
+ ui_thread.print(ui_thread.PrinterText(
120
+ util.GOT_INITIAL_HEALTHCHECK_MESSAGE,
121
+ ui_thread.PrinterText.INFO,
122
+ ))
123
+
117
124
  ui_thread.print_generator(ui_thread.AnsiText.wrap_gen(newman_docker.stdout))
118
125
 
119
126
  with ui_thread.progress(
120
- "ws://localhost:{}/progress".format(port),
121
- healthcheck,
122
- "scan in progress...",
123
- 100,
127
+ "ws://localhost:{}/progress".format(port),
128
+ healthcheck,
129
+ "scan in progress...",
130
+ 100,
124
131
  ):
125
132
  while newman_docker.is_alive():
126
133
  time.sleep(1)
@@ -104,6 +104,10 @@ class PostmanSubCommand(sub_command.PyntSubCommand):
104
104
  ui_thread.print_generator(postman_docker.stdout)
105
105
 
106
106
  util.wait_for_healthcheck("http://localhost:{}".format(args.port))
107
+ ui_thread.print(ui_thread.PrinterText(
108
+ util.GOT_INITIAL_HEALTHCHECK_MESSAGE,
109
+ ui_thread.PrinterText.INFO,
110
+ ))
107
111
 
108
112
  for scan_id in self.scan_id_generator(args.port):
109
113
  html_report = self.get_report(args.port, "html", scan_id)
pyntcli/commands/util.py CHANGED
@@ -13,7 +13,6 @@ from pyntcli.pynt_docker import pynt_container
13
13
  from pyntcli.ui import report
14
14
  from pyntcli.transport import pynt_requests
15
15
 
16
-
17
16
  logger = log.get_logger()
18
17
 
19
18
 
@@ -34,6 +33,7 @@ def find_open_port() -> int:
34
33
 
35
34
  HEALTHCHECK_TIMEOUT = 60
36
35
  HEALTHCHECK_INTERVAL = 0.1
36
+ GOT_INITIAL_HEALTHCHECK_MESSAGE = "Got initial pynt server health check"
37
37
 
38
38
 
39
39
  def wait_for_healthcheck(address):
@@ -67,7 +67,7 @@ class SomeFindingsOrWarningsException(Exception):
67
67
  pass
68
68
 
69
69
 
70
- @ contextmanager
70
+ @contextmanager
71
71
  def create_default_file_mounts(args):
72
72
  html_report_path = os.path.join(tempfile.gettempdir(), "results.html")
73
73
  json_report_path = os.path.join(tempfile.gettempdir(), "results.json")
pyntcli/main.py CHANGED
@@ -66,6 +66,9 @@ def logout():
66
66
  def main():
67
67
  print_header()
68
68
  try:
69
+ if len(argv) == 1:
70
+ pynt_cmd.root.usage()
71
+ return
69
72
  if argv[1] == "logout":
70
73
  logout()
71
74
  return
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyntcli
3
- Version: 0.1.84
3
+ Version: 0.1.85
4
4
  Summary: Command line utility to handle all of Pynt's different integrations
5
5
  Author-email: Pynt-io <support@pynt.io>
6
6
  Project-URL: Homepage, https://pynt.io
7
7
  Requires-Python: >=3.7
8
8
  Requires-Dist: docker
9
9
  Requires-Dist: rich
10
- Requires-Dist: requests >=2.28.2
10
+ Requires-Dist: requests ==2.31.0
11
11
  Requires-Dist: pem
12
12
  Requires-Dist: certifi >=2017.4.17
13
13
  Requires-Dist: logzio-python-handler >=4.1.0
@@ -1,22 +1,22 @@
1
- pyntcli/__init__.py,sha256=3Ugcq_g7QAJpn2vNez96An4skXBk9KuWBd2osYpu08Y,23
2
- pyntcli/main.py,sha256=wg2Is1ckRCb3EwsLFshDsbPKvntPOR7sDB2Nq-DW4wk,5689
1
+ pyntcli/__init__.py,sha256=wY2suKf-e8VDtbBWRFlwNkTJ9Nff03BK8zzI8EWGc48,23
2
+ pyntcli/main.py,sha256=5L3FXlkaxen79P5NPl72K0fmLMsk-Kjq_yjjlsxFkI8,5769
3
3
  pyntcli/analytics/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  pyntcli/analytics/send.py,sha256=pJOyOWl3g_Vm9apKK3LzNVqsnC6zsWA1bCK3ZegbLpc,3637
5
5
  pyntcli/auth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  pyntcli/auth/login.py,sha256=TljsRXbEkNI1YUrKm5mlTw4YiecYScYUsit8Z8vstss,5228
7
7
  pyntcli/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
- pyntcli/commands/burp.py,sha256=7OCLgmIpgXcrUdx0wUAnWg1ER982vsGGvtptNpNENMk,11480
9
- pyntcli/commands/command.py,sha256=0O7Za_cjT6vDkDfM0OTMPB6DLI3U1r1R7lXQydz7458,9495
10
- pyntcli/commands/har.py,sha256=mSCbTUnxQrKzJd-dAWoc6Tkw6tU1LDH7Ha1w2ylrrrg,3654
8
+ pyntcli/commands/burp.py,sha256=dSwFo_55b9e3YSaYh3SgPIIkR-zwmPf-FCn7qxodMHk,11645
9
+ pyntcli/commands/command.py,sha256=uvvxLXGHHmVdfKyazoyN5scY7OBw2wUJ6bOPH-SSSFI,9643
10
+ pyntcli/commands/har.py,sha256=o6GnRnLCXwoxucO3NPRl3MP4aNoJ37bhfU08Oq6KEbg,3846
11
11
  pyntcli/commands/id_command.py,sha256=UBEgMIpm4vauTCsKyixltiGUolNg_OfHEJvJ_i5BpJY,943
12
- pyntcli/commands/listen.py,sha256=JoDo3BirYf9f3Fr21qAQ7kIDmLbM5cuFzQtf8RQ_nhs,8484
13
- pyntcli/commands/newman.py,sha256=y0KolwMgsvoqPz2mp0QRug_qNr-ftOZbu_tN7h4bH7I,4826
14
- pyntcli/commands/postman.py,sha256=GWq4NJJ_9WdFiXk5rv2nTyMM27w50XLh4LKkuuWpw4I,4721
12
+ pyntcli/commands/listen.py,sha256=Q6T_YGH1-DEu7lRxnTcAzWrb0xwooim4KM67PHaQGBI,8632
13
+ pyntcli/commands/newman.py,sha256=v1XOEvM8l59fVW3IjeeQPhcOTVPfOEJ_ni0_i87Mucs,5034
14
+ pyntcli/commands/postman.py,sha256=VTi5qrMlCZ7mTQJ9KZ-t__K08RHnMnfjEnco9IXzGOc,4869
15
15
  pyntcli/commands/pynt_cmd.py,sha256=KOl9guUtesO2JcMM5nPKKkjnK6F9HV4jHHcoUk4KVhw,2825
16
16
  pyntcli/commands/root.py,sha256=dmgdzoFuf5LkwrkwvWf1MtlwTBgsVpS85Yr_cQCVuGA,3291
17
17
  pyntcli/commands/static_file_extensions.py,sha256=PZJb02BI-64tbU-j3rdCNsXzTh7gkIDGxGKbKNw3h5k,1995
18
18
  pyntcli/commands/sub_command.py,sha256=GF3-rE_qk2L4jGPFqHLm9SdGINmu3EakhjJTFyWjRms,374
19
- pyntcli/commands/util.py,sha256=oc3xrc7lUI3sM1-__5hw0COt8JcREHKFkOccFtG-rt0,3146
19
+ pyntcli/commands/util.py,sha256=spTI_3z-fd0q7o1htvl-mw9-yKbO2ZESDAL-AsgWCb0,3217
20
20
  pyntcli/log/__init__.py,sha256=cOGwOYzMoshEbZiiasBGkj6wF0SBu3Jdpl-AuakDesw,19
21
21
  pyntcli/log/log.py,sha256=cWCdWmUaAwePwdhYDcgNMEG9d9RM34sGahxBCYEdv2Y,1069
22
22
  pyntcli/pynt_docker/__init__.py,sha256=PQIOVxc7XXtMLfEX7ojgwf_Z3mmTllO3ZvzUZTPOxQY,30
@@ -36,8 +36,8 @@ pyntcli/ui/ui_thread.py,sha256=OVTbiIFMg2KgxAvHf7yy86xGm4RVS2vj_VYZkMi-SRY,4956
36
36
  tests/conftest.py,sha256=gToq5K74GtgeGQXjFvXSzMaE6axBYxAzcFG5XJPOXjI,427
37
37
  tests/auth/test_login.py,sha256=KFlzWhXBAuwdi7GXf16gCB3ya94LQG2wjcSChE149rQ,3798
38
38
  tests/store/test_cred_store.py,sha256=_7-917EtNC9eKEumO2_lt-7KuDmCwOZFaowCm7DbA_A,254
39
- pyntcli-0.1.84.dist-info/METADATA,sha256=IDf8-YB7CT9f2B4tdFgj7mzSZ9TVpvpEDfKvZGYysh4,463
40
- pyntcli-0.1.84.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
41
- pyntcli-0.1.84.dist-info/entry_points.txt,sha256=kcGmqAxXDttNk2EPRcqunc_LTVp61gzakz0v-GEE2SY,43
42
- pyntcli-0.1.84.dist-info/top_level.txt,sha256=u9MDStwVHB7UG8PUcODeWCul_NvzL2EzoLvSlgwLHFs,30
43
- pyntcli-0.1.84.dist-info/RECORD,,
39
+ pyntcli-0.1.85.dist-info/METADATA,sha256=hAEzszpQdHQ9E10oXo6pKK2XMpgPqTz9r4DISaACCLw,463
40
+ pyntcli-0.1.85.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
41
+ pyntcli-0.1.85.dist-info/entry_points.txt,sha256=kcGmqAxXDttNk2EPRcqunc_LTVp61gzakz0v-GEE2SY,43
42
+ pyntcli-0.1.85.dist-info/top_level.txt,sha256=u9MDStwVHB7UG8PUcODeWCul_NvzL2EzoLvSlgwLHFs,30
43
+ pyntcli-0.1.85.dist-info/RECORD,,