找回密码
 注册
关于网站域名变更的通知
查看: 1566|回复: 3
打印 上一主题 下一主题

求解kali安装gdb peda不成功的问题

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2020-9-10 15:28 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

EDA365欢迎您登录!

您需要 登录 才可以下载或查看,没有帐号?注册

x
1.kali_2018_2的ISO,Kali GNU/Linux Rolling \n \l! \. \, Z. \7 y2 k2 d! I
内核 Linux kali 4.15.0-kali2-amd64 #1 SMP Debian 4.15.11-1kali1 (2018-03-21) x86_64 GNU/Linux4 O# j  R1 ?7 B/ K
2.安装方式
9 F4 H3 ]' Y( Z  K. G, d/ l- t2 B$ git clone https://github.com/longld/peda.git ~/peda1 h! a5 N  Q' N( w  k8 [( {( m1 K, d
$ echo "source ~/peda/peda.py" >> ~/.gdbinit
) u: I+ Z1 @. a, j4 J3.安装几次仍不成功5 z- E7 B% Y8 ], i# m. S6 z
GNU gdb (Debian 7.12-6+b1) 7.12.0.20161007-git& x" m2 z$ T# @
Copyright (C) 2016 Free Software Foundation, Inc.. p0 K4 R/ G( N0 ?9 ~
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. P  k5 r7 Z. N; V0 z" z
This is free software: you are free to change and redistribute it.
0 `; x0 }2 g, _There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
, s8 G0 W, a3 C, Z& ?% wand "show warranty" for details.0 D; a* v* m, [
This GDB was configured as "x86_64-linux-gnu".0 a/ T+ U; ^% n9 W/ c4 l  [
Type "show configuration" for configuration details.0 s) `2 A- a+ c# x+ K) K
For bug reporting instructions, please see:
% C, r8 K6 n* V! P; v<http://www.gnu.org/software/gdb/bugs/>.; N! y# S) b* K; [3 Z8 ?
Find the GDB manual and other documentation resources online at:1 R0 ]6 Q4 d) {7 s, N: o
<http://www.gnu.org/software/gdb/documentation/>.
' I3 Q! Y4 Y, _4 h1 C  pFor help, type "help".
  L  i8 J$ j' ZType "apropos word" to search for commands related to "word".( M4 G* |/ C( N
/root/.gdbinit:1: Error in sourced command file:
3 L6 Y' R8 R' v* a0 F) rUndefined command: "".  Try "help".$ L5 v% z' I$ L* U
(gdb) Quit
' q$ x9 v7 Q$ B+ U) f7 h$ c( e8 d- [(gdb) 7 ]5 d3 O( |# \) H% ?& ^. ^# x
求解

" t! D: O; _5 W" `6 L

该用户从未签到

3#
 楼主| 发表于 2020-9-10 18:36 | 只看该作者
Kali安装是需要升级库文件,自带的gdb是无插件的。直接升级库文件,安装gdb即可
- [; P  I# r7 `apt-get update# F2 L  S/ V$ L  w6 D$ e
apt-get install gdb,如果提示缺什么就apt-get什么7 i2 e! A  O0 v! {; k7 z6 v9 I
安装时选择y安装好gdb
' H9 @0 _/ S5 U* s. oroot@kali:~/桌面/CTF2020# gdb' s1 P9 U  q/ Z7 i$ @5 e0 n  P
GNU gdb (Debian 9.1-3) 9.1
1 `( j- D# D7 a3 ], V" G6 xCopyright (C) 2020 Free Software Foundation, Inc.
/ j1 H7 d" T4 o- fLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
% @" _' Q$ z3 g) EThis is free software: you are free to change and redistribute it.
2 }. }& n2 v1 @# }: v: x+ dThere is NO WARRANTY, to the extent permitted by law.6 P; l5 R% w8 _
Type "show copying" and "show warranty" for details.( `& L: U1 T. D2 k$ N
This GDB was configured as "x86_64-linux-gnu".
; T. s  n/ w  @; `# N) x' UType "show configuration" for configuration details.
- k$ G# ^3 L5 C' Y0 ?# ^For bug reporting instructions, please see:
5 {; \. a. M  D- G2 q6 ^& U<http://www.gnu.org/software/gdb/bugs/>.3 O' h' l& }3 _
Find the GDB manual and other documentation resources online at:
0 j  r3 R/ ^' @: m6 v    <http://www.gnu.org/software/gdb/documentation/>.
/ ^7 |% Y1 `' q* \) R- n" U" F* ^! G) T: X
For help, type "help".
$ \% p0 I0 k2 r6 ]  P$ C8 JType "apropos word" to search for commands related to "word".
+ F. E$ G4 D6 f. }* Q
- y/ M% Z  M4 W, e- n1 t* B2 @warning: peda/peda.py: 没有那个文件或目录9 ~9 J7 R) a$ ~& B8 G
1 A! X5 E0 D& l3 D9 R+ @6 G
warning: build/bdist.linux-x86_64/wheel/peda/peda.py: 没有那个文件或目录" N/ T1 Q9 d+ V# J* _
gdb-peda$ file hero

该用户从未签到

4#
发表于 2020-9-10 18:36 | 只看该作者
你这个问题有点复杂啊
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

推荐内容上一条 /1 下一条

EDA365公众号

关于我们|手机版|EDA365电子论坛网 ( 粤ICP备18020198号-1 )

GMT+8, 2025-11-24 21:58 , Processed in 0.140625 second(s), 23 queries , Gzip On.

深圳市墨知创新科技有限公司

地址:深圳市南山区科技生态园2栋A座805 电话:19926409050

快速回复 返回顶部 返回列表