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

IPCAM FI02 Chacon #16

Open
solutives opened this issue Oct 31, 2021 · 12 comments
Open

IPCAM FI02 Chacon #16

solutives opened this issue Oct 31, 2021 · 12 comments

Comments

@solutives
Copy link

solutives commented Oct 31, 2021

Hi,
Here are the files of my IPCAM it's a Mini 8S, I follow the steps to have onvif (port 8000) or rstp (port 8554) working including ghidra but ppsapp file is different and I can't get neither one nor other working.
You'll find the asked files as an attachment, if it could be possible I would like to have the ppsapp patched for my camera.
Many thanks.

IPCAM_FI02_Chacon.txt
--deleted--

@guino
Copy link
Owner

guino commented Nov 1, 2021

@solutives It looks like your ppsapp is incomplete as it is only 1.1Mb in size. The other 4.0.6 ppsapp files are about 2.7Mb -- I was unable to open the file in ghidra as the file was incomplete.

I would suggest you do this:
1-delete the "home" directory of the SD card
2-Power up the device with the SD card in it (normally) and it should recreate the home directory
3-Wait at least 5 minutes after power up before removing the SD card to make sure it doesn't leave anything incomplete

post the ppsapp file (hopefully with the full size).

@solutives
Copy link
Author

solutives commented Nov 2, 2021 via email

@guino
Copy link
Owner

guino commented Nov 2, 2021

@solutives Seems like you replied to github's email (which goes to github and not me) -- you need to post the zip on the issue in github so I can get the file -- or you can email me directly (my email is on my github profile).

@guino
Copy link
Owner

guino commented Nov 3, 2021

@solutives Please try this patch for ppsapp with md5 5b3c755a6628d4821da2591fa2b432f4:
ppsapp-onvif.zip

snap/mjpeg.cgi address: 0x027f1ec
play.cgi address: 0x027f9f8

I would appreciate it if you let me know the results -- this code is slightly different than the existing 4.0.6 patches so I had to get creative.

@solutives
Copy link
Author

solutives commented Nov 3, 2021 via email

@guino
Copy link
Owner

guino commented Nov 4, 2021

Sorry, forgot to mention:

After patching RTSP should be available at rtsp://IP:8554/Streaming/Channels/101 and rtsp://IP:8554/Streaming/Channels/102 user admin and password admin. Onvif should be available on port 8000 with same user/password.

The address I gave you for snap/mjpeg needs to be set in the snap.cgi and mjpeg.cgi files in the cgi-bin directory if you want to use that feature (you should have these files in the SD card if you followed all steps). The username and password for the cgi files will be whatever you set in httpd.conf - you can just open a browser and do: http://user:password@IP:8080/cgi-bin/snap.cgi or http://user:password@ip:8080/cgi-bin/mjpeg.cgi

The address for play.cgi can also be set in the play.cgi file if you want to use that feature: wiki

@solutives
Copy link
Author

solutives commented Nov 4, 2021 via email

@guino
Copy link
Owner

guino commented Nov 4, 2021

@solutives can you verify the video still works using the phone app after it didn't work on the rtsp links ? Can you also try mjpeg.cgi to see if it works ? I just need to know if the problem is the patch or something else.

@solutives
Copy link
Author

solutives commented Nov 4, 2021 via email

@guino
Copy link
Owner

guino commented Nov 6, 2021

@solutives I will need you to create some log files for me to review.

To create a log file just edit custom.sh so that the line /mnt/mmc01/ppsapp & so it ooks like this: /mnt/mmc01/ppsapp 2>&1 > /mnt/mmc01/ppsapp.log & then a few minutes after booting the file ppsapp.log should be in the SD card (and you can download it with http://user:password@IP:8080/ppsapp.log (user:password from httpd.conf) or just copy it from the SD card).

I need you to make 2 log files:
1-with the patched ppsapp on the root of the SD card -- and try to access the RTSP feed like you did before
and
2-with the oritinal ppsapp (copy from home/app) on the root of the SD card (RTSP will be unavailable so nothing to try)

The logs will allow me to compare what is or isn't running with my changes -- I obviously got something to start with the changes (since you said port 8000 is open) but I may need to enable something else and the logs would be very useful to determine that.

@solutives
Copy link
Author

solutives commented Nov 6, 2021 via email

@guino
Copy link
Owner

guino commented Nov 6, 2021

@solutives that is awesome, so there’s no need for logs.

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