mikrotik 提升到root权限

参考

https://www.freebuf.com/company-information/233329.html

工具

https://github.com/tenable/routeros/tree/master/cleaner_wrasse

只有以下的版本能root

  • Longterm: 6.30.1 - 6.43.14
  • Stable: 3.30 - 6.43.12

=========================================

编译cleaner_wrasse

必备

  • Boost 1.66

https://blog.csdn.net/renhaofan/article/details/82083105

https://blog.csdn.net/xiangxianghehe/article/details/78906435

  • pthread
  • cmake

记得加上头文件 

https://github.com/tenable/routeros/tree/master/common

------------------编译过程---------------

mkdir build
cd build
cmake ..
make

-----------------------------------------------

以上所有的编译都可以在win10的linux 子系统上完成。

telnet 到mikrotik ,账户devel 密码是你的admin密码

登陆后发现缺少很多命令。

安装busybox  ,自己选对应的busybox 版本,比如我的是x86的,选x86_64

https://busybox.net/downloads/binaries/1.21.1/

busybox 直接安装是不行的,因为系统主要的目录只有只读权限 chmod +x busybox

./busybox --install -s /flash/bin 

=============================

附带老外的权限维持,升级后权限不掉

https://medium.com/tenable-techblog/routeros-post-exploitation-784c08044790

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值