As you can see the phone (surveillance camera) is placed strategically behind the front door of my house and it's connected to my home network (wifi), whereas my laptop is also connected to the same network.

The Working-> As soon as I run the Start.py script on the laptop this script initiates the process and runs two more scripts parralelly [exploit.sh & Main.py]. then the laptop attempts to gain the Reverse TCP shell access of that phone using metasploit and once that is done the system informs the user to send the START command to begin the 2nd phase of automation. Once the system is ready to send images of the live feed it prompts the user to send SHOW | CONT | SHUTDOWN commands. The Exploit.sh is a bash script which automates some metasploit commands and the Main.py is a script which interactes with the user by sending system messages related to the system and recieving commands given by the user(s) through the discord server.

How I use this? -> Whenever I have to go out, I just place my spare android phone behind the front door, then I make sure that this phone & my laptop are connected to the same network(home wifi).Then I just start the {Start.py} script on the laptop and then I can go out and control this system on the go through discord app on my mobile.

The Udemy Course

I have also made a Video course which is uploaded on udemy, where I've covered all the prerequisites you need to learn to build this project from scratch. You can preview my course Here