DISCLAIMER: I do not discern using this tool or any others for malicious reasons. Always have the targets permission before using this script on a target machine. So, I thought it prudent to share a little bit of magic that I just came across. Whilst working on an automatic file copier (which I'll post when I'm finished with it), I had to do some drive detection so that I could change the source destination's drive letter (because not every machine has the same amount of removable drives on it...). After some funky playing around with long if statements and whatnot, I came up with this: Now, as long as you replace "COPY" with the label of your flash drive (keeping the quotes, of course) then you're golden. Then you can copy scripts to the C: drive or copy files from the target machine to your flash drive. Have fun!
No comments:
Post a Comment