当我使用 GDB 附加到进程时,我看到了该警告:
Reading symbols from /CloneFileSystem/lib/ld-uClibc.so.0...
(No debugging symbols found in /CloneFileSystem/lib/ld-uClibc.so.0)
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
Run Code Online (Sandbox Code Playgroud)
即使我使用set sysroot /CloneFileSystem那里的所有库,那也没有帮助。
我的进程调用共享库中的函数以及该函数调用另一个共享库中的另一个函数。
例如 ProcessFunc-> Lib1Func -> Lib2Func
我想调试 Lib2Func,但是当我运行命令
b Lib2Func
gdb 时,无法在库已加载的情况下设置断点
file myexe->interpreter /lib/ld-uClibc.so.0
当我info sharedlibrary在 GDB 中使用时,我无法获取 From 和 To 中的值(加载的地址为空)
我尝试调试 Android 应用程序以使用该项目打印SSL_write和SSL_read数据,并使用SSL_get_fd 打印文件描述符(以获取 src&dst ip )
但对于某些SSL*函数,函数SSL_get_fd总是返回 -1 而不是返回正确的 fd ,而对于另一些函数,SSL*函数SSL_get_fd返回正确的 fd 。
当我尝试使用函数SSL_is_init_finished来检查那些SSL*返回 fd = -1 的函数时,我得到 1(true)
我看到了同样的问题:What does it Mean, When SSL_get_fd returns -1? 但那里没有答案。
我怎样才能得到正确的 fd SSL *?
我有那个缓冲区
87 a1 41 a4 31 32 33 34 a1 42 a4 61 62 63 64 a1 43 a1 61 a1 44 a8 31 31 31 31 31 31 31 31 a1 45 a8 75 73 65 72 6e 61 6d 65 a1 46 a4 6e 61 6d 65 a1 47 a7 6e 61 6d 65 5f 6e 61
Run Code Online (Sandbox Code Playgroud)
我想解析这个 json
{
"A": "1234",
"B": "abcd",
"C": "a",
"D": "11111111",
"E": "username",
"F": "name",
"G": "name_na"
}
Run Code Online (Sandbox Code Playgroud)
像网络货架
请问我怎样才能用Python做到这一点?
我尝试使用 Scapy 配置 L3 套接字,如下所示:
from scapy.all import *
soc = conf.L3socket(iface="eth1")
Run Code Online (Sandbox Code Playgroud)
当我在 Ubuntu VM 中使用此代码时,一切正常,但是当我在 WSL 中使用此代码时,出现错误:
/usr/local/lib/python3.10/dist-packages/scapy/layers/ipsec.py:471: CryptographyDeprecationWarning: Blowfish has been deprecated
cipher=algorithms.Blowfish,
/usr/local/lib/python3.10/dist-packages/scapy/layers/ipsec.py:485: CryptographyDeprecationWarning: CAST5 has been deprecated
cipher=algorithms.CAST5,
Traceback (most recent call last):
File "........./python/test.py", line 2, in <module>
soc = conf.L3socket(iface="eth1")
File "/usr/local/lib/python3.10/dist-packages/scapy/arch/linux.py", line 486, in __init__
self.ins = socket.socket(
File "/usr/lib/python3.10/socket.py", line 232, in __init__
_socket.socket.__init__(self, family, type, proto, fileno)
OSError: [Errno 97] Address family not supported by protocol
Run Code Online (Sandbox Code Playgroud)
我该如何解决这个问题?