Wednesday, July 17, 2013

REMOTE ACCESS TO PC THROUGH DROPBOX ACCOUNT

REMOTE ACCESS TO PC THROUGH DROPBOX ACCOUNT


Dropbox is a file hosting service that offers cloud storage, file synchronization, and client software. Dropbox allows users to create a special folder on each of their computers, which Dropbox then synchronises so that it appears to be the same folder (with the same contents) regardless of which computer is used to view it. Files placed in this folder also are accessible through a website and mobile phone applications.
Apart from just sharing your files it can be used for many other exciting purposes too.for example hosting your websites . Yeah.. you will never have to pay for your hosting needs if you know to tweak Dropbox for your hosting space, and second is what I am going to tell you in this article its about accessing your PC/laptop remotely without even having the knowing those SSH and DynDNS to track your dynamic IP, its simple, clean and powerful.
Objective :
To access all your files ( even those which are not in your Dropbox folder).
To Execute a Terminal Command (Remotely.. best for shutting Down the PC when you away.)
And many more…
Requirement :
Standalone Drop box Desktop App
(Download Dropbox desktop App from their official web site.)
Any mobile App which can connect you to your Dropbox Account . and has a decent text Editor.
Get which i (for my Android) used X-plore .
Python should be installed. This could be done with ‘C’ , Java whatever… , but I am too lazy to code in those language after working on Python.
The executable files which can be placed in Dropbox folder for the magic to happen (of course you can write better than me, but still i am sharing mine).
Windows UsersDownload (Dropbox_magic_win.zip)
Rest is same :) , But the command you need to run on the terminal will be of windows , like dir…etc..
Steps:
1. Install all the above mentions.(Create a Dropbox account which is obvious)
2. download the Dropbox_magic.zip, extract it (into your desktop’s Dropbox folder) you will get three files:
1. startup
2. magic.py
3. cmd.txt
startup: Place this file as startup application i.e. make it run every time your system boots.
(or run it and leave when you are going away)
magic.py: This files reads cmd.txt and execute the text.
( from moving non-Dropbox files .. like mv Desktop/ratan.zip Dropbox/,
to shutting Down the PC with command shutdown 0)
cmd.txt : File containing the commands to be executed.
That’s it you are done.!!
Now , open you phone application . connect it to your Dropbox account .change the content of the file (cmd.txt) to remotely access your computer ..
some of the code i tried are :
ls-all > subtext ( this command wrote the result of ls -all in a file ls.txt so that i can see remotely all the present files and directory on my PC )
shutdown 0 ( to shutdown my PC remotely )
And so many …
source code..
magic.py
import subprocess
import sys
import os
import time
while 1 :
time.sleep(5)
f = open(‘cmd.txt’)
lines = f.readline()
if cmp(“1″,lines) :
os.system(lines)
f.close()
startup -for Unix System
statup.bat -for windows
python magic.py
END
Keep Sharing Enjoy Learning

Share This!


2 comments:

  1. Replies

    1. win 7 product key , free upgrade key for windows 7 home premium to windows 7 ultimate , windows 7 home product key generator , windows 10 product key , microsoft office visio professional 2007 activation code , mcafee key code , windows 8.1 professional key , buy genuine windows 7 key , l4pWgb

      Delete