Linux server.kiran-academy.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
: 194.233.91.196 | : 216.73.216.216
Cant Read [ /etc/named.conf ]
7.4.32
finalho
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
lib /
python2.7 /
site-packages /
[ HOME SHELL ]
Name
Size
Permission
Action
DNS
[ DIR ]
drwxr-xr-x
chardet
[ DIR ]
drwxr-xr-x
chardet-2.2.1-py2.7.egg-info
[ DIR ]
drwxr-xr-x
decorator-3.4.0-py2.7.egg-info
[ DIR ]
drwxr-xr-x
dns
[ DIR ]
drwxr-xr-x
dnspython-1.12.0-py2.7.egg-inf...
[ DIR ]
drwxr-xr-x
firewall
[ DIR ]
drwxr-xr-x
iniparse
[ DIR ]
drwxr-xr-x
isc
[ DIR ]
drwxr-xr-x
kitchen
[ DIR ]
drwxr-xr-x
kitchen-1.1.1-py2.7.egg-info
[ DIR ]
drwxr-xr-x
offlineimap
[ DIR ]
drwxr-xr-x
ply
[ DIR ]
drwxr-xr-x
procfs
[ DIR ]
drwxr-xr-x
pyudev
[ DIR ]
drwxr-xr-x
pyudev-0.15-py2.7.egg-info
[ DIR ]
drwxr-xr-x
rpmUtils
[ DIR ]
drwxr-xr-x
slip
[ DIR ]
drwxr-xr-x
tuned
[ DIR ]
drwxr-xr-x
urlgrabber
[ DIR ]
drwxr-xr-x
yum
[ DIR ]
drwxr-xr-x
yumutils
[ DIR ]
drwxr-xr-x
IPy-0.75-py2.7.egg-info
9.83
KB
-rw-r--r--
IPy.py
50.07
KB
-rw-r--r--
IPy.pyc
39.92
KB
-rw-r--r--
IPy.pyo
39.92
KB
-rw-r--r--
configobj-4.7.2-py2.7.egg-info
2.08
KB
-rw-r--r--
configobj.py
86.1
KB
-rw-r--r--
configobj.pyc
64.72
KB
-rw-r--r--
configobj.pyo
64.72
KB
-rw-r--r--
decorator.py
10.39
KB
-rw-r--r--
decorator.pyc
8.36
KB
-rw-r--r--
decorator.pyo
8.32
KB
-rw-r--r--
iniparse-0.4-py2.7.egg-info
1.06
KB
-rw-r--r--
ipaddr-2.1.11-py2.7.egg-info
588
B
-rw-r--r--
ipaddr.py
58.16
KB
-rw-r--r--
ipaddr.pyc
56.22
KB
-rw-r--r--
ipaddr.pyo
56.03
KB
-rw-r--r--
isc-2.0-py2.7.egg-info
267
B
-rw-r--r--
offlineimap-6.7.0-py2.7.egg-in...
375
B
-rw-r--r--
ply-3.4-py2.7.egg-info
900
B
-rw-r--r--
policydspfsupp.py
5.34
KB
-rw-r--r--
policydspfsupp.pyc
5.34
KB
-rw-r--r--
policydspfsupp.pyo
5.34
KB
-rw-r--r--
policydspfuser.py
3.89
KB
-rw-r--r--
policydspfuser.pyc
3.59
KB
-rw-r--r--
policydspfuser.pyo
3.59
KB
-rw-r--r--
pydns-2.3.6-py2.7.egg-info
755
B
-rw-r--r--
pyparsing-1.5.6-py2.7.egg-info
670
B
-rw-r--r--
pyparsing.py
151.79
KB
-rw-r--r--
pyparsing.pyc
145.41
KB
-rw-r--r--
pyparsing.pyo
145.41
KB
-rw-r--r--
pypolicyd_spf-1.3.2-py2.7.egg-...
828
B
-rw-r--r--
pyspf-2.0.14-py2.7.egg-info
10.08
KB
-rw-r--r--
python_linux_procfs-0.4.9-py2....
350
B
-rw-r--r--
slip-0.4.0-py2.7.egg-info
196
B
-rw-r--r--
slip.dbus-0.4.0-py2.7.egg-info
269
B
-rw-r--r--
spf.py
78.02
KB
-rw-r--r--
spf.pyc
62.32
KB
-rw-r--r--
spf.pyo
62.32
KB
-rw-r--r--
urlgrabber-3.10-py2.7.egg-info
2.21
KB
-rw-r--r--
validate.py
45.22
KB
-rw-r--r--
validate.pyc
45.62
KB
-rw-r--r--
validate.pyo
45.62
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : policydspfuser.py
# -*- coding: utf-8 -*- # # pypolicyd-spf # Copyright © 2010-2012 Scott Kitterman <scott@kitterman.com> ''' Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ''' import syslog import re import os ############################################################### commentRx = re.compile(r'^(.*)#.*$') def _readUserConfigFile(path, recipient, configData): '''Reads a configuration file from the specified path, merging it with the configuration data specified in configData for the identified recipient. Returns updated configData for the user.''' debugLevel = configData.get('debugLevel', 0) if debugLevel >= 4: syslog.syslog('readUserConfigFile: Loading "%s"' % path) if configData == None: configData = {} nameConversion = { 'debugLevel' : int, 'HELO_reject' : str, 'Mail_From_reject' : str, 'PermError_reject' : str, 'TempError_Defer' : str, 'Mail_From_pass_restriction' : str, 'HELO_pass_restriction' : str, 'Prospective' : str, 'Whitelist' : str, 'skip_addresses': str, 'Domain_Whitelist' : str, 'Domain_Whitelist_PTR': str, 'No_Mail': str, 'Reject_Not_Pass_Domains' : str, 'defaultSeedOnly' : int, 'Header_Type' : str, 'Authserv-Id' : str, 'Lookup_Time' : int, 'Void_Limit' : int } # check to see if it's a file try: os.stat(path)[0] except OSError as e: syslog.syslog(syslog.LOG_ERR,'ERROR stating "%s": %s' % ( path, e.strerror )) return(configData, False) # load file fp = open(path, 'r') while 1: line = fp.readline() if not line: break # parse line line = (line.split('#', 1)[0]).strip() if not line: continue data = [q.strip() for q in line.split(',', 1)] user, value = data if user != recipient: peruser = False continue values = {} valuelist = value.split('|') for valuepair in valuelist: key, item = valuepair.split('=') values[key] = item for config in values.items(): # check validity of name conversion = nameConversion.get(config[0]) name, value = config if conversion == None: syslog.syslog(syslog.LOG_ERR,'ERROR: Unknown name "%s" in file "%s"' % ( name, path )) continue if debugLevel >= 5: syslog.syslog('readUserConfigFile: Found entry "%s=%s"' % ( name, value )) configData[name] = conversion(value) peruser = True fp.close() return configData, peruser def _datacheck(configData, recipient): debugLevel = configData.get('debugLevel', 1) if debugLevel >= 3: syslog.syslog('Starting to process per-user settings') userdata = configData.get('Per_User') if debugLevel >= 3: syslog.syslog('User data: '+ str(userdata)) usertype, userlocation = userdata.split(',') if usertype == "text": if debugLevel >= 4: syslog.syslog('Reading per user data (type text) from: "%s"' % userlocation) configData, peruser = _readUserConfigFile(userlocation, recipient, configData) if debugLevel >= 4: syslog.syslog('Per-user settings for "%s": "%s"' % (recipient, str(configData))) return configData, peruser
Close