本文整理汇总了Python中address.Address.read方法的典型用法代码示例。如果您正苦于以下问题:Python Address.read方法的具体用法?Python Address.read怎么用?Python Address.read使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类address.Address
的用法示例。
在下文中一共展示了Address.read方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from address import Address [as 别名]
# 或者: from address.Address import read [as 别名]
class TurBoDebugger:
option = 0
rc = 0
proc = 0
def __init__(self, proc_name):
self.mw = MemWorker(proc_name)
def run_game(self, path):
self.rc = subprocess.Popen(path, shell=True)
def options(self):
print("what to do?")
print(" 1 search for text")
print(" 2 go to offset")
self.option = int(input(" 1 or 2 :> "))
if self.option == 1:
self.search_text()
elif self.option == 2:
self.go_offset()
def search_text(self):
text = input("Text search :> ")
l = [x for x in self.mw.mem_search(text)]
a = [x for x in l]
print(l)
print(a)
val = int(input("Select Offset :> "))
a[val].dump()
def go_offset(self):
self.offset = input("offset :> ")
print("go for %s" % self.offset)
self.proc = self.mw.get_process()
self.address = Address(self.offset, self.proc)
data = self.address.read(type="bytes")
print(int(data))