找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
楼主: xuwe***

[ax9000] AX9000和AX6000获取SSH的方法

 火.. [复制链接]
发表于 2022-9-6 10:15 | 显示全部楼层
  1. module("luci.controller.admin.xqsystem", package.seeall)


  2. function index()
  3.     local page   = node("api")
  4.     page.target  = firstchild()
  5.     page.title   = ("")
  6.     page.order   = 100
  7.     page.index = true
  8.     page   = node("api","xqsystem")
  9.     page.target  = firstchild()
  10.     page.title   = ("")
  11.     page.order   = 100
  12.     page.index = true
  13.     entry({"api", "xqsystem", "token"}, call("getToken"), (""), 103, 0x08)
  14. end

  15. local LuciHttp = require("luci.http")

  16. function getToken()
  17.     local result = {}
  18.     result["code"] = 0
  19.     result["token"] = "; nvram set ssh_en=1; nvram set uart_en=1; nvram set boot_wait=on; nvram commit; sed -i 's/channel=.*/channel="debug"/g' /etc/init.d/dropbear; /etc/init.d/dropbear start; echo -e 'admin\nadmin' | passwd root"
  20.     LuciHttp.write_json(result)
  21. end
复制代码
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-9-6 10:16 | 显示全部楼层
自己加了一段代码,直接把密码改成admin 不用再查初始密码

点评

这代码如何运行?  详情 回复 发表于 2022-11-4 22:00
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-9-7 09:20 | 显示全部楼层
没有Op路由和网卡...
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-9-7 20:58 | 显示全部楼层
本帖最后由 NormalPeople 于 2022-9-7 21:06 编辑

火钳刘明
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-10-1 18:41 | 显示全部楼层
谢谢分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-10-9 01:41 | 显示全部楼层
最后一步
http://192.168.31.1/cgi-bin/luci/;stok=<STOK>/api/xqsystem/extendwifi_connect_inited_router?ssid=<SSID>&password=<ASSWORD>&encryption=<ENCRYPTION>enctype=<ENCTYPE>&channel=<CHANNEL>&band=<BAND>&admin_username=root&admin_password=admin&admin_nonce=xxx
返回 504 Gateway Time-out
连接超时
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-11-4 17:49 | 显示全部楼层
奥斯卡肌红蛋白裤架
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-11-4 22:00 | 显示全部楼层
NormalPeople 发表于 2022-9-6 10:16
自己加了一段代码,直接把密码改成admin 不用再查初始密码

这代码如何运行?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-11-23 20:34 | 显示全部楼层
1.0.95 无法升级,回退1.0.55 可以.
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-11-24 12:17 | 显示全部楼层
求教,我红米ax6000 刷的openwrt,用来给ax9000解锁,但是输入地址之后总是得到 {"msg":"对端路由器不支持此功能","code":1646}
我把5g信号关了,2.4g是:信道: 11,无线模式: B/G/GN mode 带宽20m 请问是哪里错了吗?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2023-2-23 08:35 | 显示全部楼层
按教程刷机成功,如果有固化ssh的说明就更好了。谢谢!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2023-2-23 09:19 | 显示全部楼层
好贴帮顶,但如果折腾我会选择旁路由折腾
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2023-2-23 22:45 | 显示全部楼层
前面内容都是保姆级的,后面突然就上传如下内容的附件到~,我已经不会上传了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2023-3-13 16:32 | 显示全部楼层
5. 通过SN来获取默认root账号的密码(SN格式如:30333/F01234567):https://www.oxygen7.cn/miwifi/   网站已挂
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2023-3-15 19:27 | 显示全部楼层
小米ax6000按教程开启了ssh,如何固化呢
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-25 19:37

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

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