MODDEDWARFARE / PPPwn_WRT

A method of running PPPwn on OpenWRT
71 stars 16 forks source link

PUTTY Vs Custom Commands = different behavior #24

Open JonJonSalchichon opened 3 months ago

JonJonSalchichon commented 3 months ago

While trying to run PPPwnWRT on Huawei EchoLife HG5556a rev.C with OpenWRT 23.05.0

If I execute "./run.sh" from PUTTY, then script_name="pppwn_mips"

If I execute it from "Custom Commands = PPPwn PS4" from LuCI, then script_name="pppwn_mipsel"

Any idea? Thanks in advance!

nakasix commented 3 months ago

Hello,

I think it's because, on the command line, you do :

cd /root/PPPwn_WRT-main
./run.sh

The verification is done in the current folder, i.e. "/root/PPPwn_WRT-main".

From LUCI, the script is launched from another folder and does not find the file.

You can try the following two suggestions:

1) Modify the "/root/PPPwn_WRT-main/run.sh" file by changing the line "if [ -e "pppwn_mips" ]; then" to "if [ -e "/root/PPPwn_WRT-main/pppwn_mips" ]; then".

or

2) Modify the "/etc/config/luci" file by changing the line "/root/PPPwn_WRT-main/run.sh" to "cd /root/PPPwn_WRT-main && ./run.sh".

Regards,

MODDEDWARFARE commented 3 months ago

Should now be fixed.