pyntcli 0.1.122__py3-none-any.whl → 0.1.124__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/har.py +16 -3
- pyntcli/pynt_docker/pynt_container.py +2 -0
- {pyntcli-0.1.122.dist-info → pyntcli-0.1.124.dist-info}/METADATA +1 -1
- {pyntcli-0.1.122.dist-info → pyntcli-0.1.124.dist-info}/RECORD +8 -8
- {pyntcli-0.1.122.dist-info → pyntcli-0.1.124.dist-info}/WHEEL +1 -1
- {pyntcli-0.1.122.dist-info → pyntcli-0.1.124.dist-info}/entry_points.txt +0 -0
- {pyntcli-0.1.122.dist-info → pyntcli-0.1.124.dist-info}/top_level.txt +0 -0
pyntcli/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.1.
|
|
1
|
+
__version__ = "0.1.124"
|
pyntcli/commands/har.py
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import argparse
|
|
2
|
-
import
|
|
2
|
+
import json
|
|
3
3
|
import os
|
|
4
|
-
|
|
4
|
+
import time
|
|
5
5
|
import webbrowser
|
|
6
|
+
from functools import partial
|
|
7
|
+
|
|
8
|
+
from pyntcli.commands import sub_command, util
|
|
6
9
|
from pyntcli.pynt_docker import pynt_container
|
|
7
10
|
from pyntcli.ui import ui_thread
|
|
8
|
-
from pyntcli.commands import sub_command, util
|
|
9
11
|
|
|
10
12
|
|
|
11
13
|
def har_usage():
|
|
@@ -81,6 +83,17 @@ class HarSubCommand(sub_command.PyntSubCommand):
|
|
|
81
83
|
)
|
|
82
84
|
return
|
|
83
85
|
|
|
86
|
+
try:
|
|
87
|
+
with open(args.har, "r") as f:
|
|
88
|
+
json.load(f)
|
|
89
|
+
except json.JSONDecodeError:
|
|
90
|
+
ui_thread.print(
|
|
91
|
+
ui_thread.PrinterText(
|
|
92
|
+
"Malformed HAR file. Please verify the HAR format and try again.",
|
|
93
|
+
ui_thread.PrinterText.WARNING,
|
|
94
|
+
)
|
|
95
|
+
)
|
|
96
|
+
|
|
84
97
|
har_name = os.path.basename(args.har)
|
|
85
98
|
container_config.docker_arguments += ["--har", har_name]
|
|
86
99
|
container_config.mounts.append(
|
|
@@ -171,6 +171,8 @@ def get_docker_mounts(args: argparse.Namespace) -> list:
|
|
|
171
171
|
if "host_ca" in args and args.host_ca:
|
|
172
172
|
ca_name = os.path.basename(args.host_ca)
|
|
173
173
|
mounts.append(create_mount(os.path.abspath(args.host_ca), "/etc/pynt/{}".format(ca_name)))
|
|
174
|
+
mounts.append(create_mount(os.path.abspath(args.host_ca),
|
|
175
|
+
"/usr/local/share/ca-certificates/pynt_ca.crt:ro"))
|
|
174
176
|
|
|
175
177
|
return mounts
|
|
176
178
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
ignoreTests/conftest.py,sha256=gToq5K74GtgeGQXjFvXSzMaE6axBYxAzcFG5XJPOXjI,427
|
|
2
2
|
ignoreTests/auth/login.py,sha256=7GeBirHTD9t6EassLYsegCw1FZHkfjvVW1Z5uybHzgM,3801
|
|
3
3
|
ignoreTests/store/cred_store.py,sha256=_7-917EtNC9eKEumO2_lt-7KuDmCwOZFaowCm7DbA_A,254
|
|
4
|
-
pyntcli/__init__.py,sha256=
|
|
4
|
+
pyntcli/__init__.py,sha256=tmsxgW6SfiJcRGxMVpUpnAcFyVj-yslrb_3DlMlv-AU,24
|
|
5
5
|
pyntcli/main.py,sha256=RD0W2_0ogYBCXubo-YewxHYkiIXxNv6NkZOh3n1VujE,5964
|
|
6
6
|
pyntcli/analytics/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
pyntcli/analytics/send.py,sha256=0hJ0WJNFHLqyohtRr_xOg5WEXzxHrUOlcePPg-k65Hk,3846
|
|
@@ -10,7 +10,7 @@ pyntcli/auth/login.py,sha256=qtdoCgWIPi3_YXehI7SVk_E8aDVhH39wGc87tlkazSE,5558
|
|
|
10
10
|
pyntcli/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
11
|
pyntcli/commands/burp.py,sha256=9kcqjC9Rgj5oZimGZuA_oO71Hn2Z3py8k5vr-eMKnUM,14317
|
|
12
12
|
pyntcli/commands/command.py,sha256=IlVYe4MSAvH5c6ytcBhgh8TufxcbC_ddiuHkvMoPEkQ,9240
|
|
13
|
-
pyntcli/commands/har.py,sha256=
|
|
13
|
+
pyntcli/commands/har.py,sha256=3GfXzeSEDqthsgodvQ8nC3hIaZ4cgsFM3ycgnLX3gjM,5644
|
|
14
14
|
pyntcli/commands/id_command.py,sha256=UBEgMIpm4vauTCsKyixltiGUolNg_OfHEJvJ_i5BpJY,943
|
|
15
15
|
pyntcli/commands/listen.py,sha256=YkX6ntHWf4KGiYjIzUn-HNJ8w4z8jhN7bvPnvmV0Lo0,6987
|
|
16
16
|
pyntcli/commands/newman.py,sha256=5fbDYzUTwrdeKDlhB8DN9UvnRvjwKGy69AV1_iJ0APc,5889
|
|
@@ -25,7 +25,7 @@ pyntcli/log/__init__.py,sha256=cOGwOYzMoshEbZiiasBGkj6wF0SBu3Jdpl-AuakDesw,19
|
|
|
25
25
|
pyntcli/log/log.py,sha256=YXCvcCzuhQ5QUT2L02uQEdN_lTCzLEuet4OnLuEnjlM,112
|
|
26
26
|
pyntcli/pynt_docker/__init__.py,sha256=PQIOVxc7XXtMLfEX7ojgwf_Z3mmTllO3ZvzUZTPOxQY,30
|
|
27
27
|
pyntcli/pynt_docker/container_utils.py,sha256=DeI-uSgdcO_2rGs2dvQ5gBDNo_iKKuPIQO2D9oej5Gw,1485
|
|
28
|
-
pyntcli/pynt_docker/pynt_container.py,sha256=
|
|
28
|
+
pyntcli/pynt_docker/pynt_container.py,sha256=jgBrv4Sk4YT42YIMlsgXBN-ipxSosxBJoxfb0YISm2U,13606
|
|
29
29
|
pyntcli/saas_client/__init__.py,sha256=HPBzoC5a6F5_WkHubcjq_W4m1OQ9i0TX8QXBtJlKm1M,26
|
|
30
30
|
pyntcli/saas_client/saas_client.py,sha256=Cpf1pitVlxjW7KpchPL7Q-DgUqw6A8ldCtDlBXaPig0,1663
|
|
31
31
|
pyntcli/store/__init__.py,sha256=1fP8cEAQCF_myja3gnhHH9FEqtBiOJ-2aBmUXSKBdFA,41
|
|
@@ -42,8 +42,8 @@ pyntcli/ui/report.py,sha256=W-icPSZrGLOubXgam0LpOvHLl_aZg9Zx9qIkL8Ym5PE,1930
|
|
|
42
42
|
pyntcli/ui/ui_thread.py,sha256=XUBgLpYQjVhrilU-ofw7VSXgTiwneSdTxm61EvC3x4Q,5091
|
|
43
43
|
tests/test_utils.py,sha256=t5fTQUk1U_Js6iMxcGYGqt4C-crzOJ0CqCKtLkRtUi0,2050
|
|
44
44
|
tests/commands/test_pynt_cmd.py,sha256=J4JrEuD_qSVN76Fu6bKRjrxWSwCTXVEAzVPYdXMa0tI,8826
|
|
45
|
-
pyntcli-0.1.
|
|
46
|
-
pyntcli-0.1.
|
|
47
|
-
pyntcli-0.1.
|
|
48
|
-
pyntcli-0.1.
|
|
49
|
-
pyntcli-0.1.
|
|
45
|
+
pyntcli-0.1.124.dist-info/METADATA,sha256=m4vm0TAfxltbO3oZ1xXcEgkupwWEbYA12cFlJuJcNuY,427
|
|
46
|
+
pyntcli-0.1.124.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
47
|
+
pyntcli-0.1.124.dist-info/entry_points.txt,sha256=kcGmqAxXDttNk2EPRcqunc_LTVp61gzakz0v-GEE2SY,43
|
|
48
|
+
pyntcli-0.1.124.dist-info/top_level.txt,sha256=8-NQ8a-eg-nTcY6rsgl8JcCu5s9mlOuZI-0vXZH4hYc,31
|
|
49
|
+
pyntcli-0.1.124.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|