debian系统使用grubby及伪造dpkg安装状态

安装grubby

debian系统没有grubby安装包,

所以使用源码编译, 源码地址:https://github.com/lemenkov/grubby.git

make

make install

dpkg -s grubby 会报错

 

伪造dpkg安装状态

vim /var/lib/dpkg/status

随便复制一个已经安装好的包,如下

Package: grubby
Status: install ok installed
Priority: required
Section: libs
Installed-Size: 67
Maintainer: Debian Deepin Packaging Team <pkg-deepin-devel@lists.alioth.debian.org>
Architecture: mips64el
Version: 1.5c.debian.1-7
Depends: lrzsz, openssh-client | telnet | telnet-ssl, libc6 (>= 2.27), libreadline7 (>= 6.0)
Description: interactive file transfers over ssh
 zssh (Zmodem SSH) is a program for interactively transferring files to a
 remote machine  while using  the secure  shell (ssh).  It is intended to
 be a convenient  alternative to scp, allowing to  transfer files without
 having to open another session and re-authenticate oneself.
 .
 Files are transferred through the zmodem  protocol,  using the rz and sz
 commands.
Homepage: http://zssh.sourceforge.net/

 

成功

再次执行 dpkg -s grubby, 此时能查询到安装状态。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值