OSCP/도구 개념 정리

Kali to Windows, rdesktop 파일 복사

우와해커 2020. 6. 14. 13:31

I use ubuntu and need to use a test server which runs windows 2003 (not by choice).
Now I want to setup my development environment which means python, django, virtualenv and perhaps mysql.
I have some of the setup files on my linux machine and wanted to just copy them over to the test server.
Luckily I found this is not difficult to do using rdesktop:

  1. create a directory on your linux box (let's say "/home/bayo/store")
  2. let us assume the directory you want to access your files from on the windows box is called "share"
  3. connect to the server via rdesktop using the -r disk flag [rdesktop (ip) -r disk:share=/home/bayo/store]
  4. when you login to the windows box and check your network places/entire network/microsoft terminal services/tsclient, true enough you find a folder called "share" (or whatever you named it in step 3) and this folder maps directly to the "/home/bayo/store/" directory on your linux box.
  5. that's all!

https://bayo.opadeyi.net/2011/06/copy-files-between-linux-and-windows.html