我有一个 Python 脚本,它从 .NET 应用程序接收数据。如何在我的脚本中使用类型为“System.Collections.Generic.List`1[System.Byte]”的传入缓冲区?
该脚本的功能是查找和替换字符串标记,将缓冲区重新组装回 System.Collections.Generic.List`1[System.Byte],然后将缓冲区返回给 .NET 服务器。
我对 Python很陌生。这是我到目前为止所拥有的:
import array
import clr
from System.Collections.Generic import *
def SetRecvBuffer(buffer):
li = List[byte](buffer)
hookme.Debug(li)
for x in li:
hookme.Debug(x)
任何帮助,将不胜感激。谢谢!