Showing posts with label hack. Show all posts
Showing posts with label hack. Show all posts

Hacking the Dericam H502W

Hacking the Dericam H502W
The Maygion H264 IP Camera is a very open device with great customization potential.
This article contains some examples of hacks that enable telnet, load an alternate ftp daemon, extract
information, etc...
If keeping the camera under guarantee is no longer a concern for you, please read on... (-:





Important Notice: 
Before performing any firmware change, make a backup of firmware files, including the board.dat file, 
and make yourself familiar with recovery options. Proceed at your own risks, or don't...


This post is based on the information found in macmpi's post on forum.hardware.fr

Basics:
The /app folder contains typically 3 files loaded when the camera is powered on:
cs -> the main firmware application file
cs.def.ini -> the default config file
cs.ini -> the current config file loaded by cs

A universal way to talk to the camera is to replace its cs file with another one containing a valid script, such as the following that loads the telnetd daemon:

#!/bin/sh
cp /etc_ro/rcS /tmp/eye/app/.cd /bintelnetd& 
Once a terminal access is possible via telnet, the possibilities are endless: change the services loading at startup (including telnetd itself) via the file /etc_ro/rcS, use a different ftp deamon (MayGion unlimited fd, or restricted ftpd)


Hackmaster...

The hacks below are an extension of this simple idea.

The files must be first renamed as app.bin to be installed like normal application updates from the IP Camera interface. Each file has a specific purpose and the System Information panel will show which ones are active. 
http://goo.gl/9K1ge 

inject.bin: This is the "Hackmaster" module, which opens the camera to further hacking via the other files below. It is based on fw v.5.60 but will remain active after a traditional firmware update. It is reversible thanks to a clean-up file also provided.  

tnt.bin: This enable the telnet daemon. 

bbx.bin: Installs the latest full Busybox which provides a more completes set of linux commands. It requires an Internet access to work. Check the log under /tmp to verify if the installation was successful.

ocx.bin: Removes the ocx2.exe file from /www (saving 600KB of space), and provides an Internet access to this file instead. 

mSD.bin: Mounts the SD Card for access via FTP (e.g. ftp://user:pass@IP/app/SD). The status of the SD mount is logged under /tmp. 

ftM.bin: Enables the unrestricted MayGion FTP daemon (login: MayGion, password: maygion.com). 

ftB.bin: Enables the basic FTP daemon which uses the admin login

log.bin: Generates a log file in /app. Can be helpful for troubleshooting. Since it's only occasionaly needed, it will self-destruct on restart. 

no_hack.bin: Removes all the hacks but leave the enabler intact (i.e. Hackmaster). 

clean-up.bin: Cleans up all traces of hacks (including the Hackmaster), and restores the camera in its normal state. 

The HackMaster files can also be obtained from the original article: Forum.hardware.fr



Read More

Installing Recovery on Onda Vi40 Elite

Installing Recovery on Onda Vi40 Elite
It's now an old habit, I only start to feel safe with any Android device once I managed to install a Recovery partition such as ClockWorkMod.  This is how to do it on the Onda tablet Vi40 Elite...
There are several ways to install the CWM recovery on your device.

Option 1
An easy way, documented on tabletrepublic.com is using a set of batch files. This method for Elf Novo7 works perfectly for Vi40 too:

- Make sure the ADB drivers are properly installed on your PC (They come with the LiveSuitPack utility).
- Plug the tablet -with Debugging enabled- to your PC
- Unzip the file and execute install_recovery_for_ICS.bat

Option 2
Get the  recovery program and scripts from androtab.info/cyanogenmod/allwinner
Look for the "Latest Files" section, and download the A10_Recovery.zip file from the link ClockworkMod Recovery 5 for Novo 7 Advanced.
Install a terminal to execute the script, Android Terminal Emulator from the Play Store is just fine for this.

- unzip the A10_Recovery.zip file on the root of your tablet's sdcard
- launch the terminal and go to your sdcard root, then type
- su <enter>
- sh install-recovery.sh <enter>

Usage:
Since the VI40 Elite does not have volume buttons that are part of  the standard keys combination to power on your device in recovery mode, you'll need to use a script (sh reboot-recovery.sh provided above)
or any tool on the market such as Quick Boot to do so.

How to navigate:
Your display will be in landscape position, with the 3 hardware buttons on your right.
To navigate UP, use the Home button (the one at the bottom)
To navigate DOWN, use the Menu button (the one in the middle)
To go back...use the back button (the one at the top)
To validate a choice, press the power button briefly
Read More

LG BD390 Blu-Ray player with Wi-Fi

LG BD390 Blu-Ray player with Wi-Fi
I was watching this Blu-Ray player for a few months and after having compared the features and prices with other Samsung and Sony players, it ended up as the logical choice. It took less thant a week to arrive from a German eBay shop that beats my usual providers (Amazon, Komplett, Pixmania) in terms of price and stock availability.

The installation was surprisingly easy and quick: after about 15 minutes, the unit was Network-connected, Region-hacked, and Firmware-updated ! Never mind the user manual was only in German (I downloaded the EN version from lge.com), it was really not necessary!


Network connection: My wireless router Billion Bipack 7402GXL was detected and I could even use its WPS (Wi-Fi protected Setup) function for the first time. In the Wireless setup, the LG BD390 offers a "Push Button" option, which starts a timer of 120 seconds during which I just need to press the WPS button on my router to have all the network information exchanged, saving me from entering manually the encryption type and key. That's all I needed to have the unit connected to the Internet. Repeating the operation later, I've found that it sometimes needs up to 3 retries to have the "Wireless Dynamic IP" setup successfully. Maybe a wireless range issue?

Region Hack: I downloaded the necessary file from multi-region.net and burned the RMTM0000 folder contained in the 6000.iso file.
Two things to consider regarding this hack:
- it is reported to work only on European models for some reason (to verify).
- it may not run if you already updated your firmware to the latest version.  LG Support Web Site keep a few versions back if needed.

The good thing is that the change is persistent, so upgrading the fw afterwards will not affect the hack.

Upon loading the CD containing the hack, a region selection appears where you just need to select the region you want with the up and down keys on the remote (0 for Region Free).

Firmware Update: the BD390 came with a the firmware version 8.08.360.B. I took the time before updating to look around the functions and browsing through the menu. I noticed it was sometimes sluggish, and occasionally even froze (trying to access a .TS file from the local network). If there was a Java console, I bet it would show an endless list of UnhandledExceptions scrolling. A 5 second push on the power button (like on most PC's) was necessary to force the unit to power off.
I had the firmware 8.08.529.B ready on a USB drive, but despite that, the player detected the update on the Internet and offered only this way to update. I found out after that, because I plugged in the USB drive before powering on, the DB390 didn't detect it at boot time. Un-plugging and re-plugging solved the problem.
The update operation took about 5 minutes and ended with the player powering off (not restarting). Upon powering it on again, I verified that the upgrade was in place and noticed that the operations were a bit smoother in general, and the unit generally more stable, even though some glitches are still present.

That's it, the player was set up, with a short review to adapt the display settings so it would work well with my almost-HD television (HD-Ready Samsung LE32R51B)



First use:

I won't give a full technical review, there are many good ones available already, but just my impressions during the first hour of use.

The HOME menu is called by pressing the Home button on the remote and offers 6 different sections:

Movie: that's were the local medias can be played: Movie/Audio disc or USB drive
I played a Divx movie from the USB drive and it loaded instantly, which differs greatly from the almost 2 minutes load time that my SilverCrest DVD reader from Lidl always needed, obviously to fill its buffer. Does it mean that the LG uses faster memory or... doesn't bufferize anything ?
Loading the Blu-Ray version of Ice Age 3 took between 20 seconds to 1 minutes depending...I don't know what! Loading DVD was always faster. I found the unit very silent, particularly after having recently seen a Samsung player in action.
 
Photo: will scan local medias for pictures

Music: will scan local medias for playable music.

My Media: That's the place I was looking forward to play with. All the uPNP/DLNA hosts show up here: it found my mobile phone Sony Ericsson G705,  Synology DS109 and computers (XP SP3 and Seven).
Re-scanning the network will never give twice the same result, so several attempts may be needed to get the full list.

Listing the media content can be randomly fast or sluggish even with the latest firmware.

The sluggishness of the unit is partially due to the remote and using a Logitech Harmony instead gives a much better response, but in addition, the system also sometimes stops responding for several seconds for no apparent reason.

The default view is not the best and pressing the Display button on the remote brings a more convenient "zoomed-out" view of the files list.
Inside My Media section, the content is again separated into three distinct kind of content: Movie, Photo and Music.

My Media > Movie: Wi-Fi 802.11n is especially welcome for playing video content, however my wireless router is still 802.11g.
This, combined to the occasional traffic from the Wii, the IP Cameras, and the weak signal caused by the distance from the router, resulted in occasional choppy Divx playback from my Synology NAS. This could be improved  by a proper buffering, but the LG BD390 doesn't seem to do any.

My Media > Photos: I found a bug in this part: the rendering of pictures from my NAS was awfull, as if a mosaic effect had been applied to them. Same from my phone. The same pictures read from a USB drive would show fine. (update: this turned out to be a Synology bug resolved from DSM 2.3-1143)


My Media > Music: the mp3's were played smoothly with no surprise. I just regret that it is such a basic music player, a shuffle function would have been nice.



YouTube: The YouTube browser.
Well, yes it plays videos from YouTube all right. I just don't see myself  spending evenings browsing YouTube videos on the telly, so I won't go there very often.


Setup: also speaks for itself.

In conclusion, some polishing is still needed to make this unit a fully satisfying player, but the potential is really there. Let's see if LG can make some difference here...


Pros:
- very simple to setup
- great set of features
- support many formats
- silent BD/DVD playback

Cons: (with fw 8.08.529.B)
- the player is randomly sluggish
- occasional crashes (not too often)

Cheapest (€223.-) found on eBay by  ITSS-DAMM.

Region hack: multi-region.net

Complete review: see audioholics.com

Support Web Site: www.lge.com
Read More

Bring your FI8908W paperweight back to life

Bring your FI8908W paperweight back to life
If you're part of the numerous people who bricked their ip camera at any stage, maybe you kept it (as a door stopper, a paperweight or a dummy camera). In that case, there is one last thing you can try to make your camera functional again. It requires a small investment of less than €15 so I think it's really worth trying.

I obtained some information recently, thanks to Foscam tech support for most part, on a serial upgrade method that would fix cameras for which the firmware upgrade went bad.


A word of caution first: 
- I've only tested this method with the oldest FI8908W, not the Foscam "Logo" FI8908W  (fw v.11.14.2.26 and up).
- this should be experimented only if you exhausted your other options, like claiming a replacement under the warranty.
- this is also not guaranteed to work for all. It suppose that the boot loader in the camera is still intact.
- the recovery files are not normal firmware upgrade files and cannot be uploaded to the camera using the normal firmware upgrade procedure.



What you need:

- a USB to serial UART interface that does 3.3v logic (see photos). If dual 3.3v/5v is not specified, assume it does 5v only and don't buy. This should not cost you more than €15.

- some wires and female crimp pins to make the connections easier. I reused those from an audio cable for CD-ROM.

- the Foscam  FI8908W Recovery files (+ mirror) - They contain instructions and binaries to upload.
2011 Update: I've received these other recovery files (+ mirror) from Foscam and should work with newer FI8908W AND FI8918W

- a terminal software if you don't have HyperTerminal on your version of Windows. I suggest RealTerm.
- I also used some adhesive putty to help keeping the wires in place and isolate the wires from each other.


You have to unscrew the bottom cover of the camera to access the JTAG connector (marked J2). On some cameras the connector is there but without the pins; In this case, add a solder iron to the "What you need" list. The only challenging task will be to achieve a stable connection to it for the length of the operation.





In the documentation, the file IPCAM_PCB_Connection.xls shows where to connect the wires. The 4 pins, from right to left are used as follow:
Pin #1 - INPUT
Pin #2 - OUTPUT
Pin #3 - GROUND
Pin #4 - POWER (not needed)

The serial interface you buy may have more than 4 pins but the corresponding ones will usually be labeled as TXD, RXD, GRD and VCC. One important point is that you need to cross INPUT with TXD, and OUTPUT with RXD.

The file IpCam serial upgrade.pdf will tell you how to initiate the connection with the boot loader of the camera and what commands to issue in order to upload the recovery files, linux_4Mx16Bit_new.zip and romfs_cmos_11_14_2_17.img (for FI8908W and FI8904W)  into the camera. (included W90N745 uClinux BSP User Manual.pdf documents the uClinux commands).

Once your wires are connected, power on the camera, and if you see a screen like the one below, the rest should be straightforward.

Below is the documented procedure as it worked for me. In bold is what you type and in italic what is returned (don't forget to press ESC to enter debug mode as told on screen).


bootloader > del 6
ERROR: Image 6 is not existed   (there was obviously nothing to delete in my case)

bootloader > del 7
ERROR: Image 7 is not existed
with the new recovery files the address to use below has changed
bootloader > fx 6 romfs_cmos_11_14_2_17.img 0x7f0e0000 0x7f0e0000 -a
Waiting for download
Press Ctrl-x to cancel ...  (while it waits, you have to select Transfer > Send File in Hyperterminal menu, choose the Xmodem protocol and select the file romfs_cmos_11_14_1_37.img)
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
Flash programming ...
.........
bootloader > fx 7 linux_4Mx16Bit_new.zip 0x7f020000 0x8000 -acxz
Waiting for download
Press Ctrl-x to cancel ...  (while it waits, you have to select Transfer > Send File in Hyperterminal menu, choose the Xmodem protocol and select the file linux.zip)
CCCC
Flash programming ...
..........
bootloader > del b31 (Clears the flash parameters)

bootloader > boot

Rebooting the system ...


The camera will boot and probably start moving during the initial check up phase, it's back !


The camera may report that no Web-UI is present. In that case, use the IP Camera Tool to flash a normal WebUI file the traditional way (don't use the recovery file for this).

Something for non-Foscam devices:
I don't want to be Foscam-centric, it's just that I only have Foscam devices at the moment, so I'll put here similar recovery packages for non-Foscam cameras when available and to the limit of my free storage (mainly FileFactory & Google Docs). They're provided as is and I have no way to test them.

IP607 (EyeSight) found @ Chinavasion: This recovery package is the result of concerted efforts of the ip cam hackers
commenting below this post. It's been  made available by Admin  (mirror) and contains the adjustments to the fx 6... line. Please follow the instructions in the help.txt.

EasyNP FS 613A M136: Check this very detailed recovery guide from Oskys!

Changing the MAC address
Some clones, mostly from DealExtreme.com apparently came with the same MAC address, making it impossible to use them together in the same network. An easy way is documented here (mirror). I didn't test it, but according to the feedbacks on Ted's blog, it seems to work great.
Read More