PongoOS icon indicating copy to clipboard operation
PongoOS copied to clipboard

how can I type in the pongoOS shell?

Open cuj opened this issue 4 years ago • 10 comments

Hi, I would like to type commands in the pongoOS shell, can you please tell me any method at all to type in the pongoOS shell? thanks.

cuj avatar Oct 28 '20 11:10 cuj

If you're on macOS:

cd scripts
make
./pongoterm

Otherwise there's issue_cmd.py and fetch_stdout.py.

Siguza avatar Oct 28 '20 12:10 Siguza

so is it like this: ./pongoterm [command] ?

cuj avatar Oct 28 '20 13:10 cuj

No, you run ./pongoterm and you get an interactive shell.
Alternatively you can do ./pongoterm <<<'command' and it will run that once it finds a device, then exit.

Siguza avatar Oct 28 '20 14:10 Siguza

@Siguza thanks for helping me, but there is a problem, in mac os when I run ./pomgoterm it says this: USBControlTransfer: (iokit/usb) pipe has stalled, error needs to be cleared Do you have any solutions for me to fix the problem? thanks, and sorry for many questions.

cuj avatar Oct 31 '20 15:10 cuj

Hello,

Which SoC does your phone use? Did you also try the newest version as of today?

woachk avatar Oct 31 '20 15:10 woachk

@woachk My phone has A10, yes I tried the newest version as of 31/10/2020.

cuj avatar Oct 31 '20 15:10 cuj

on Ubuntu, i can't seem to get any access to the pongo shell.

pongoterm is hopeless on linux, and attempting to use the script issue_cmd.py doesn't work, it vomits on me with this when i attempt to run it:

daniel@DansPPC2011:~/Desktop/pongoOS/scripts$ ./issue_cmd.py
./issue_cmd.py: line 23: import: command not found
./issue_cmd.py: line 24: import: command not found
./issue_cmd.py: line 25: syntax error near unexpected token `('
./issue_cmd.py: line 25: `dev = usb.core.find(idVendor=0x05ac, idProduct=0x4141)'

i want to get SEP keys for the wiki, but until i figure this out i can't do it.

i have access to s8000, s8003, and t8010

DanTheMann15 avatar Nov 11 '20 07:11 DanTheMann15

@DanTheMann15 it's a python script with no shebang, so you have to run with python like this : python3 ./issue_cmd.py

matteyeux avatar Nov 11 '20 18:11 matteyeux

@DanTheMann15 it's a python script with no shebang, so you have to run with python like this : python3 ./issue_cmd.py

thanks for the response, i added the python3 before the command and also needed to get pyusb's usb module as well and it worked.

but i can't yet pwn sep on s8000/s8003, but at least i can do t8010.

keys coming soon once i get it working right, thanks!

DanTheMann15 avatar Nov 11 '20 20:11 DanTheMann15

I'm tried fetch_stdout.py on some arch linux. Well you may run: sudo pip install pyusb libusb to get the necessary dependencies installed.

However even then I encountered that nasty usb.core.USBError: [Errno 5] Input/Output Error what is in real some permissions problem. Here is how to solve it: https://stackoverflow.com/a/66694064/3135511

cw2k avatar Mar 18 '21 17:03 cw2k