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 /
offlineimap /
[ HOME SHELL ]
Name
Size
Permission
Action
folder
[ DIR ]
drwxr-xr-x
repository
[ DIR ]
drwxr-xr-x
ui
[ DIR ]
drwxr-xr-x
utils
[ DIR ]
drwxr-xr-x
CustomConfig.py
10.68
KB
-rw-r--r--
CustomConfig.pyc
11.28
KB
-rw-r--r--
CustomConfig.pyo
11.28
KB
-rw-r--r--
__init__.py
833
B
-rw-r--r--
__init__.pyc
966
B
-rw-r--r--
__init__.pyo
966
B
-rw-r--r--
accounts.py
23.23
KB
-rw-r--r--
accounts.pyc
18.19
KB
-rw-r--r--
accounts.pyo
18.19
KB
-rw-r--r--
emailutil.py
1.52
KB
-rw-r--r--
emailutil.pyc
827
B
-rw-r--r--
emailutil.pyo
827
B
-rw-r--r--
error.py
1.41
KB
-rw-r--r--
error.pyc
2.11
KB
-rw-r--r--
error.pyo
2.11
KB
-rw-r--r--
globals.py
299
B
-rw-r--r--
globals.pyc
488
B
-rw-r--r--
globals.pyo
488
B
-rw-r--r--
imaplib2.py
92
KB
-rw-r--r--
imaplib2.pyc
80.04
KB
-rw-r--r--
imaplib2.pyo
73.8
KB
-rw-r--r--
imaplibutil.py
8.7
KB
-rw-r--r--
imaplibutil.pyc
8.9
KB
-rw-r--r--
imaplibutil.pyo
8.9
KB
-rw-r--r--
imapserver.py
32.97
KB
-rw-r--r--
imapserver.pyc
24.66
KB
-rw-r--r--
imapserver.pyo
24.66
KB
-rw-r--r--
imaputil.py
11.99
KB
-rw-r--r--
imaputil.pyc
10.42
KB
-rw-r--r--
imaputil.pyo
10.42
KB
-rw-r--r--
init.py
18.36
KB
-rw-r--r--
init.pyc
13.53
KB
-rw-r--r--
init.pyo
13.53
KB
-rw-r--r--
localeval.py
1.65
KB
-rw-r--r--
localeval.pyc
1.28
KB
-rw-r--r--
localeval.pyo
1.28
KB
-rw-r--r--
mbnames.py
3.59
KB
-rw-r--r--
mbnames.pyc
2.87
KB
-rw-r--r--
mbnames.pyo
2.87
KB
-rw-r--r--
syncmaster.py
1.67
KB
-rw-r--r--
syncmaster.pyc
1.15
KB
-rw-r--r--
syncmaster.pyo
1.15
KB
-rw-r--r--
threadutil.py
8.21
KB
-rw-r--r--
threadutil.pyc
8.26
KB
-rw-r--r--
threadutil.pyo
8.26
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : mbnames.py
# Mailbox name generator # # Copyright (C) 2002-2015 John Goerzen & contributors # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA import os.path import re # for folderfilter from threading import Lock boxes = {} localroots = {} config = None accounts = None mblock = Lock() def init(conf, accts): global config, accounts config = conf accounts = accts def add(accountname, foldername, localfolders): if not accountname in boxes: boxes[accountname] = [] localroots[accountname] = localfolders if not foldername in boxes[accountname]: boxes[accountname].append(foldername) def write(allcomplete): incremental = config.getdefaultboolean("mbnames", "incremental", False) # Skip writing if we don't want incremental writing and we're not done. if not incremental and not allcomplete: return # Skip writing if we want incremental writing and we're done. if incremental and allcomplete: return # See if we're ready to write it out. for account in accounts: if account not in boxes: return __genmbnames() def __genmbnames(): """Takes a configparser object and a boxlist, which is a list of hashes containing 'accountname' and 'foldername' keys.""" xforms = [os.path.expanduser, os.path.expandvars] mblock.acquire() try: localeval = config.getlocaleval() if not config.getdefaultboolean("mbnames", "enabled", 0): return path = config.apply_xforms(config.get("mbnames", "filename"), xforms) file = open(path, "wt") file.write(localeval.eval(config.get("mbnames", "header"))) folderfilter = lambda accountname, foldername: 1 if config.has_option("mbnames", "folderfilter"): folderfilter = localeval.eval(config.get("mbnames", "folderfilter"), {'re': re}) mb_sort_keyfunc = lambda d: (d['accountname'], d['foldername']) if config.has_option("mbnames", "sort_keyfunc"): mb_sort_keyfunc = localeval.eval(config.get("mbnames", "sort_keyfunc"), {'re': re}) itemlist = [] for accountname in boxes.keys(): localroot = localroots[accountname] for foldername in boxes[accountname]: if folderfilter(accountname, foldername): itemlist.append({'accountname': accountname, 'foldername': foldername, 'localfolders': localroot}) itemlist.sort(key = mb_sort_keyfunc) format_string = config.get("mbnames", "peritem", raw=1) itemlist = [format_string % d for d in itemlist] file.write(localeval.eval(config.get("mbnames", "sep")).join(itemlist)) file.write(localeval.eval(config.get("mbnames", "footer"))) file.close() finally: mblock.release()
Close