The Ever-Vigorous Copy Command (Repost)
Shandong Wang Zhixiong FLP
Using Copy to Realize Remote Upload and Download
Everyone must know that the Copy command is used to copy files, but did you know that Copy also supports copying remote files! For example, Copy C:\SRV.EXE \\210.***.***.***\ADMIN$ can "upload" the program SRV.EXE to the other party's ADMIN$ shared directory. Of course, the opposite is also true, which then becomes "download": Copy \\210.***.***.***\ADMIN$\SRV.EXE C:\ can download the SRV.EXE file in the other party's ADMIN$ shared directory to the local C drive.
Hiding Secrets in Others' Files with Copy
The DOS Copy command can combine several files of the same type into one file. For example, multiple.txt files. In fact, it can also combine a text file into a non-text file to achieve the effect of hiding secrets. For example, if you have an important text file: 001.txt in the root directory of drive D and want to hide it.
Find an MP3 song, preferably not too large (about 500KB is appropriate), such as: wanfei.mp3 (assumed to also be in the root directory of drive D), enter: Copy wanfei.mp3/b + 001.txt/a wanfei-1.mp3, which will generate a new file wanfei-1.mp3. Open it with Winamp, and the song has no change. Hold down the Shift key, right-click on wanfei-1.mp3, select "Open with" and choose a text editor like EmEditor to open the file. What do you see? A bunch of garbled code? But if you press the Ctrl+End combination key to move the cursor to the end of the file, isn't it the content of the 001.txt file?
Small tip: The parameter /b specifies copying and merging files in binary format; the parameter /a specifies copying and merging files in ASCII format. Here, you need to pay attention to the order of the files. The file in binary format should be placed before the plus sign, and the file in text format should be placed after the plus sign. One thing to remind everyone: it is best to leave at least 3 blank lines in front of this text file, so that the content at the head is not easy to be lost.
By the same token, you can hide files in pictures, WAV sound files, and even hide secrets in Word, Excel and other documents. For example:
Copy wanfei.jpg/b + 001.txt/a wanfei-1.jpg (hide 001.txt in wanfei-1.jpg picture)
Copy wanfei.doc/b + 001.txt/a wanfei-1.doc (hide 001.txt in wanfei-1.doc document)
Copy wanfei.wav/b + 001.txt/a wanfei-1.wav (hide 001.txt in wanfei-1.wav file)
Copy wanfei.exe/b+ 001.txt/a wanfei-1.exe (hide 001.txt in wanfei-1.exe file)
Excerpted from "Computer Enthusiast"