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

mjpeg and snap not working #10

Closed
williamkennyAK opened this issue Sep 24, 2021 · 4 comments
Closed

mjpeg and snap not working #10

williamkennyAK opened this issue Sep 24, 2021 · 4 comments

Comments

@williamkennyAK
Copy link

I tried the instructions to find pps_media_md_get_pic in the ppsapp, however, there IS NO REFERENCE.

the closest I can find is this:
000ff918 00 70 8d e5 str r7=>s_httpc_get_pic_00275b00,[sp,#0x0]=>local_40 = "httpc_get_pic"

The funtion associated with it is as follows:

int FUN_000ff858(int param_1,undefined4 param_2)

{
int iVar1;
int iVar2;
int iVar3;
undefined4 local_2c [2];

local_2c[0] = param_2;
if (param_1 == 0) {
FUN_000d42a8(0,0,
"/var/lib/jenkins/workspace/Release_IPC_SDK/src/tuya_iot_sdk/tuya_cloud/iot_httpc.c"
,0x64d,"httpc_get_pic","invalid param");
iVar1 = -2;
}
else {
FUN_000d42a8(0,4,
"/var/lib/jenkins/workspace/Release_IPC_SDK/src/tuya_iot_sdk/tuya_cloud/iot_httpc.c"
,0x651,"httpc_get_pic","begin to download file. url:%s",param_1);
iVar2 = 0;
do {
iVar3 = iVar2;
FUN_000d42a8(0,4,
"/var/lib/jenkins/workspace/Release_IPC_SDK/src/tuya_iot_sdk/tuya_cloud/iot_httpc.c"
,0x659,"httpc_get_pic","try:%d",iVar2);
iVar1 = FUN_000f82e0(param_1,&LAB_000fbc50,local_2c);
iVar2 = iVar2 + 1;
if (iVar1 == 0) {
FUN_000d42a8(0,4,
"/var/lib/jenkins/workspace/Release_IPC_SDK/src/tuya_iot_sdk/tuya_cloud/iot_httpc.c"
,0x65e,"httpc_get_pic","download file finish",iVar3);
return 0;
}
FUN_000d62b4(5000);
} while (iVar2 != 2);
}
return iVar1;
}

Is this a new firmware?

As stated in issue #9, all I had to do was enable onvif in the tuya_config.json and it seemed to just work.

@guino
Copy link
Owner

guino commented Sep 24, 2021

@williamkennyAK here are the addresses for the ppsapp you posted in #9:
snap/jpeg.cgi: jpeg 0x4802b0
play.cgi 0x483b94

@williamkennyAK
Copy link
Author

Thank you @guino!

@williamkennyAK
Copy link
Author

williamkennyAK commented Oct 17, 2021

I still have not gotten snap.cgi, mjpeg.cgi, and play.cgi working.
I fear I may have uploaded the wrong ppsapp. Can you take a look again for me?
I only get a white block when I use the addresses you sent me and when I open it up in ghidra, I can't find that address anywhere.

Ghidra still confuses the crap outta me...

Thanks!
--deleted--

@williamkennyAK
Copy link
Author

Okie dokie dopey do. I'm an idiot.

I got it working just didn't pay close enough attention to detail...

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

2 participants