samtap / fang-hacks

Collection of modifications for the XiaoFang WiFi Camera
1.67k stars 340 forks source link

Not able to access ../status #306

Open PagesByZ opened 6 years ago

PagesByZ commented 6 years ago

I can go here: http://my-device-ip/cgi-bin/hello.cgi and I see this:

snx_autorun.sh bootstrap System Volume Information time_lapse record log_34CE00D317D6_s.txt

But when I go to http://my-device-ip/cgi-bin/status I see this:

404 Not Found The requested URL /cgi-bin/status was not found on this server.

Any idea how to fix it?

be3max commented 6 years ago

What is your`s xiaofang firmware version?

PagesByZ commented 6 years ago

It updated as soon as I tried to connect. 3.3.3.6.

PagesByZ commented 6 years ago

I am using Win32 Disk Imager to write to the SD card. I opened the Image file and tried to verify and i get a Verification failed at sector: 2048. So I am guessing the image wasn't properly written to the SD card?

I reformatted the SD card and I get an error at sector 0.

astraforce commented 6 years ago

It means you have the firmware 3.3.3.25 which is latest. The hack won't work on that. You have to downgrade the firmware to 3.0.3.56 through serial connection and after that apply the hack. The SD card may be good.

tomsteenbakkers commented 6 years ago

I tried to downgrade the camera using this guide. https://github.com/samtap/fang-hacks/wiki/HowTo:-Flash-original-Xiaomi-firmware-from-sdcard-(factory-reset)#via-sdcard

But, how do you execute the 0.elf file? I have a telnet connection to the camera, from where I copied the 0.elf to ./tmp, but how do I execute this executable?

samtap commented 6 years ago

cd /tmp chmod +x 0.elf ./0.elf

tomsteenbakkers commented 6 years ago

Thanks for the syntax. I can execute the 0.elf but it's still not working. Any ideas??

# ./0.elf
image table size:0x0000003c
index:0
reservations:0x12345678
offset:0x00005e84
size:0x00001000
flash start address:0x00001000
flash end address:0x00001fff

erase section (0x00001000, 0x00002000) don't align
fwupdate end!
#
Jesse75 commented 6 years ago

Sorry guys. I've been reading and reading and trying to figure this all out. I'm just confused. Does fanghack0.2.0 work on the US27 firmware 1.8.7.0D_201708091510? Trying to get RSTP server running.

I also have 2 Dome. 13US? Firmware 1.9.1.0H_201708091518.

What options do I have for either of these?