easy_whitelist 1.0.45__tar.gz → 1.0.51__tar.gz
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.
- easy_whitelist-1.0.51/.gitignore +16 -0
- {easy_whitelist-1.0.45 → easy_whitelist-1.0.51}/PKG-INFO +7 -3
- {easy_whitelist-1.0.45 → easy_whitelist-1.0.51}/README.md +6 -2
- {easy_whitelist-1.0.45 → easy_whitelist-1.0.51}/SECURITY.md +2 -3
- easy_whitelist-1.0.51/easy_whitelist/__init__.py +5 -0
- {easy_whitelist-1.0.45 → easy_whitelist-1.0.51}/easy_whitelist/config/arg.py +1 -1
- {easy_whitelist-1.0.45 → easy_whitelist-1.0.51}/easy_whitelist/ip/pattern.py +1 -0
- {easy_whitelist-1.0.45 → easy_whitelist-1.0.51}/easy_whitelist/ip/url.py +2 -1
- {easy_whitelist-1.0.45 → easy_whitelist-1.0.51}/easy_whitelist/tcloud/template.py +3 -1
- {easy_whitelist-1.0.45 → easy_whitelist-1.0.51}/pyproject.toml +16 -8
- easy_whitelist-1.0.51/tests/.gitkeep +0 -0
- easy_whitelist-1.0.51/tests/test.py +3 -0
- easy_whitelist-1.0.45/.gitignore +0 -7
- easy_whitelist-1.0.45/easy_whitelist/__init__.py +0 -6
- easy_whitelist-1.0.45/setup.py +0 -41
- {easy_whitelist-1.0.45 → easy_whitelist-1.0.51}/CODE_OF_CONDUCT.md +0 -0
- {easy_whitelist-1.0.45 → easy_whitelist-1.0.51}/LICENSE +0 -0
- {easy_whitelist-1.0.45 → easy_whitelist-1.0.51}/easy_whitelist/__main__.py +0 -0
- {easy_whitelist-1.0.45 → easy_whitelist-1.0.51}/easy_whitelist/config/__init__.py +0 -0
- {easy_whitelist-1.0.45 → easy_whitelist-1.0.51}/easy_whitelist/ip/__init__.py +0 -0
- {easy_whitelist-1.0.45 → easy_whitelist-1.0.51}/easy_whitelist/ip/agent.py +0 -0
- {easy_whitelist-1.0.45 → easy_whitelist-1.0.51}/easy_whitelist/ip/ip.py +0 -0
- {easy_whitelist-1.0.45 → easy_whitelist-1.0.51}/easy_whitelist/sample/common_client_sample.py +0 -0
- {easy_whitelist-1.0.45 → easy_whitelist-1.0.51}/easy_whitelist/sample/cvm_sample_detail.py +0 -0
- {easy_whitelist-1.0.45 → easy_whitelist-1.0.51}/easy_whitelist/sample/cvm_sample_simple.py +0 -0
- {easy_whitelist-1.0.45 → easy_whitelist-1.0.51}/easy_whitelist/tcloud/__init__.py +0 -0
- {easy_whitelist-1.0.45 → easy_whitelist-1.0.51}/easy_whitelist/tcloud/client.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: easy_whitelist
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.51
|
4
4
|
Summary: Easy_whitelist is a smart tool that detects the local Internet IP address and automatically updates the local Internet IP address to the cloud security group whitelist. The tool is written in Python.
|
5
5
|
Keywords: automation,whitelist,acl,security-groups,alibaba-cloud,tencent-cloud,security-tools,security-group-rule
|
6
6
|
Author: qiqilelebaobao
|
@@ -36,11 +36,13 @@ Easy_whitelist 是一个探测本机互联网 IP 地址,将并本机互联网I
|
|
36
36
|
Easy_whitelist is a smart tool that detects the local Internet IP address and automatically updates the local Internet IP address to the cloud security group whitelist. The tool is written in Python.
|
37
37
|
|
38
38
|
主要功能包括:
|
39
|
+
|
39
40
|
* 自动探测本机互联网 IP 地址
|
40
41
|
* 支持阿里云、腾讯云的安全组白名单更新
|
41
42
|
* 腾讯云支持地址模板更新
|
42
43
|
|
43
44
|
Main functions include:
|
45
|
+
|
44
46
|
* Automatically detect the local Internet IP address
|
45
47
|
* Support security group whitelist updates for Alibaba Cloud and Tencent Cloud
|
46
48
|
* Tencent Cloud supports address template updates
|
@@ -63,12 +65,14 @@ Python3 is required
|
|
63
65
|
## 使用说明 Basic Usage
|
64
66
|
|
65
67
|
* 通过列表选择模版,设置白名单
|
68
|
+
|
66
69
|
```shell
|
67
|
-
|
70
|
+
easy template list
|
68
71
|
```
|
69
72
|
|
70
73
|
* 通过新创建模版,设置白名单。需要指定关联的安全组ID
|
74
|
+
|
71
75
|
```shell
|
72
|
-
|
76
|
+
easy template create rule_id
|
73
77
|
```
|
74
78
|
|
@@ -5,11 +5,13 @@ Easy_whitelist 是一个探测本机互联网 IP 地址,将并本机互联网I
|
|
5
5
|
Easy_whitelist is a smart tool that detects the local Internet IP address and automatically updates the local Internet IP address to the cloud security group whitelist. The tool is written in Python.
|
6
6
|
|
7
7
|
主要功能包括:
|
8
|
+
|
8
9
|
* 自动探测本机互联网 IP 地址
|
9
10
|
* 支持阿里云、腾讯云的安全组白名单更新
|
10
11
|
* 腾讯云支持地址模板更新
|
11
12
|
|
12
13
|
Main functions include:
|
14
|
+
|
13
15
|
* Automatically detect the local Internet IP address
|
14
16
|
* Support security group whitelist updates for Alibaba Cloud and Tencent Cloud
|
15
17
|
* Tencent Cloud supports address template updates
|
@@ -32,11 +34,13 @@ Python3 is required
|
|
32
34
|
## 使用说明 Basic Usage
|
33
35
|
|
34
36
|
* 通过列表选择模版,设置白名单
|
37
|
+
|
35
38
|
```shell
|
36
|
-
|
39
|
+
easy template list
|
37
40
|
```
|
38
41
|
|
39
42
|
* 通过新创建模版,设置白名单。需要指定关联的安全组ID
|
43
|
+
|
40
44
|
```shell
|
41
|
-
|
45
|
+
easy template create rule_id
|
42
46
|
```
|
@@ -5,9 +5,8 @@
|
|
5
5
|
Use this section to tell people about which versions of your project are
|
6
6
|
currently being supported with security updates.
|
7
7
|
|
8
|
-
|
9
8
|
## Reporting a Vulnerability
|
10
9
|
|
11
|
-
Please use https://github.com/qiqilelebaobao to report security vulnerabilities.
|
10
|
+
Please use <https://github.com/qiqilelebaobao> to report security vulnerabilities.
|
12
11
|
|
13
|
-
The Security Team will process your report within a week, and respond within a month (although it will depend on the severity of your report).
|
12
|
+
The Security Team will process your report within a week, and respond within a month (although it will depend on the severity of your report).
|
@@ -12,7 +12,7 @@ def init_arg():
|
|
12
12
|
parser.add_argument('-p', '-P', '--proxy', action='store', default=None, type=int, help ='local HTTP proxy port')
|
13
13
|
parser.add_argument('-v', '--verbose', action='count', default=0)
|
14
14
|
|
15
|
-
parser.add_argument('target', help='template or
|
15
|
+
parser.add_argument('target', help='template or rule', choices=['template', 'rule'])
|
16
16
|
parser.add_argument('action', help='list', choices=['list', 'set', 'create'])
|
17
17
|
parser.add_argument('target_id', help='template id or rule id', nargs='?')
|
18
18
|
|
@@ -12,5 +12,6 @@ def parse_ip_from_response(response, patt):
|
|
12
12
|
detect_url = [
|
13
13
|
['https://ifconfig.me', IFCONFIG_ME_PATTERN, random.choice(curl_user_agent), 'enable'],
|
14
14
|
['http://cip.cc', CIP_CC_PATTERN, random.choice(chrome_user_agent), 'DISABLE'],
|
15
|
-
['https://tool.lu/ip/', TOOL_LU_PATTERN, random.choice(chrome_user_agent), 'enable']
|
15
|
+
['https://tool.lu/ip/', TOOL_LU_PATTERN, random.choice(chrome_user_agent), 'enable'],
|
16
|
+
['http://ip.sb/', IP_SB_PATTERN, random.choice(curl_user_agent), 'enable']
|
16
17
|
]
|
@@ -111,7 +111,9 @@ def set_template(common_client, target_id, proxy=None):
|
|
111
111
|
if target_id.startswith('ipm-'):
|
112
112
|
addresses_extra = get_local_ip_and_format_addressesextra(proxy)
|
113
113
|
if modify_template_address(common_client, addresses_extra, target_id):
|
114
|
-
logging.info(f'Successfully set {{{target_id}}} to {{{addresses_extra}}}')
|
114
|
+
# logging.info(f'Successfully set {{{target_id}}} to {{{addresses_extra}}}')
|
115
|
+
# print(f'Successfully set ({target_id}) to ({addresses_extra})')
|
116
|
+
print(f'成功将IP模版:{target_id} 设置为:({addresses_extra})')
|
115
117
|
else:
|
116
118
|
logging.warning('Wrong template id.')
|
117
119
|
else:
|
@@ -1,5 +1,5 @@
|
|
1
1
|
[build-system]
|
2
|
-
requires = ["flit_core
|
2
|
+
requires = ["flit_core"]
|
3
3
|
build-backend = "flit_core.buildapi"
|
4
4
|
|
5
5
|
[project]
|
@@ -11,9 +11,11 @@ authors = [
|
|
11
11
|
requires-python = ">= 3.6"
|
12
12
|
|
13
13
|
readme = "README.md"
|
14
|
-
|
14
|
+
|
15
|
+
license = { file = "LICENSE" }
|
16
|
+
|
15
17
|
classifiers = [
|
16
|
-
"License :: OSI Approved :: Apache Software License",
|
18
|
+
"License :: OSI Approved :: Apache Software License",
|
17
19
|
"Programming Language :: Python :: 3",
|
18
20
|
"Programming Language :: Python :: 3 :: Only",
|
19
21
|
"Programming Language :: Python :: 3.6",
|
@@ -34,15 +36,15 @@ maintainers = [
|
|
34
36
|
{name = "qiqilelebaobao", email = "qiqilelebaobao@163.com"}
|
35
37
|
]
|
36
38
|
|
37
|
-
keywords = ["automation", "whitelist", "acl",
|
38
|
-
"security-groups", "alibaba-cloud", "tencent-cloud",
|
39
|
+
keywords = ["automation", "whitelist", "acl",
|
40
|
+
"security-groups", "alibaba-cloud", "tencent-cloud",
|
39
41
|
"security-tools", "security-group-rule"]
|
40
42
|
|
41
|
-
|
43
|
+
description = 'Easy_whitelist is a smart tool that detects the local Internet IP address and automatically updates the local Internet IP address to the cloud security group whitelist. The tool is written in Python.'
|
42
44
|
|
43
|
-
|
45
|
+
version = '1.0.51'
|
44
46
|
|
45
|
-
dynamic = ["version", "description"]
|
47
|
+
# dynamic = ["version", "description"]
|
46
48
|
|
47
49
|
[project.urls]
|
48
50
|
Homepage = "https://github.com/qiqilelebaobao/easy_whitelist"
|
@@ -57,3 +59,9 @@ cli = [
|
|
57
59
|
"rich",
|
58
60
|
"click",
|
59
61
|
]
|
62
|
+
|
63
|
+
[tool.flit.sdist]
|
64
|
+
include = [
|
65
|
+
"SECURITY.md",
|
66
|
+
"CODE_OF_CONDUCT.md",
|
67
|
+
]
|
File without changes
|
easy_whitelist-1.0.45/.gitignore
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
r"""Easy_whitelist is a smart tool that detects the local Internet IP address and automatically updates the local Internet IP address to the cloud security group whitelist. The tool is written in Python.
|
2
|
-
"""
|
3
|
-
__version__ = '1.0.45'
|
4
|
-
# __author__ = 'qiqileleabaobao <qiqilelebaobao@163.com>'
|
5
|
-
|
6
|
-
__all__ = []
|
easy_whitelist-1.0.45/setup.py
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
# -*- coding: utf-8 -*-
|
2
|
-
# import os
|
3
|
-
|
4
|
-
from setuptools import setup, find_packages
|
5
|
-
|
6
|
-
# import easy_whitelist
|
7
|
-
|
8
|
-
# ROOT = os.path.dirname(__file__)
|
9
|
-
|
10
|
-
setup(
|
11
|
-
name='easy_whitelist',
|
12
|
-
install_requires=[
|
13
|
-
'tencentcloud-sdk-python',
|
14
|
-
],
|
15
|
-
description='Easy_whitelist is a small tool that detects the local Internet IP address and automatically updates the local Internet IP address to the cloud security group whitelist.',
|
16
|
-
# long_description=open('README.md').read(),
|
17
|
-
long_description = 'nihao',
|
18
|
-
author='qiqilelebaobao',
|
19
|
-
author_email='qiqilelebaobao@163.com',
|
20
|
-
maintainer_email="qiqilelebaobao@163.com",
|
21
|
-
version='1.0.34',
|
22
|
-
# version=easy_whitelist.__version__,
|
23
|
-
url='https://github.com/qiqilelebaobao/easy_whitelist',
|
24
|
-
scripts=[],
|
25
|
-
license="Apache License 2.0",
|
26
|
-
platforms='any',
|
27
|
-
packages=find_packages(exclude=[]),
|
28
|
-
classifiers=[
|
29
|
-
'Development Status :: 5 - Production/Stable',
|
30
|
-
'Intended Audience :: Developers',
|
31
|
-
'License :: OSI Approved :: Apache Software License',
|
32
|
-
'Programming Language :: Python',
|
33
|
-
'Programming Language :: Python :: 3',
|
34
|
-
'Programming Language :: Python :: 3.6',
|
35
|
-
'Programming Language :: Python :: 3.7',
|
36
|
-
'Programming Language :: Python :: 3.8',
|
37
|
-
'Programming Language :: Python :: 3.9',
|
38
|
-
'Programming Language :: Python :: 3.10',
|
39
|
-
],
|
40
|
-
|
41
|
-
)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{easy_whitelist-1.0.45 → easy_whitelist-1.0.51}/easy_whitelist/sample/common_client_sample.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|