Linux server.edchosting.com 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
LiteSpeed
Server IP : 75.98.162.185 & Your IP : 216.73.216.163
Domains :
Cant Read [ /etc/named.conf ]
User : goons4good
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib /
python3.6 /
site-packages /
salt /
matchers /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2022-10-11 05:09
__init__.py
0
B
-rw-r--r--
2022-05-16 09:16
cache_match.py
917
B
-rw-r--r--
2022-05-16 09:16
compound_match.py
3.75
KB
-rw-r--r--
2022-05-16 09:16
compound_pillar_exact_match.py
571
B
-rw-r--r--
2022-05-16 09:16
confirm_top.py
911
B
-rw-r--r--
2022-05-16 09:16
data_match.py
1.07
KB
-rw-r--r--
2022-05-16 09:16
glob_match.py
444
B
-rw-r--r--
2022-05-16 09:16
grain_match.py
606
B
-rw-r--r--
2022-05-16 09:16
grain_pcre_match.py
665
B
-rw-r--r--
2022-05-16 09:16
ipcidr_match.py
980
B
-rw-r--r--
2022-05-16 09:16
list_match.py
1.35
KB
-rw-r--r--
2022-05-16 09:16
nodegroup_match.py
750
B
-rw-r--r--
2022-05-16 09:16
pcre_match.py
305
B
-rw-r--r--
2022-05-16 09:16
pillar_exact_match.py
764
B
-rw-r--r--
2022-05-16 09:16
pillar_match.py
782
B
-rw-r--r--
2022-05-16 09:16
pillar_pcre_match.py
842
B
-rw-r--r--
2022-05-16 09:16
range_match.py
638
B
-rw-r--r--
2022-05-16 09:16
Save
Rename
""" This is the default ipcidr matcher. """ import logging import salt.utils.network from salt._compat import ipaddress log = logging.getLogger(__name__) def match(tgt, opts=None, minion_id=None): """ Matches based on IP address or CIDR notation """ if not opts: opts = __opts__ try: # Target is an address? tgt = ipaddress.ip_address(tgt) except: # pylint: disable=bare-except try: # Target is a network? tgt = ipaddress.ip_network(tgt) except: # pylint: disable=bare-except log.error("Invalid IP/CIDR target: %s", tgt) return [] proto = "ipv{}".format(tgt.version) grains = opts["grains"] if proto not in grains: match = False elif isinstance(tgt, (ipaddress.IPv4Address, ipaddress.IPv6Address)): match = str(tgt) in grains[proto] else: match = salt.utils.network.in_subnet(tgt, grains[proto]) return match