pyntcli 0.1.101__py3-none-any.whl → 0.1.102__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 +1 -1
- pyntcli/commands/newman.py +1 -1
- pyntcli/commands/postman.py +1 -1
- pyntcli/pynt_docker/pynt_container.py +6 -6
- {pyntcli-0.1.101.dist-info → pyntcli-0.1.102.dist-info}/METADATA +1 -1
- {pyntcli-0.1.101.dist-info → pyntcli-0.1.102.dist-info}/RECORD +10 -10
- {pyntcli-0.1.101.dist-info → pyntcli-0.1.102.dist-info}/WHEEL +0 -0
- {pyntcli-0.1.101.dist-info → pyntcli-0.1.102.dist-info}/entry_points.txt +0 -0
- {pyntcli-0.1.101.dist-info → pyntcli-0.1.102.dist-info}/top_level.txt +0 -0
pyntcli/__init__.py
CHANGED
pyntcli/commands/har.py
CHANGED
|
@@ -61,7 +61,7 @@ class HarSubCommand(sub_command.PyntSubCommand):
|
|
|
61
61
|
container_config = pynt_container.DockerContainerConfig(
|
|
62
62
|
args,
|
|
63
63
|
"har",
|
|
64
|
-
pynt_container.PyntDockerPort(src=
|
|
64
|
+
pynt_container.PyntDockerPort(src=PYNT_CONTAINER_INTERNAL_PORT, dest=port, name="--port")
|
|
65
65
|
)
|
|
66
66
|
|
|
67
67
|
if not os.path.isfile(args.har):
|
pyntcli/commands/newman.py
CHANGED
|
@@ -60,7 +60,7 @@ class NewmanSubCommand(sub_command.PyntSubCommand):
|
|
|
60
60
|
container_config = pynt_container.DockerContainerConfig(
|
|
61
61
|
args,
|
|
62
62
|
"newman",
|
|
63
|
-
pynt_container.PyntDockerPort(src=
|
|
63
|
+
pynt_container.PyntDockerPort(src=PYNT_CONTAINER_INTERNAL_PORT, dest=port, name="--port")
|
|
64
64
|
)
|
|
65
65
|
|
|
66
66
|
if not os.path.isfile(args.collection):
|
pyntcli/commands/postman.py
CHANGED
|
@@ -98,7 +98,7 @@ class PostmanSubCommand(sub_command.PyntSubCommand):
|
|
|
98
98
|
container_config = pynt_container.DockerContainerConfig(
|
|
99
99
|
args,
|
|
100
100
|
"postman",
|
|
101
|
-
pynt_container.PyntDockerPort(args.port,
|
|
101
|
+
pynt_container.PyntDockerPort(src=PYNT_CONTAINER_INTERNAL_PORT, port=args.port, name="--port"))
|
|
102
102
|
|
|
103
103
|
postman_docker = pynt_container.PyntContainerNative(container_config)
|
|
104
104
|
postman_docker.prepare_client()
|
|
@@ -97,7 +97,8 @@ class DockerContainerConfig:
|
|
|
97
97
|
self.docker_arguments.append(p.name)
|
|
98
98
|
self.docker_arguments.append(str(p.dest))
|
|
99
99
|
else:
|
|
100
|
-
|
|
100
|
+
# `dest` is the host port, `src` is in the container
|
|
101
|
+
ports[str(p.dest)] = int(p.src)
|
|
101
102
|
|
|
102
103
|
if create_network_host:
|
|
103
104
|
self.docker_type = PyntNativeHost(network="host")
|
|
@@ -233,11 +234,10 @@ class PyntContainerNative:
|
|
|
233
234
|
|
|
234
235
|
docker_type_options = []
|
|
235
236
|
for key, value in self.config.docker_type.get_arguments().items():
|
|
236
|
-
if key == "ports":
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
docker_type_options.extend([f"-p", f"{s}:{d}"])
|
|
237
|
+
if key == "ports" and isinstance(value, dict):
|
|
238
|
+
for host_port, container_port in value.items():
|
|
239
|
+
# --publish HOST_PORT:CONTAINER_PORT for each port
|
|
240
|
+
docker_type_options.extend(["-p", f"{host_port}:{container_port}"])
|
|
241
241
|
else:
|
|
242
242
|
docker_type_options.extend([f"--{key}={value}"])
|
|
243
243
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
ignoreTests/conftest.py,sha256=gToq5K74GtgeGQXjFvXSzMaE6axBYxAzcFG5XJPOXjI,427
|
|
2
2
|
ignoreTests/auth/login.py,sha256=KFlzWhXBAuwdi7GXf16gCB3ya94LQG2wjcSChE149rQ,3798
|
|
3
3
|
ignoreTests/store/cred_store.py,sha256=_7-917EtNC9eKEumO2_lt-7KuDmCwOZFaowCm7DbA_A,254
|
|
4
|
-
pyntcli/__init__.py,sha256=
|
|
4
|
+
pyntcli/__init__.py,sha256=FOqUO2NVzyu71qVPUvSdcSq0R9nb3HWrEn0eMrsEMO8,403
|
|
5
5
|
pyntcli/main.py,sha256=WEbWyqzDjtnZGSWgqru1FCT7wmHdi11uzd1LmwTTCI4,6095
|
|
6
6
|
pyntcli/analytics/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
pyntcli/analytics/send.py,sha256=9TRAEoPbv4rWOZfcNaGanrRJAFvNs39P-uKSl49GcQE,3679
|
|
@@ -10,11 +10,11 @@ pyntcli/auth/login.py,sha256=TljsRXbEkNI1YUrKm5mlTw4YiecYScYUsit8Z8vstss,5228
|
|
|
10
10
|
pyntcli/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
11
|
pyntcli/commands/burp.py,sha256=5lZKSDHJvmVNvxEkQPKQ4lNx8pSzEK-rTHhSvn-ZBtY,12253
|
|
12
12
|
pyntcli/commands/command.py,sha256=7x5eGXGz1rHtAy-Shdh3KLIqQ7TVAZEKd5DiKaCLOSQ,10998
|
|
13
|
-
pyntcli/commands/har.py,sha256=
|
|
13
|
+
pyntcli/commands/har.py,sha256=NzxyXlgS5YtQJqi9528V0FkbonMaZ0wHuvRl0LmR5JA,4329
|
|
14
14
|
pyntcli/commands/id_command.py,sha256=UBEgMIpm4vauTCsKyixltiGUolNg_OfHEJvJ_i5BpJY,943
|
|
15
15
|
pyntcli/commands/listen.py,sha256=oxgMvJYpPEu6h8qRFoueGF3a_nmwzaWMPL8ucfy7yxE,8983
|
|
16
|
-
pyntcli/commands/newman.py,sha256=
|
|
17
|
-
pyntcli/commands/postman.py,sha256=
|
|
16
|
+
pyntcli/commands/newman.py,sha256=PRbsbDTxL54FRVYOYEpKJ5icVdGXtG2bfiGsnJgmKT4,5173
|
|
17
|
+
pyntcli/commands/postman.py,sha256=aStkkyx3FTXvnIcQxNf1_OPKDE1RL25OALc2eyAZJCY,4980
|
|
18
18
|
pyntcli/commands/pynt_cmd.py,sha256=T7jee0yw67Zth3lTkSDInCLnbu_IhpNqb7GqnTiTceQ,7012
|
|
19
19
|
pyntcli/commands/root.py,sha256=6dSzKSjUX-ZetE2KYJNkBmfDDrcYJligmHBqIAIc2aQ,4140
|
|
20
20
|
pyntcli/commands/static_file_extensions.py,sha256=PZJb02BI-64tbU-j3rdCNsXzTh7gkIDGxGKbKNw3h5k,1995
|
|
@@ -24,7 +24,7 @@ pyntcli/log/__init__.py,sha256=cOGwOYzMoshEbZiiasBGkj6wF0SBu3Jdpl-AuakDesw,19
|
|
|
24
24
|
pyntcli/log/log.py,sha256=cWCdWmUaAwePwdhYDcgNMEG9d9RM34sGahxBCYEdv2Y,1069
|
|
25
25
|
pyntcli/pynt_docker/__init__.py,sha256=PQIOVxc7XXtMLfEX7ojgwf_Z3mmTllO3ZvzUZTPOxQY,30
|
|
26
26
|
pyntcli/pynt_docker/container_utils.py,sha256=_Onn7loInzyJAG2-Uk6CGpsuRyelmUFHOvtJj4Uzi9A,175
|
|
27
|
-
pyntcli/pynt_docker/pynt_container.py,sha256=
|
|
27
|
+
pyntcli/pynt_docker/pynt_container.py,sha256=Yl_YESabRmWb38roDDUa_r3NKeAiwa0h9TPY7zTIsfY,13303
|
|
28
28
|
pyntcli/store/__init__.py,sha256=1fP8cEAQCF_myja3gnhHH9FEqtBiOJ-2aBmUXSKBdFA,41
|
|
29
29
|
pyntcli/store/json_connector.py,sha256=UGs3uORw3iyn0YJ8kzab-veEZToA6d-ByXYuqEleWsA,560
|
|
30
30
|
pyntcli/store/store.py,sha256=ZLSe0WAjHDp8cSt4BBFDkPGRux4cgOo5UfF7V4naM7U,2559
|
|
@@ -39,8 +39,8 @@ pyntcli/ui/report.py,sha256=W-icPSZrGLOubXgam0LpOvHLl_aZg9Zx9qIkL8Ym5PE,1930
|
|
|
39
39
|
pyntcli/ui/ui_thread.py,sha256=XUBgLpYQjVhrilU-ofw7VSXgTiwneSdTxm61EvC3x4Q,5091
|
|
40
40
|
tests/test_utils.py,sha256=t5fTQUk1U_Js6iMxcGYGqt4C-crzOJ0CqCKtLkRtUi0,2050
|
|
41
41
|
tests/commands/test_pynt_cmd.py,sha256=BjGFCFACcSziLrNA6_27t6TjSmvdu54wx9njwLpRSJY,8379
|
|
42
|
-
pyntcli-0.1.
|
|
43
|
-
pyntcli-0.1.
|
|
44
|
-
pyntcli-0.1.
|
|
45
|
-
pyntcli-0.1.
|
|
46
|
-
pyntcli-0.1.
|
|
42
|
+
pyntcli-0.1.102.dist-info/METADATA,sha256=hC0ph5yb-J8gVgy9CKsVxj6s5UR80btfQdehYhTT_e0,472
|
|
43
|
+
pyntcli-0.1.102.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
|
44
|
+
pyntcli-0.1.102.dist-info/entry_points.txt,sha256=kcGmqAxXDttNk2EPRcqunc_LTVp61gzakz0v-GEE2SY,43
|
|
45
|
+
pyntcli-0.1.102.dist-info/top_level.txt,sha256=64XSgBzSpgwjYjEKHZE7q3JH2a816zEeyZBXfJi3AKI,42
|
|
46
|
+
pyntcli-0.1.102.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|