niclet / xiaomi_hack

Xiaomi common hack for cameras (Mijia 360)
138 stars 35 forks source link

THIS PROJECT IS OUTDATED AND NOT MAINTAINED ANYMORE


===


xiaomi_hack project

Special thanks go to fritz-smh : https://github.com/fritz-smh/yi-hack

This xiaomi_hack project has been totally inspired from its own project.

Purpose

This project is a collection of scripts and binary files to hack various Xiaomi cameras :

Xiaomi Mijia 360

These cameras have the following default features :

This hack intends to provide following features :

Installation on the camera

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

Prepare the memory card

Clone this repository on a computer :

git clone http://github.com/niclet/xiaomi_hack.git

Then, format a micro SD card in fat32 (vfat) format and copy the content of the xiaomi_hack/sd/ folder at the root of your memory card.

Start the camera

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

Use the camera

Telnet server

The telnet server runs on port 23.

Default password for root user is imi_ipc

FTP server

The FTP server runs on port 21.

No authentication is needed, you can use anonymous user.

RTSP server

The RTSP server is not yet available.

Custom timezone

You can customize timezone in the config.cfg file with the XIAOMI_HACK_TIMEZONE variable.

Custom voices

Following voices are available:

BETA !

For now, it is just a proof of concept. Many work has still to be done.

How it works ?

Hack content

ext-pro.sh                     Mijia 360 camera backdoor
xiaomi_hack/                   Hacks folder
  config.cfg                   Configuration file
  logs/                        Logs folder, you'll find various logs there
  mijia360/                    Mijia 360 hack
    audio/
      common/                  This folder contains sounds files which doesn't require any translation
      en/                      This folder contains English voices
      fr/                      This folder contains French voices
    bin/
      tcpsvd                   TCP Service Daemon (http://smarden.org/ipsvd/index.html) to launch FTP Server Daemon (ftpd)
    sh/
      miio_post.sh             This script is run after official miio.sh
      miio_pre.sh              This script is run before official miio.sh
    shadow.backup              Backup of original /etc/shadow, don't modify it in anyway !

Hack customization

Each camera hack can be customized from its config.cfg file.

Custom voices are still in beta stage, you may still hear Chinese voices. That's why audio logs are activated through XIAOMI_HACK_LANGUAGE_TRACES=YES

In this case, a log file called mijia360_audio.log will appear in xiaomi_hack/logs folder. If you hear Chinese voice, please open a bug report and provide this log file.