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 : ConfESStaticRoutes.py
"/etc/sysconfig/static-routes handling" from .Conf import Conf, WrongMethod # pylint: disable-msg=W0403 class ConfESStaticRoutes(Conf): """Yet another dictionary, this one for /etc/sysconfig/static-routes This file has a syntax similar to that of /etc/gateways; the interface name is added and active/passive is deleted: <interface> net <netaddr> netmask <netmask> gw <gateway> The key is the interface, the value is a list of [<netaddr>, <netmask>, <gateway>] lists """ def __init__(self): Conf.__init__(self, '/etc/sysconfig/static-routes', '#', '\t ', ' ') def read(self): Conf.read(self) self.initvars() def initvars(self): # pylint: disable-msg=W0201 self.vars = {} self.rewind() while self.findnextcodeline(): var = self.getfields() if len(var) == 7: if not self.vars.has_key(var[0]): self.vars[var[0]] = [[var[2], var[4], var[6]]] else: self.vars[var[0]].append([var[2], var[4], var[6]]) elif len(var) == 5: if not self.vars.has_key(var[0]): self.vars[var[0]] = [[var[2], var[4], '']] else: self.vars[var[0]].append([var[2], var[4], '']) 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): raise WrongMethod, 'Delete or call addroute instead' def __delitem__(self, varname): # since we re-write the file completely on close, we don't # need to alter it piecemeal here. del self.vars[varname] def delroute(self, device, route): # deletes a route from a device if the route exists, # and if it is the only route for the device, removes # the device from the dictionary # Note: This could normally be optimized considerably, # except that our input may have come from the file, # which others may have hand-edited, and this makes it # possible for us to deal with hand-inserted multiple # identical routes in a reasonably correct way. if self.vars.has_key(device): for i in range(len(self.vars[device])): if i < len(self.vars[device]) and \ not cmp(self.vars[device][i], route): # need first comparison because list shrinks self.vars[device][i:i+1] = [] if len(self.vars[device]) == 0: del self.vars[device] def addroute(self, device, route): # adds a route to a device, deleteing it first to avoid dups self.delroute(device, route) if self.vars.has_key(device): self.vars[device].append(route) else: self.vars[device] = [route] def write(self): # forget current version of file self.rewind() self.lines = [] for device in self.vars.keys(): for route in self.vars[device]: if len(route) == 3: if len(route[2]): self.insertlinelist((device, 'net', route[0], 'netmask', route[1], 'gw', route[2])) else: self.insertlinelist((device, 'net', route[0], 'netmask', route[1])) Conf.write(self) def keys(self): # no need to return list in order here, I think. return self.vars.keys() def has_key(self, key): return self.vars.has_key(key)
Close