403Webshell
Server IP : 3.96.16.70  /  Your IP : 216.73.216.15
Web Server : Apache
System : Linux ip-172-31-26-103.ca-central-1.compute.internal 6.1.163-186.299.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Feb 24 16:35:42 UTC 2026 x86_64
User : ec2-user ( 1000)
PHP Version : 8.4.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python3.9/site-packages/sepolicy/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3.9/site-packages/sepolicy/__pycache__/network.cpython-39.opt-1.pyc
a

��b�
�@s ddlZddd�Zddd�ZdS)	�NFc	sdt�tjgtj|tj|tj�i�}g}|r`tdd�t��fdd�|��D]}||vrH|�|�qH|S)NcSs
|tjS)N)�sepolicyZTARGET)�y�r�4/usr/lib/python3.9/site-packages/sepolicy/network.py�<lambda>�zget_types.<locals>.<lambda>cs"t���|tj�o �p |dS)NZenabled)�set�issubsetr�PERMS)�x��check_bools�permrrrr)	r�searchZALLOWZSOURCEZCLASSr
�map�filter�append)�srcZtclassrr
ZallowsZnlist�irrr�	get_typess""rc		Csrt��\}}i}t|d||g|�}t|�dk�rng||||f<|D�]&}|dkr`d|vr\qDd}|dkr|d|vrrqDd|vr|qD|dkr�||||f�|dgf�|d	kr�||||f�|d
gf�qD|dkr�||||f�|dgf�qD|dk�r||||f�|d
gf�qD|dk�r2||||f�|dgf�qDz$||||f�||||ff�WqDt�yjYqD0qD|S)Nz	%s_socketrZephemeral_port_typeZunreserved_port_typeZephemeral_port_tZunreserved_port_tZport_tzall ports without defined typesZ	port_typez	all portszall ports >= 1024Zreserved_port_typezall ports < 1024Z
rpc_port_typezall ports >= 512 and < 1024)rZ
gen_port_dictr�lenr�KeyError)	rZprotocolrr
ZportrecsZ
portrecsbynum�dZtlistrrrr�get_network_connect#s<


$r)F)F)rrrrrrr�<module>s


Youez - 2016 - github.com/yon3zu
LinuXploit