MCPcopy Create free account
hub / github.com/qilingframework/qiling / read_cstring

Method read_cstring

qiling/os/utils.py:88–92  ·  view source on GitHub ↗

Read a null-terminated ASCII string from memory.

(self, address: int, maxlen: int = 0)

Source from the content-addressed store, hash-verified

86 return self.read_string(address, 'utf-16le', maxlen)
87
88 def read_cstring(self, address: int, maxlen: int = 0) -> str:
89 """Read a null-terminated ASCII string from memory.
90 """
91
92 return self.read_string(address, 'latin1', maxlen)
93
94 def read_guid(self, address: int) -> UUID:
95 raw_guid = self.ql.mem.read(address, 16)

Callers 15

__init__Method · 0.80
ql_syscall___sysctlFunction · 0.80
read_pansi_stringFunction · 0.80
__handle_textMethod · 0.80
hook_PathFindExtensionAFunction · 0.80
hook_PathFindFileNameAFunction · 0.80
hook_gethostbynameFunction · 0.80
hook_CharLowerAFunction · 0.80
hook_CharNextAFunction · 0.80
hook_lstrcatAFunction · 0.80
hook_GetProcAddressFunction · 0.80
statFamilyFunction · 0.80

Calls 1

read_stringMethod · 0.95

Tested by 6

graceful_execveFunction · 0.64
test_syscall_openMethod · 0.64
test_syscall_openatMethod · 0.64
test_syscall_unlinkMethod · 0.64
test_syscall_unlinkatMethod · 0.64
test_syscall_truncateMethod · 0.64