Page 1 of 1

Remote copy by Magic Router GET/PUT command instead of Samba

PostPosted: Mon Sep 05, 2011 8:32 am
by admin
1. Start listener on network A to connect to agent server.
2. Start forwarder on network B to connect to agent server.
3. Go to tools page, find Shell Cmd on Forwarder.
4. Type NET USE (if u not sure the drive is mapped on remote computer.)
5. Type NET USE X: /DELETE /Y (if u need to dismount the drive)
6. Type NET USE X: \\192.168.2.111\temp$ 12345abzx /USER:Administrator (map a drive to remote computer)
7. Type DIR X: (see what folder can be access)
8. Locate the folder or file, press Ctrl+C to copy the line in Magic Router display box, extract the file name for typing command.
9. Type GET x:\test.txt
10. test.txt will then download to root of Magic Router.

If you want to upload a file from admin pc to a pc inside forwarder network.
1. Type PUT c:\temp\config.txt (file is on admin side)
2. Type COPY config.txt x:\temp\config.txt (confiG.txt is uploaded on remote side)

Pay some attention:
If forwarder run under system service, NET USE to map drive is not workable. Since under system service, the session user is using SYSTEM. Most commands under system are not workable. Therefore we always start forwarder under normal user session.