zu1k / srun

srun 深澜认证登录,超轻量、多平台,支持多拨、自动探测IP、指定网卡

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sdusrun-mipsel-unknown-linux-musl can not execute

hotwa opened this issue · comments

image

cpu:

[root@Router ~]$ cat /proc/cpuinfo 
system type		: MT7621
machine			: TGNET_RN1150W
processor		: 0
cpu model		: MIPS 1004Kc V2.15
BogoMIPS		: 583.68
wait instruction	: yes
microsecond timers	: yes
tlb_entries		: 32
extra interrupt vector	: yes
hardware watchpoint	: yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb]
isa			: mips1 mips2 mips32r1 mips32r2
ASEs implemented	: mips16 dsp mt
shadow register sets	: 1
kscratch registers	: 0
core			: 0
VPE			: 0
VCED exceptions		: not available
VCEI exceptions		: not available

MT7621,MIPS程序 执行时候,卡着不动

commented

看样子是 config.json 文件有错误

commented

MT7621,MIPS程序 执行时候,卡着不动

你的cpu是大端,不能用mipsel版本

commented

把你的config.json文件贴出来

{
    "server": "http://202.114.177.246/",
    "strict_bind": false,
    "double_stack": false,
    "retry_delay": 3000,
    "retry_times": 1,
    "acid": 12,
    "os": "Windows",
    "name": "Windows 10",
    "users": [
        {
            "username": "user@unicom",
            "password": "passwd",
            "ip": "10.8.247.5"
        },
        {
            "username": "user@unicom",
            "password": "passwd",
            "if_name": "eth0.5"
        }
    ]
}
commented

./sdusrun-mips-unknown-linux-musl login -c config.json

看看提示什么

[root@Router ~]$ ./sdusrun-mips-unknown-linux-musl -c config.json
./sdusrun-mips-unknown-linux-musl: line 1: syntax error: unexpected "("
commented

我用 qemu 测试了一下 mips 版本,看起来确实有问题。不过不应该报这个错误啊

commented

不是,是二进制有问题

commented

试一下刚发的 0.5.1 版,卡住应该是 upx 壳的原因

[root@Router ~]$ chmod +x ./sdusrun-mips-unknown-linux-musl 
[root@Router ~]$ ./sdusrun-mips-unknown-linux-musl 
./sdusrun-mips-unknown-linux-musl: line 1: syntax error: unexpected ")"

目录下没有给配置文件

commented

试试之前卡住的那个架构

[root@Router ~]$ chmod +x ./sdusrun-mipsel-unknown-linux-musl 
[root@Router ~]$ ./sdusrun-mipsel-unknown-linux-musl 
Usage: sdusrun ACTION [options]

Actions: login | logout

正常了,明天具体测试一下登录。
这个可以配置网卡多拨吧,提高速度

commented

这个只是深澜登录,多拨你得自己搞