Linux server1.dn-server.com 4.18.0-553.89.1.lve.el8.x86_64 #1 SMP Wed Dec 10 13:58:50 UTC 2025 x86_64
LiteSpeed
Server IP : 195.201.204.189 & Your IP : 216.73.217.130
Domains :
Cant Read [ /etc/named.conf ]
User : beriska1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
python34 /
lib64 /
python3.4 /
ctypes /
test /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2026-05-01 04:20
__init__.py
399
B
-rw-r--r--
2024-04-17 20:40
__main__.py
68
B
-rw-r--r--
2024-04-17 20:40
test_anon.py
2
KB
-rw-r--r--
2024-04-17 20:40
test_array_in_pointer.py
1.7
KB
-rw-r--r--
2024-04-17 20:40
test_arrays.py
5.5
KB
-rw-r--r--
2024-04-17 20:40
test_as_parameter.py
6.61
KB
-rw-r--r--
2024-04-17 20:40
test_bitfields.py
9.84
KB
-rw-r--r--
2024-04-17 20:40
test_buffers.py
2.23
KB
-rw-r--r--
2024-04-17 20:40
test_bytes.py
1.88
KB
-rw-r--r--
2024-04-17 20:40
test_byteswap.py
10.6
KB
-rw-r--r--
2024-04-17 20:40
test_callbacks.py
8.79
KB
-rw-r--r--
2024-04-17 20:40
test_cast.py
3.11
KB
-rw-r--r--
2024-04-17 20:40
test_cfuncs.py
7.5
KB
-rw-r--r--
2024-04-17 20:40
test_checkretval.py
968
B
-rw-r--r--
2024-04-17 20:40
test_delattr.py
533
B
-rw-r--r--
2024-04-17 20:40
test_errno.py
2.25
KB
-rw-r--r--
2024-04-17 20:40
test_find.py
2.77
KB
-rw-r--r--
2024-04-17 20:40
test_frombuffer.py
4.15
KB
-rw-r--r--
2024-04-17 20:40
test_funcptr.py
3.82
KB
-rw-r--r--
2024-04-17 20:40
test_functions.py
12.26
KB
-rw-r--r--
2024-04-17 20:40
test_incomplete.py
1023
B
-rw-r--r--
2024-04-17 20:40
test_init.py
1.01
KB
-rw-r--r--
2024-04-17 20:40
test_internals.py
2.57
KB
-rw-r--r--
2024-04-17 20:40
test_keeprefs.py
3.96
KB
-rw-r--r--
2024-04-17 20:40
test_libc.py
1005
B
-rw-r--r--
2024-04-17 20:40
test_loading.py
4.29
KB
-rw-r--r--
2024-04-17 20:40
test_macholib.py
1.79
KB
-rw-r--r--
2024-04-17 20:40
test_memfunctions.py
3.22
KB
-rw-r--r--
2024-04-17 20:40
test_numbers.py
9.07
KB
-rw-r--r--
2024-04-17 20:40
test_objects.py
1.64
KB
-rw-r--r--
2024-04-17 20:40
test_parameters.py
6.05
KB
-rw-r--r--
2024-04-17 20:40
test_pep3118.py
7.65
KB
-rw-r--r--
2024-04-17 20:40
test_pickling.py
2.17
KB
-rw-r--r--
2024-04-17 20:40
test_pointers.py
6.72
KB
-rw-r--r--
2024-04-17 20:40
test_prototypes.py
6.58
KB
-rw-r--r--
2024-04-17 20:40
test_python_api.py
2.8
KB
-rw-r--r--
2024-04-17 20:40
test_random_things.py
2.76
KB
-rw-r--r--
2024-04-17 20:40
test_refcounts.py
2.52
KB
-rw-r--r--
2024-04-17 20:40
test_repr.py
842
B
-rw-r--r--
2024-04-17 20:40
test_returnfuncptrs.py
2.83
KB
-rw-r--r--
2024-04-17 20:40
test_simplesubclasses.py
1.26
KB
-rw-r--r--
2024-04-17 20:40
test_sizes.py
815
B
-rw-r--r--
2024-04-17 20:40
test_slicing.py
5.87
KB
-rw-r--r--
2024-04-17 20:40
test_stringptr.py
2.48
KB
-rw-r--r--
2024-04-17 20:40
test_strings.py
6.97
KB
-rw-r--r--
2024-04-17 20:40
test_struct_fields.py
1.47
KB
-rw-r--r--
2024-04-17 20:40
test_structures.py
15.41
KB
-rw-r--r--
2024-04-17 20:40
test_unaligned_structures.py
1.19
KB
-rw-r--r--
2024-04-17 20:40
test_unicode.py
1.72
KB
-rw-r--r--
2024-04-17 20:40
test_values.py
3.42
KB
-rw-r--r--
2024-04-17 20:40
test_varsize_struct.py
1.8
KB
-rw-r--r--
2024-04-17 20:40
test_win32.py
5.16
KB
-rw-r--r--
2024-04-17 20:40
test_wintypes.py
1.43
KB
-rw-r--r--
2024-04-17 20:40
Save
Rename
""" A testcase which accesses *values* in a dll. """ import unittest import sys from ctypes import * import _ctypes_test class ValuesTestCase(unittest.TestCase): def test_an_integer(self): # This test checks and changes an integer stored inside the # _ctypes_test dll/shared lib. ctdll = CDLL(_ctypes_test.__file__) an_integer = c_int.in_dll(ctdll, "an_integer") x = an_integer.value self.assertEqual(x, ctdll.get_an_integer()) an_integer.value *= 2 self.assertEqual(x*2, ctdll.get_an_integer()) # To avoid test failures when this test is repeated several # times the original value must be restored an_integer.value = x self.assertEqual(x, ctdll.get_an_integer()) def test_undefined(self): ctdll = CDLL(_ctypes_test.__file__) self.assertRaises(ValueError, c_int.in_dll, ctdll, "Undefined_Symbol") class PythonValuesTestCase(unittest.TestCase): """This test only works when python itself is a dll/shared library""" def test_optimizeflag(self): # This test accesses the Py_OptimizeFlag integer, which is # exported by the Python dll and should match the sys.flags value opt = c_int.in_dll(pythonapi, "Py_OptimizeFlag").value self.assertEqual(opt, sys.flags.optimize) def test_frozentable(self): # Python exports a PyImport_FrozenModules symbol. This is a # pointer to an array of struct _frozen entries. The end of the # array is marked by an entry containing a NULL name and zero # size. # In standard Python, this table contains a __hello__ # module, and a __phello__ package containing a spam # module. class struct_frozen(Structure): _fields_ = [("name", c_char_p), ("code", POINTER(c_ubyte)), ("size", c_int)] FrozenTable = POINTER(struct_frozen) ft = FrozenTable.in_dll(pythonapi, "PyImport_FrozenModules") # ft is a pointer to the struct_frozen entries: items = [] # _frozen_importlib changes size whenever importlib._bootstrap # changes, so it gets a special case. We should make sure it's # found, but don't worry about its size too much. _fzn_implib_seen = False for entry in ft: # This is dangerous. We *can* iterate over a pointer, but # the loop will not terminate (maybe with an access # violation;-) because the pointer instance has no size. if entry.name is None: break if entry.name == b'_frozen_importlib': _fzn_implib_seen = True self.assertTrue(entry.size, "_frozen_importlib was reported as having no size") continue items.append((entry.name, entry.size)) expected = [(b"__hello__", 161), (b"__phello__", -161), (b"__phello__.spam", 161), ] self.assertEqual(items, expected) self.assertTrue(_fzn_implib_seen, "_frozen_importlib wasn't found in PyImport_FrozenModules") from ctypes import _pointer_type_cache del _pointer_type_cache[struct_frozen] def test_undefined(self): self.assertRaises(ValueError, c_int.in_dll, pythonapi, "Undefined_Symbol") if __name__ == '__main__': unittest.main()