Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I have problem with accessing /proc/cmdline #92

Open
guino opened this issue Dec 1, 2022 · 1 comment
Open

I have problem with accessing /proc/cmdline #92

guino opened this issue Dec 1, 2022 · 1 comment

Comments

@guino
Copy link
Owner

guino commented Dec 1, 2022

From @samezrp

I have problem with accessing:

/proc/cmdline

after boot with initrun.sh.
Normally it runs on port 80 (strange as according to your description it should be 8090 and 80 is supposed to be closed). Anyway I have all data available. After running it with env and initrun.sh there is no answer on 80 nor 8090 port.

My camera details:

devname "Smart Home Camera" model "Bell 8S" softwareversion "2.10.5" hardwareversion "BE8S_H1_V10_433" firmwareversion "ppstrong-c51-tuya2_lcs-2.10.5.20210806"
Funniest thing is that mjpeg, snap are working, I have access via 8080, telnet is ok but when I try to run any command it reroutes me to https and no result.
I can run VLC and rtsp, but on shinobi there is no access.

[edit]
I have found solution for below question on another topics, so I'm currently reading them.
"Another question is how to run mqtt? On mmc I can see shortcut similar to busybox, but I cannot find any mqtt_pub executable to download."

Originally posted by @samezrp in #2 (comment)

@guino
Copy link
Owner Author

guino commented Dec 1, 2022

@samezrp A lot of the times it is the web browser being used that switches from http to https (usually when there's no response from http). You could try something like curl (you may need to download it in windows) to see if you get any results, here's an example on my device:

$ curl "http://admin:[email protected]:80/proc/cmdline"
mem=64M console=ttySAK0,115200n8 mtdparts=spi0.0:256k(bld)ro,64k(env)ro,64k(enc)ro,64k(sysflg)ro,2496k(sys),4608k(app),640k(cfg) ppsAppParts=5 ip=0 - ip=30;/mnt/mmc01/initrun.sh)&:::::;date>/tmp/hack;(sleep

Using curl will avoid issues with the browser re-using cached information and/or trying to switch to httpS automatically.
You should be using the hack from #13 -- the one from #2 is obsolete, but if it is working then there's no reason to switch.

NOTE: It has been reported that some newer devices behave differently when the ppsFactoryTool.txt file is left on the SD card, so you should try with and without it to be sure -- I have even heard of it preventing the phone app from working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant