MODDEDWARFARE / PPPwn_WRT

A method of running PPPwn on OpenWRT
54 stars 8 forks source link

"No such file or directory" problem #3

Open nicogabriel13 opened 1 month ago

nicogabriel13 commented 1 month ago

this code appears to me, and it won't let me finish the installation

"-ash: cd: can't cd to PPPwn_WRT-main: No such file or directory root@OpenWrt:~# chmod +x install.sh && ./install.sh chmod: install.sh: No such file or directory root@OpenWrt:~#"

DzikiSzogun commented 1 month ago

@nicogabriel13 what router (full info please )?

nicogabriel13 commented 1 month ago

it's TL-WR741ND Ver:4.22

and here is the full code of error

root@OpenWrt:~# opkg install unzip Installing unzip (6.0-6) to root... Collected errors:

MODDEDWARFARE commented 1 month ago

Looks like you don't have enough storage space on the router. Try remove any unnecessary pkgs. You can also use SCP to copy the files over manually so that you don't need unzip.

nicogabriel13 commented 1 month ago

omg, thanks!! i'll look into it because I have no idea how to do this

DzikiSzogun commented 1 month ago

@nicogabriel13 It's working for You? You have (or maybe not) error -> /root/PPPwn_WRT-main/pppwn_mips: line 1: syntax error: unexpected "(" ???

nicogabriel13 commented 1 month ago

No, I haven't been able to fix it yet :( but i'm trying

wasiq-diwan commented 1 month ago

Looks like you don't have enough storage space on the router. Try remove any unnecessary pkgs. You can also use SCP to copy the files over manually so that you don't need unzip.

Can you please share how to use SCP to copy files manually??

MODDEDWARFARE commented 1 month ago

Use WinSCP, select protocol SCP and enter the routers username and password to login. Find the correct architecture of your router using Putty with the command uname -m. If it's aarch64 for example then you only need to copy the pppwn_arch64 version and ignore the rest. If you're on PS4 firmware 11.00 you don't need to copy the stage1 & stage2 files for 9.00. If you want to save even more space you can edit the install script before copying it over. Remove nano from the opkg install command.

wasiq-diwan commented 1 month ago

Let me try your above guidance and let you know the results, meanwhile i am using and old router name TP-LINK WR841N(EU) ver 11.0. hope this works on it. Shall keep you posted.

nicogabriel13 commented 1 month ago

@wasiq-diwan I didn't manage it, but I'll stay alert and if you do, let us know how!

the main problem is that there is no storage on the router and I have no idea what I can delete to put pppwn

DzikiSzogun commented 1 month ago

The problem is we are try to put on router all files. All we need is:

  1. Don't update bycommand "opkg update" and don't instal "unzip" package by command "opkg install unzip".
  2. Don't download repo file to router by "wget -O main.zip https://github.com/MODDEDWARFARE/PPPwn_WRT/archive/refs/heads/main.zip" so we are not unzip these
  3. In install @MODDEDWARFARE should delete (unnecesary to anyone) download nano package "opkg install nano luci-app-commands" from "instal.sh"
  4. Update (maybe i can do it in my pull request #5 ?) README.md by using WinSCP and put files into router without command. It's definitely faster and simpler. Plus, it doesn't waste space on routers with less memory.
  5. @MODDEDWARFARE - Update repo structure in which PPPwn (arch64/armv7/mips/x86_64/... or others in the future) files were in separate directories marked with an appropriate name. And the second - unify the nomenclature in the run.sh script in which the part responsible for the selection of architecture should be removed (the choice of architecture would depend on the user what file he would upload to the router) and then change from "PPPwn_WRT-main/${script_name}" to "pppwn_ps4" or another but universal name
  6. @MODDEDWARFARE - Do the same thing as I described in point 5 for the stage1.bin and stage2.bin files. Let the user upload the file he/she is interested in via WinSCP
wasiq-diwan commented 1 month ago

Let me try your above guidance and let you know the results, meanwhile i am using and old router name TP-LINK WR841N(EU) ver 11.0. hope this works on it. Shall keep you posted.

@MODDEDWARFARE, I have used your guidance first I found out my router architecture is MIPS & second i edit the install script by removing nano only, now I thought all will work so tried to copy the respective file (i.e. 476KB size) but unfortunately my router is way too old and only has memory of 77KB and I cannot transfer this large file even using WinSCP. Following are the screenshots for your review, is there anny other solution or should I replace my router.

Error Low Space Script

And one more thing I want your suggestion is that can I using Orange PI One board to jail-break the PS4, becuase you only share the tutorial for raspberry pi version not anyother chips.

DzikiSzogun commented 1 month ago

@wasiq-diwan try this:

  1. remove full line/command "opkg install nano luc-app-commands" from install.sh or just comment it by add "#" at first char (then it look some like this "#opkg install nano luc-app-commands"
  2. delete unnecesarry stage's .bin files. So.. If You use have 11.00 on PS4 delete "stage1_900.bin" and "stage2_900.bin" / If You use have 9.00 on PS4 delete "stage1_1100.bin" and "stage2_1100.bin"
  3. delete readme.md file - You dont need this into router files

After that try put pppwn_mips file again

EDIT

Sorry, I didn't notice the specifications of your router and how much free memory it has. This may actually be a problem :(

btw1. Installing on Orange PI should be "the same" as for RaspberryPI. Many people ran on many different variations (RaspberryPI, RockPI, BigTreeTech, PcDuino). When You install OS and any addictional packages You should use it same/similarly to on RaspberryPI. Try, try and try again and have fun testing it :D

btw2. A small request from me. This is not a repo for topics related to PI-Pwn, but for PPPwn-WRT. Please create an appropriate thread on the appropriate GitHub repo (https://github.com/stooged/PI-Pwn).