Giter VIP home page Giter VIP logo

mijia-720p-hack's Introduction

Mijia-720P-hack project

WARNING - DISCLAIMER

Many files on the Mijia 720P are writable. Be very careful when you modify files on it, you might brick it forever.

Purpose

This project is a collection of scripts and binaries file to hack your Xiaomi Mijia 720P camera.

Alt text

This camera has the default following features:

  • Wifi
  • Night vision
  • Motion detection: a video file is generated if a motion have been detected in the last 60 seconds.
  • Send video data over the network on Chinese servers in the cloud to allow people to view camera data from their smartphone wherever they are.
  • Setup thanks to a smartphone application.
  • Local video storage on a SD card
  • No RTSP server

This hack includes:

  • No more cloud feature (nothing goes out of your local network)
  • No more need to use a smartphone application
  • Telnet server - Enabled by default.
  • Web server with PHP support - Enabled by default.
  • RTSP server - Enabled by default.
  • SSH server - Disabled by default.
  • FTP server - Disabled by default.
  • Samba Server - Disabled by default.
  • Syslog to memory card - Disabled by default.
  • Configure Timezone and use ntpclient to set date and time over Internet

Planed futures:

  • Configuration over web server
  • Motor control
  • Replace Chinese voice files with English

Installation on the Mijia 720P camera

The memory card must stay in the camera ! If you remove it, the camera will start without using the hack.

Build the binaries

To build the binaries the GM8136 SDK toolchain must be installed in /usr/src/arm-linux-3.3/toolchain_gnueabi-4.4.0_ARMv5TE

Clone this repository on a computer:

git clone https://github.com/ghoost82/mijia-720p-hack.git

Then change into the cloned directory, build the binaries and install them to the sdcard base directory

cd mijia-720p-hack
make
make install

Prepare the memory card

You can use the self compiled image from the cloned repository or download a precompiled release.

Then, format a micro SD card in fat32 (vfat) format and copy the content of the mijia-720p-hack/sdcard/ folder at the root of your memory card.

The memory card will so contain:

  • ft: folder which contains the hack entry point
  • ft_config.ini and manufacture.bin: files needed to enable the hack
  • mijia-720p-hack: the folder which contains the hack scripts and binaries
  • mijia-720p-hack.cfg: configuration file to configure the hack
  • log: this folder will contains some log files from the hack and if enabled the system logs
  • MIJIA_RECORD_VIDEO: this folder will only be created when some video records will be added on the memory card by the camera

Configure the Mijia camera on the memory card

To configure the wifi network to use, edit the file mijia-720p-hack.cfg.

To configure the services which should run on the camera, open the file mijia-720p-hack.cfg and set the values.

Start the camera

  • If plugged, unplug the Mijia camera
  • Insert the memory card in the Mijia camera
  • Plug the Mijia camera

The camera will start. The led will indicate the current status:

  • yellow: camera startup
  • blue blinking: network configuration in progress (connec to wifi, set up the IP address)
  • blue: network configuration is OK. Camera is ready to use.

You can test is your camera is up and running this hack with your browser on url http://your-camera-ip/.

Use the camera

Telnet server

If enabled the telnet server is on port 23.

Default login/password:

  • login = root
  • password = 1234qwer (unless you specified another password in mijia-720p-hack.cfg.cfg file)

SSH server

If enabled the SSH server is on port 22.

Default login/password:

  • login = root
  • password = 1234qwer (unless you specified another password in mijia-720p-hack.cfg.cfg file)

RTSP Server

f enabled the RTSP server is on port 554.

You can connect to live video stream (currently only supports 720p) on:

rtsp://your-camera-ip/live/ch00_0

FTP server

If enabled the FTP server is on port 21.

There is no login/password required.

Samba

If enabled the MIJIA_RECORD_VIDEO directory can be accessed via CIFS. The share is readable by everyone.

Default login/password for read/write access:

  • login = root
  • password = 1234qwer (unless you specified another password in mijia-720p-hack.cfg.cfg file)

I want more !

Some scripts are provided in the sd/mijia-720p-hack/scripts folder. Please read the README.md file in this folder for more informations.

Uninstall the hack

There are no files altered on the camera so simply remove the SD card to uninstall the hack.

How it works ?

Hack content

ft/                            Folder that contains the start script for the hack
ft_config.ini                  Neccessary configuration file for the hack boot
manufacture.bin                Archive that contains the script test_drv that will enable the hack
mijia-720p-hack/               Mijia 720O hack folder
 bin/                          Contains server and system binaries for the hack
 etc/                          Configuration files for the services provided by the hack
 scripts/                      Some scripts
 www/                          root of the erb server
mijia-720p-hack.cfg            Mijia 720O hack configuration file

mijia-720p-hack's People

Contributors

ghoost82 avatar

Watchers

DORO avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.