Giter VIP home page Giter VIP logo

xiaomi-mi-360-uart-shell's Introduction

Xiaomi Mi 360 UART shell

Python script to get a /bin/sh shell on Xiaomi Mi 360 Home Security Camera 2K via UART serial port. It has only be tested on model MJSXJ09CM.

It interrupts the U-Boot boot sequence to get an U-Boot shell and modify the bootargs to execute /bin/sh instead of linuxrc, which is the script that configures the camera. When the shell is ready, it executes linuxrc in the background so that the camera can be used as usual while the shell is still active.

Here is a photo of the UART port in the camera:

UART port in model MJSXJ09CM

xiaomi-mi-360-uart-shell's People

Contributors

hacefresko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

xiaomi-mi-360-uart-shell's Issues

frozen connection after shell

Hi,
I've adopted your script to MJSXJ02CM and after getting the shell, the connection always hangs.
When I run manually on the console and reaches the shell, I have a very-very short time to inject commands (right before ./linux &
) successfully to get them executed.

With the python script I only had blank screen.

Any ideas?
Thanks!

Serial 3v or 5v

You should probably remind that to people (serial 3.3 or 5 v).

I have not try yet, just got the cam from trash bin 'supposedly dead' and clearly not, the thing is now steady blue after orange.

how much time this process usually take?

I ran it and connected the camera. it printed

[+] Got U-Boot shell
[+] Getting /bin/sh shell...
[+] Got /bin/sh shell
[+] Setting up linux...

after that there came so many different texts, most of which was (No connection! Set fake rssi= -80!!!).
and it didn't print the ([+] Ready). should I wait much longer to see that msg?

what next? how can i use the camera as my webcam after that?
any help is really appreciated. it's been a long time I've been wanting to find a way to repurpose this camera..

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.