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 +1 -1
- pyntcli/commands/burp.py +9 -4
- pyntcli/commands/command.py +4 -0
- pyntcli/commands/har.py +7 -0
- pyntcli/commands/listen.py +4 -0
- pyntcli/commands/newman.py +11 -4
- pyntcli/commands/postman.py +4 -0
- pyntcli/commands/util.py +2 -2
- pyntcli/main.py +3 -0
- {pyntcli-0.1.84.dist-info → pyntcli-0.1.85.dist-info}/METADATA +2 -2
- {pyntcli-0.1.84.dist-info → pyntcli-0.1.85.dist-info}/RECORD +14 -14
- {pyntcli-0.1.84.dist-info → pyntcli-0.1.85.dist-info}/WHEEL +0 -0
- {pyntcli-0.1.84.dist-info → pyntcli-0.1.85.dist-info}/entry_points.txt +0 -0
- {pyntcli-0.1.84.dist-info → pyntcli-0.1.85.dist-info}/top_level.txt +0 -0
pyntcli/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.1.
|
|
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
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
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(
|
pyntcli/commands/command.py
CHANGED
|
@@ -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(
|
pyntcli/commands/listen.py
CHANGED
|
@@ -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
|
|
pyntcli/commands/newman.py
CHANGED
|
@@ -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
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
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)
|
pyntcli/commands/postman.py
CHANGED
|
@@ -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
|
-
@
|
|
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
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pyntcli
|
|
3
|
-
Version: 0.1.
|
|
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
|
|
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=
|
|
2
|
-
pyntcli/main.py,sha256=
|
|
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=
|
|
9
|
-
pyntcli/commands/command.py,sha256=
|
|
10
|
-
pyntcli/commands/har.py,sha256=
|
|
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=
|
|
13
|
-
pyntcli/commands/newman.py,sha256=
|
|
14
|
-
pyntcli/commands/postman.py,sha256=
|
|
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=
|
|
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.
|
|
40
|
-
pyntcli-0.1.
|
|
41
|
-
pyntcli-0.1.
|
|
42
|
-
pyntcli-0.1.
|
|
43
|
-
pyntcli-0.1.
|
|
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,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|