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

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

[复制链接]

该用户从未签到

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

EDA365欢迎您登录!

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

x
1.kali_2018_2的ISO,Kali GNU/Linux Rolling \n \l; J  W& x7 _$ c3 S3 m# b
内核 Linux kali 4.15.0-kali2-amd64 #1 SMP Debian 4.15.11-1kali1 (2018-03-21) x86_64 GNU/Linux
9 N$ y5 `7 |! r0 i$ u7 o2.安装方式( k5 s; w1 R" y  ?: M0 d5 q  N7 Q3 h
$ git clone https://github.com/longld/peda.git ~/peda% w+ ~& Q  Y7 o2 F$ C4 n' F  B
$ echo "source ~/peda/peda.py" >> ~/.gdbinit
1 x4 Q& X" {1 t, a- O# a+ k3.安装几次仍不成功  {6 ^" X. S- d) e9 V$ p" ~2 D: \
GNU gdb (Debian 7.12-6+b1) 7.12.0.20161007-git
- S& @% }" J$ f  r, mCopyright (C) 2016 Free Software Foundation, Inc.$ N/ h: @$ h5 I" }* z( F
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
3 U- I& [4 t. e. l9 S* d, R. aThis is free software: you are free to change and redistribute it.
$ M7 F: O. X& U6 x2 U$ Y  MThere is NO WARRANTY, to the extent permitted by law.  Type "show copying"
0 l; ]- R0 Z; I* r7 a7 Vand "show warranty" for details.  X$ h4 d# ]! r/ \5 K3 Z9 y$ {, i
This GDB was configured as "x86_64-linux-gnu".+ \& j' i5 \; C/ Y: c6 ]1 F0 E
Type "show configuration" for configuration details.
2 Y# [. W. \6 m9 m/ b' zFor bug reporting instructions, please see:9 w7 c. d8 M. [+ I
<http://www.gnu.org/software/gdb/bugs/>.
; i3 C8 Z, c; yFind the GDB manual and other documentation resources online at:
7 w- W0 h# u1 u1 R) O<http://www.gnu.org/software/gdb/documentation/>.
* i5 ^& Z  f+ W. g+ AFor help, type "help".  m( t+ \) p6 y/ I! m, D: q. N
Type "apropos word" to search for commands related to "word".
$ B- N9 H5 h$ k- a( f& z1 z" Z" W/root/.gdbinit:1: Error in sourced command file:
9 K0 ]$ H# a4 |" ^- x, o7 V( NUndefined command: "".  Try "help".
( l) r. l0 O, F" ^5 n" \' C(gdb) Quit  T( p6 d) w- s8 I8 {9 C
(gdb) 1 O8 @4 r* f/ I
求解
, ^# c3 o% q& j! u! H6 z

该用户从未签到

3#
 楼主| 发表于 2020-9-10 18:36 | 只看该作者
Kali安装是需要升级库文件,自带的gdb是无插件的。直接升级库文件,安装gdb即可
- L6 x# {: V( I" n' ^5 eapt-get update( f  B) }- ^/ d6 V
apt-get install gdb,如果提示缺什么就apt-get什么4 F5 e6 D0 S; [% P% I
安装时选择y安装好gdb 6 E4 o, U5 o4 A. x4 }4 |
root@kali:~/桌面/CTF2020# gdb$ K2 J4 y3 p) s. j" q! D; m
GNU gdb (Debian 9.1-3) 9.1+ J: K* Z4 Q1 t! \
Copyright (C) 2020 Free Software Foundation, Inc.+ h9 w; Q3 N) ]- T
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
; W# t# y* V$ M- }This is free software: you are free to change and redistribute it.( ^3 G6 D4 @/ o2 C( {2 T/ J
There is NO WARRANTY, to the extent permitted by law.7 ^7 Y2 ^6 R( D1 j
Type "show copying" and "show warranty" for details.
2 w/ a4 \+ Z" @/ ?1 x& mThis GDB was configured as "x86_64-linux-gnu".
1 O. F  r& T8 P- HType "show configuration" for configuration details.
1 @9 q9 }6 U' nFor bug reporting instructions, please see:
/ f; L( X0 d& |<http://www.gnu.org/software/gdb/bugs/>.
* p; }- b5 d' E# dFind the GDB manual and other documentation resources online at:
( G6 J! M4 @4 a$ \- n1 `0 [- i( e  V  j    <http://www.gnu.org/software/gdb/documentation/>.0 y6 _$ _+ G) L- V% L
* ~- Q3 F. h- H# A+ K% m
For help, type "help".- I/ C  O) K) `6 `* \* a
Type "apropos word" to search for commands related to "word".
9 J/ v; t, ?! n+ ?
: H  m: I* z$ c9 s8 B& T; \8 ~6 n! Hwarning: peda/peda.py: 没有那个文件或目录
+ u' b) r0 U. a8 ^& o" ]7 {. C; @6 @, M' P2 E3 F
warning: build/bdist.linux-x86_64/wheel/peda/peda.py: 没有那个文件或目录
$ d9 P. `: y$ b  M: H0 m9 C& F/ Egdb-peda$ file hero

该用户从未签到

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

本版积分规则

关闭

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

EDA365公众号

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

GMT+8, 2025-6-27 02:22 , Processed in 0.093750 second(s), 23 queries , Gzip On.

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

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

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