Linux ns8.secondary29.go.th 2.6.32-754.28.1.el6.x86_64 #1 SMP Wed Mar 11 18:38:45 UTC 2020 x86_64
Apache/2.2.15 (CentOS)
: 122.154.134.11 | : 122.154.134.9
Cant Read [ /etc/named.conf ]
5.6.40
apache
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 /
share /
system-config-network /
netconfpkg /
conf /
[ HOME SHELL ]
Name
Size
Permission
Action
Conf.py
15.11
KB
-rw-r--r--
Conf.pyc
11.3
KB
-rw-r--r--
Conf.pyo
11.3
KB
-rw-r--r--
ConfChat.py
7.63
KB
-rw-r--r--
ConfChat.pyc
8.09
KB
-rw-r--r--
ConfChat.pyo
8.09
KB
-rw-r--r--
ConfEResolv.py
3.84
KB
-rw-r--r--
ConfEResolv.pyc
3.63
KB
-rw-r--r--
ConfEResolv.pyo
3.63
KB
-rw-r--r--
ConfESNetwork.py
1.06
KB
-rw-r--r--
ConfESNetwork.pyc
1.69
KB
-rw-r--r--
ConfESNetwork.pyo
1.69
KB
-rw-r--r--
ConfESStaticRoutes.py
3.74
KB
-rw-r--r--
ConfESStaticRoutes.pyc
4.22
KB
-rw-r--r--
ConfESStaticRoutes.pyo
4.22
KB
-rw-r--r--
ConfModules.py
10.75
KB
-rw-r--r--
ConfModules.pyc
9.59
KB
-rw-r--r--
ConfModules.pyo
9.59
KB
-rw-r--r--
ConfPAP.py
8.26
KB
-rw-r--r--
ConfPAP.pyc
7.33
KB
-rw-r--r--
ConfPAP.pyo
7.33
KB
-rw-r--r--
ConfPasswd.py
21.07
KB
-rw-r--r--
ConfPasswd.pyc
21.6
KB
-rw-r--r--
ConfPasswd.pyo
21.6
KB
-rw-r--r--
ConfSMB.py
8.24
KB
-rw-r--r--
ConfSMB.pyc
7.03
KB
-rw-r--r--
ConfSMB.pyo
7.03
KB
-rw-r--r--
ConfShellVar.py
4.34
KB
-rw-r--r--
ConfShellVar.pyc
4.5
KB
-rw-r--r--
ConfShellVar.pyo
4.5
KB
-rw-r--r--
ConfSysctl.py
2.64
KB
-rw-r--r--
ConfSysctl.pyc
2.85
KB
-rw-r--r--
ConfSysctl.pyo
2.85
KB
-rw-r--r--
__init__.py
966
B
-rw-r--r--
__init__.pyc
205
B
-rw-r--r--
__init__.pyo
205
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : ConfShellVar.py
import re from .Conf import Conf, ConfIndexError # pylint: disable-msg=W0403 class ConfShellVar(Conf): def __init__(self, filename): self.nextreg = re.compile('^[\t ]*[A-Za-z_][A-Za-z0-9_]*=') self.quotereg = re.compile('[ \t${}*@!~<>?;%^()#&=]') Conf.__init__(self, filename, commenttype='#', separators='=', separator='=') def read(self): Conf.read(self) self.initvars() def initvars(self): # pylint: disable-msg=W0201 self.vars = {} self.rewind() while self.findnextline(self.nextreg): # initialize dictionary of variable/name pairs var = self.getfields() # fields 1..n are False separations on "=" character in string, # so we need to join them back together. var[1] = "=".join(var[1:len(var)]) if len(var[1]) and var[1][0] in '\'"': # found quote; strip from beginning and end quote = var[1][0] var[1] = var[1][1:] p = -1 try: while cmp(var[1][p], quote): # ignore whitespace, etc. p = p - 1 except: raise ConfIndexError (self.filename, var) var[1] = var[1][:p] else: var[1] = re.sub('#.*', '', var[1]) self.vars[var[0]] = var[1] self.nextline() self.rewind() def __getitem__(self, varname): if self.vars.has_key(varname): return self.vars[varname] else: return '' def __setitem__(self, varname, value): # prevent tracebacks if not value: value = "" # set *every* instance of varname to value to avoid surprises place = self.tell() self.rewind() missing = 1 while self.findnextline('^[\t ]*' + varname + '='): if self.quotereg.search(value): self.sedline('=.*', "='" + value + "'") else: self.sedline('=.*', '=' + value) missing = 0 self.nextline() if missing: self.seek(place) if self.quotereg.search(value): self.insertline(varname + "='" + value + "'") else: self.insertline(varname + '=' + value) self.vars[varname] = value def __delitem__(self, varname): # delete *every* instance... self.rewind() while self.findnextline('^[\t ]*' + varname + '='): self.deleteline() if self.vars.has_key(varname): del self.vars[varname] def has_key(self, key): if self.vars.has_key(key): return 1 return 0 def keys(self): return self.vars.keys() # ConfShellVarClone(ConfShellVar): # Takes a ConfShellVar instance and records in another ConfShellVar # "difference file" only those settings which conflict with the # original instance. The delete operator does delete the variable # text in the cloned instance file, but that will not really delete # the shell variable that occurs, because it does not put an "unset" # command in the file. class ConfShellVarClone(ConfShellVar): def __init__(self, cloneInstance, filename): ConfShellVar.__init__(self, filename) # Conf.__init__(self, filename, commenttype='#', # separators='=', separator='=') self.ci = cloneInstance def __getitem__(self, varname): if self.vars.has_key(varname): return self.vars[varname] elif self.ci.has_key(varname): return self.ci[varname] else: return '' def __setitem__(self, varname, value): if value != self.ci[varname]: # differs from self.ci; save a local copy. ConfShellVar.__setitem__(self, varname, value) else: # self.ci already has the variable with the same value, # don't duplicate it if self.vars.has_key(varname): del self[varname] # inherit delitem because we don't want to pass it through to self.ci def has_key(self, key): if self.vars.has_key(key): return True if self.ci.has_key(key): return True return False # FIXME: should we implement keys()?
Close