Use this if you have the need to upload a file to RDP where perhaps copy/paste and local disks cannot be used.
Disclaimer: Only use this on services where you are legally allowed to do so. Doing otherwise risks your liberty.
For more information about this check out my blog on it:
https://cornerpirate.com/2017/11/14/uploading-files-to-rdp-when-that-is-restricted/
This works by:
- Creating a zip of the file you want to upload (may save some space for some files)
- Base64 encoding that file.
- Typing the Base64 string programatically.
While 3) is happening you cannot use your mouse or keyboard. The data rate is low so be careful and plan what you want to upload.
We need "pyautogui" which has an installation guide for various platforms here:
http://pyautogui.readthedocs.io/en/latest/install.html
For Kali Linux, the required commands were:
pip install python3-xlib
apt-get install scrot python3-dev
pip install pyautoguiAny problems installing pyautogui then refer to their documentation for your OS. My script is only tested on Kali Linux, your mileage and support will vary from there.
Additionally we need this for the progress bar:
pip install tqdmFinally, this for sound:
pip install playsoundPretty simple here clone the repo:
git clone https://github.com/SecarmaLabs/rdpupload/rdpupload.gitAs you already have the pre-requisites you are now all set to get this done.
