Linux ns1.utparral.edu.mx 6.8.0-79-generic #79~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 15 16:54:53 UTC 2 x86_64
Apache/2.4.58 (Unix) OpenSSL/1.1.1w PHP/8.2.12 mod_perl/2.0.12 Perl/v5.34.1
: 10.10.1.9 | : 10.10.1.254
Cant Read [ /etc/named.conf ]
daemon
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
README
+ Create Folder
+ Create File
/
usr /
lib /
python3 /
dist-packages /
AptUrl /
[ HOME SHELL ]
Name
Size
Permission
Action
gtk
[ DIR ]
drwxr-xr-x
__pycache__
[ DIR ]
drwxr-xr-x
AptUrl.py
8.7
KB
-rw-r--r--
Helpers.py
2.03
KB
-rw-r--r--
__init__.py
0
B
-rw-r--r--
Parser.py
5.14
KB
-rw-r--r--
UI.py
1.64
KB
-rw-r--r--
Version.py
0
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Helpers.py
# Copyright (c) 2008 Canonical # # AUTHOR: # Siegfried-A. Gevatter <rainct@ubuntu.com> # # This file is part of AptUrl # # AptUrl 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. # # AptUrl 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 AptUrl; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA import gettext import subprocess def _(str): return utf8(gettext.gettext(str)) def _n(singular, plural, n): return utf8(gettext.ngettext(singular, plural, n)) def utf8(str): if str is bytes: try: return str.decode('UTF-8') except UnicodeDecodeError: # assume latin1 as fallback return str.decode('latin1') else: return str def get_dist(): return subprocess.check_output( 'lsb_release -c -s'.split(), universal_newlines=True).strip() def parse_pkg(pkgobj): summary = "" description = "" pkg_description = pkgobj.candidate.description if pkg_description.count("\n") > 0: summary, description = pkg_description.split('\n', 1) else: summary = pkg_description lines = description.rstrip('\n').split('\n') if len(lines) > 1 and lines[-1].startswith('Homepage: '): homepage = lines[-1].split(' ', 1)[1] description = '\n'.join(lines[:-1]) else: homepage = pkgobj.candidate.homepage return (summary, description, homepage) def format_description(description): const = 'APTURL_DOUBLE_EMPTY_LINE_PLACEHOLDER' return description.replace('\n\n', const).replace('\n', ' ').replace( const, '\n\n')
Close