现象:CTF的时候需要使用binwalk分析方法,但是linux无法正常执行
例如:bash:binwalk:未找到命令……
安装git,下载版本
#两个版本都可以 wget https://Github.com/Git/Git/archive/v2.11.0.tar.gz wget https://github.com/git/git/archive/v2.21.0.tar.gz
安装依赖
yum -y install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker
解压
tar -zxvf v2.21.0.tar.gz
进入解压目录
cd git-2.21.0/
编译
make prefix=/usr/local/git all
安装Git在/usr/local/git路径
make prefix=/usr/local/git install
配置环境变量
# 编辑环境配置文件 vim /etc/profile # 末尾添加 export PATH=/usr/local/git/bin:$PATH # 立马生效 source /etc/profile
2、安装binwalk
安装git
yum install -y git
查看版本
git version
问题: 已加载插件:fastestmirror, langpacks
/var/run/yum.pid 已被锁定,PID 为 2323 的另一个程序正在运行。
Another app is currently holding the yum lock; waiting for it to
exit…另一个应用程序是:PackageKit
内存:155 M RSS (574 MB VSZ) 已启动: Mon Mar 23 14:13:26 2020 - 01:07之前 状态 :运行中,进程ID:2323解决方法: [root@chao ~]#
bash rm -f /var/run/yum.pid
C:\Users\>git clone https://github.com/ReFirmLabs/binwalk Cloning into 'binwalk'... remote: Enumerating objects: 8503, done. remote: Counting objects: 100% (185/185), done. remote: Compressing objects: 100% (126/126), done. error: RPC failed; curl 18 transfer closed with outstanding read data remaining fatal: The remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed C:\Users\>
3、 掌握条件语句
4:题外话
linux内网络连接很重要
自查:a和b两处IP地址是否配置正常,若不正常,建议重装
参考链接:
https://www.cnblogs.com/davidshen/p/8145909.html
https://www.linuxprobe.com/linux-network-configuration.html
万能的kali,能解决90%手动安装的bug问题,相对来说,还是更简单粗暴一下,kali真的很好用,就是费CPU和内存,所以,计算机硬件一定要过硬!