博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
【Error】gdb.attach错误 Failed to read a valid object file image from memory.
阅读量:4208 次
发布时间:2019-05-26

本文共 1986 字,大约阅读时间需要 6 分钟。

python脚本中pwntools gdb.attach遇到错误:Failed to read a valid object file image from memory.

******Your encoding (ANSI_X3.4-1968) is different than UTF-8. pwndbg might not work properly.You might try launching gdb with:    LC_ALL=en_US.UTF-8 PYTHONIOENCODING=UTF-8 gdbMake sure that en_US.UTF-8 is activated in /etc/locale.gen and you called locale-gen******pwndbg: loaded 173 commands. Type pwndbg [filter] for a list.pwndbg: created $rebase, $ida gdb functions (can be used with print/break)Reading symbols from ./RNote4...(no debugging symbols found)...done.Attaching to program: /root/Pwn/RNote4/RNote4, process 1105Reading symbols from /lib/x86_64-linux-gnu/libc.so.6...Reading symbols from /usr/lib/debug//lib/x86_64-linux-gnu/libc-2.23.so...done.done.Reading symbols from /lib64/ld-linux-x86-64.so.2...Reading symbols from /usr/lib/debug//lib/x86_64-linux-gnu/ld-2.23.so...done.done.Cannot access memory at address 0x7ffff7ffe148warning: Unable to find dynamic linker breakpoint function.GDB will be unable to debug shared library initializersand track explicitly loaded dynamic code.Failed to read a valid object file image from memory.0x00007ffff7b04260 in __read_nocancel () at ../sysdeps/unix/syscall-template.S:8484      ../sysdeps/unix/syscall-template.S: No such file or directory.ERROR: Could not find ELF base!ERROR: Could not find ELF base!ERROR: Could not find ELF base!ERROR: Could not find ELF base!ERROR: Could not find ELF base!ERROR: Could not find ELF base!ERROR: Could not find ELF base!Couldn't get registers: No such process./tmp/pwnS5x0nn.gdb:2: Error in sourced command file:Couldn't get registers: No such process.Exception occured: Error: Couldn't get registers: No such process. (
)For more info invoke `set exception-verbose on` and rerun the commandor debug it by yourself with `set exception-debugger on`Python Exception
Couldn't get registers: No such process.:

一阵搜索之后没搞定。后来问了同学发现问题是python脚本里面忘加interactive了, 导致程序退出了。所以gdb attach不上。

转载地址:http://irmli.baihongyu.com/

你可能感兴趣的文章
【React Native】Invariant Violation: Application AwesomeProject has not been registered
查看>>
【ReactNative】真机上无法调试 could not connect to development server
查看>>
【XCode 4.6】常用快捷键 特别是格式化代码ctrl+i
查看>>
【iOS游戏开发】icon那点事 之 实际应用(二)
查看>>
【iOS游戏开发】icon那点事 之 图标设计(三)
查看>>
【IOS游戏开发】之测试发布(Distribution)
查看>>
【IOS游戏开发】之IPA破解原理
查看>>
【一天一道LeetCode】#45. Jump Game II
查看>>
【一天一道LeetCode】#46. Permutations
查看>>
【一天一道LeetCode】#47. Permutations II
查看>>
【一天一道LeetCode】#48. Rotate Image
查看>>
【一天一道LeetCode】#56. Merge Intervals
查看>>
【一天一道LeetCode】#57. Insert Interval
查看>>
【一天一道LeetCode】#58. Length of Last Word
查看>>
【一天一道LeetCode】#59. Spiral Matrix II
查看>>
【一天一道LeetCode】#30. Substring with Concatenation of All Words
查看>>
【一天一道LeetCode】#60. Permutation Sequence.
查看>>
【一天一道LeetCode】#113. Path Sum II
查看>>
【一天一道LeetCode】#114. Flatten Binary Tree to Linked List
查看>>
【unix网络编程第三版】阅读笔记(二):套接字编程简介
查看>>