pyntcli 0.1.91__py3-none-any.whl → 0.1.92__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/command.py +17 -6
- {pyntcli-0.1.91.dist-info → pyntcli-0.1.92.dist-info}/METADATA +1 -1
- {pyntcli-0.1.91.dist-info → pyntcli-0.1.92.dist-info}/RECORD +7 -7
- {pyntcli-0.1.91.dist-info → pyntcli-0.1.92.dist-info}/WHEEL +1 -1
- {pyntcli-0.1.91.dist-info → pyntcli-0.1.92.dist-info}/entry_points.txt +0 -0
- {pyntcli-0.1.91.dist-info → pyntcli-0.1.92.dist-info}/top_level.txt +0 -0
pyntcli/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.1.
|
|
1
|
+
__version__ = "0.1.92"
|
pyntcli/commands/command.py
CHANGED
|
@@ -39,6 +39,7 @@ def command_usage():
|
|
|
39
39
|
.with_line("\t--report - If present will save the generated report in this path.")
|
|
40
40
|
.with_line("\t--insecure - Use when target uses self signed certificates")
|
|
41
41
|
.with_line("\t--self-signed - Use when the functional test verify SSL")
|
|
42
|
+
.with_line("\t--no-proxy-export - Pynt will not export the proxy settings to the environment")
|
|
42
43
|
.with_line("\t--application-id - Attach the scan to an application, you can find the ID in your applications area at app.pynt.io")
|
|
43
44
|
.with_line("\t--host-ca - Path to the CA file in PEM format to enable SSL certificate verification for pynt when running through a VPN.")
|
|
44
45
|
.with_line("\t--return-error - 'all-findings' (warnings, or errors), 'errors-only', 'never' (default) ")
|
|
@@ -65,6 +66,7 @@ class CommandSubCommand(sub_command.PyntSubCommand):
|
|
|
65
66
|
proxy_cmd.add_argument("--captured-domains", nargs="+", help="", default="", required=False)
|
|
66
67
|
proxy_cmd.add_argument("--test-name", help="", default="", required=False)
|
|
67
68
|
proxy_cmd.add_argument("--allow-errors", action="store_true")
|
|
69
|
+
proxy_cmd.add_argument("--no-proxy-export", action="store_true")
|
|
68
70
|
proxy_cmd.add_argument("--ca-path", type=str, default="")
|
|
69
71
|
proxy_cmd.add_argument("--self-signed", action="store_true")
|
|
70
72
|
proxy_cmd.add_argument("--report", type=str, default="")
|
|
@@ -75,6 +77,11 @@ class CommandSubCommand(sub_command.PyntSubCommand):
|
|
|
75
77
|
|
|
76
78
|
def _updated_environment(self, args):
|
|
77
79
|
env_copy = deepcopy(os.environ)
|
|
80
|
+
env_copy.update(
|
|
81
|
+
{
|
|
82
|
+
"RUNNING_FROM_PYNT": "True",
|
|
83
|
+
}
|
|
84
|
+
)
|
|
78
85
|
if "self_signed" in args and args.self_signed:
|
|
79
86
|
cert_path = os.path.join(os.path.expanduser('~'), '.pynt', 'cert')
|
|
80
87
|
cert_file_path = os.path.join(cert_path, 'mitmproxy-ca-cert.pem')
|
|
@@ -85,12 +92,16 @@ class CommandSubCommand(sub_command.PyntSubCommand):
|
|
|
85
92
|
"NODE_EXTRA_CA_CERTS": cert_file_path
|
|
86
93
|
}
|
|
87
94
|
)
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
95
|
+
if "no_proxy_export" in args and args.no_proxy_export:
|
|
96
|
+
return env_copy
|
|
97
|
+
else:
|
|
98
|
+
env_copy.update(
|
|
99
|
+
{
|
|
100
|
+
"http_proxy": "http://localhost:{}".format(args.proxy_port),
|
|
101
|
+
"https_proxy": "http://localhost:{}".format(args.proxy_port)
|
|
102
|
+
}
|
|
103
|
+
)
|
|
104
|
+
return env_copy
|
|
94
105
|
|
|
95
106
|
def _start_proxy(self, args):
|
|
96
107
|
res = pynt_requests.put(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
pyntcli/__init__.py,sha256=
|
|
1
|
+
pyntcli/__init__.py,sha256=jibR5k16CvIIIRqIusW7mrU6CMM0wet7LwtTuFLXbmU,23
|
|
2
2
|
pyntcli/main.py,sha256=ucC9d4wlhUpvA92OXRIZ55iMdFXEDiAOVvP_wtRu7zs,6432
|
|
3
3
|
pyntcli/analytics/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
pyntcli/analytics/send.py,sha256=9TRAEoPbv4rWOZfcNaGanrRJAFvNs39P-uKSl49GcQE,3679
|
|
@@ -6,7 +6,7 @@ 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
8
|
pyntcli/commands/burp.py,sha256=NfvMPlw8yISaDzvSuF96MXGVTPKRS7yR84TNDqFiblU,12274
|
|
9
|
-
pyntcli/commands/command.py,sha256=
|
|
9
|
+
pyntcli/commands/command.py,sha256=mYeNer6WeswYLPSZhvNC04S5FOdMqH-Jk8a4iPRJtpc,10973
|
|
10
10
|
pyntcli/commands/har.py,sha256=IZGd900hz0fFM3iZTG3NNXB2NiuAJGeuv-I49eXrf-o,4158
|
|
11
11
|
pyntcli/commands/id_command.py,sha256=UBEgMIpm4vauTCsKyixltiGUolNg_OfHEJvJ_i5BpJY,943
|
|
12
12
|
pyntcli/commands/listen.py,sha256=0wY9itDQyxSeHQA4GCGF67Xkb4ym48uP17WCPJMcLBE,8910
|
|
@@ -36,8 +36,8 @@ pyntcli/ui/ui_thread.py,sha256=XUBgLpYQjVhrilU-ofw7VSXgTiwneSdTxm61EvC3x4Q,5091
|
|
|
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.92.dist-info/METADATA,sha256=MS97IJ6CIx7fidgjFBCYP8gKop_deMK3JGRBfXCsj5Y,463
|
|
40
|
+
pyntcli-0.1.92.dist-info/WHEEL,sha256=Wyh-_nZ0DJYolHNn1_hMa4lM7uDedD_RGVwbmTjyItk,91
|
|
41
|
+
pyntcli-0.1.92.dist-info/entry_points.txt,sha256=kcGmqAxXDttNk2EPRcqunc_LTVp61gzakz0v-GEE2SY,43
|
|
42
|
+
pyntcli-0.1.92.dist-info/top_level.txt,sha256=u9MDStwVHB7UG8PUcODeWCul_NvzL2EzoLvSlgwLHFs,30
|
|
43
|
+
pyntcli-0.1.92.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|