Script
The so-called virus production machine refers to the software that can produce virus source code directly according to the user's choice. This may seem incredible to many people, but it's very simple to implement for scripting viruses.
The scripting language is interpreted to execute, does not need to compile, the program does not need what checksum is positioned, each statement separates more clearly. In this way, the virus can be made into a number of separate modules, the user made th
The answer commonly found on the web is that VBS cannot be implemented, or that a third-party COM (ActiveX? Components I am disgusted with third-party components, and using third-party components is not portable, because this component is not necessarily registered in someone else's system. My advice is to try not to call third-party components in the VBS code unless your program just writes for your own us
In the vbs script design, if you can use the system dialog box provided by Windows, you can simplify the ease of use of the script and make the script more user-friendly, which is rarely used. However, vbs does not provide such a function, of course, the method still uses COM objects.
1. safrcfiledlg. filesave object: attributes: Filename-specify the default file name; filetype-
Specify the file extension
Tip:
1. This action is triggered every 1.8 seconds after a window exists, and only one action is sent. Wait for the next window to jump out and recycle.
2. In each loop, only Ctrl + V is sent and then stopped, instead of sending it all the time.
When you see the problem, start writing the test now.CodeAt this time, the problem occurs:
After the inputbox window pops up, the vbs is paused. Wait for the user to enter the box and click OK or cancel,
If you don't talk about it much, you will use it for testing ~
Fp = wscript. Arguments (0)
Fn = right (FP, Len (FP)-limit Rev (FP ,""))
With Createobject ("ADODB. Stream ")
. Type = 1:. Open:. loadfromfile FP: Str =. Read: SL = lenb (STR)
End
Sll = SL mod 65536: SLH = sl65536
With Createobject ("scripting. FileSystemObject"). opentextfile (FP ". Bat", 2, true)
. Write "@ echo STR = """
For I = 1 to SL
Bt = ASCB (midb (STR, I, 1 ))
If BT . Write hex (BT)
If I mod 128 = 0 then. Write "" _> debug.
1. Open the chat dialog box of your friends, write down the nickname of your friends in QQ, and replace xx in the following code, you can customize the number of times QQ messages are sent to friends (change the number 10 in the Code ).
Xx. vbs =>
Copy codeThe Code is as follows: On Error Resume Next
Dim wsh, ye
Set wsh = createobject ("wscript. shell ")
For I = 1 to 10
Wscript. sleep 700
Wsh. AppActivate ("chatting with xx ")
Wsh. sendKeys "^ v"
Wsh.
I accidentally found an article WinCC VBS using EXCEL to call Windows API functions that day. I don't know what WinCC is. Google seems to be related to SIEMENS automation. WinCC is not important. What matters is that this article provides an idea for VBS to call Windows APIs-excel vba, a language that is more legendary than VB.
However, the examples in that article use the excel vba program that has been wr
On that day, I stumbled upon an article called "WinCC VBS using Excel to invoke Windows API functions," and did not know what WinCC was, and Google seemed to have something to do with Siemens automation. WINCC is not important, it is important that this article provides a way for VBS to invoke the Windows API--excel VBA, a legend than VB also need VB language.
However, the examples in that article are the
VBS using SCRIPTING.DICTIONARY Dictionary objectsTags: scripting.dictionary, VBS, VBScript, dictionaryTitle: VBS using SCRIPTING.DICTIONARY Dictionary objectsAuthor: DemonLinks: http://demon.tw/copy-paste/vbs-scripting-dictionary-object.htmlCopyright: All articles of this blog are subject to the terms "Attribution-NonC
[Programming instance] Use vbs script to addProgramTo the auto-start item
Tip: WriteArticleThen we found that the csdn editor filtered out some characters, such as , so the following script may run incorrectly .. Add this character to the viewer.
There are many vbs script functions, but sometimes we only need some of them, today, I suddenly want to study how to use the
Can vbs achieve the following: Access An aspx page and save the page returned by the server as a filestream in html format? If yes, how can we use code to implement it?
Use InternetExplorer. Application to open http://xxx.xxx.xxx/xxx.aspx. then save oie.document.body.outerhtml !!
For example, the following code details:
VBScript code:
Copy codeThe Code is as follows: Set oIE = CreateObject ("InternetE
Author: Xue jinglan
The toolbar, address bar, and menu bar in the web page are not displayed in this window. You can also use the vast majority of tags and scripts in html, this gives you more control over the interface design. (My God, when I saw this sentence, I was so excited. Isn't it a gui designed for vbs scripts ?)
Compared with a common HTML webpage, it has an HTA: APPLICATION tag, which provides a series of APPLICATION-oriented functions, al
Space Gold tax system upgrade, the export of Excel file format and the original difference, the old data import program can not recognize the file, compared with the old and new documents, found that the new file in the ticket and the "number of copies" line before the row added a row, while adding the "Document Number" column, through the script to delete these.1Setnewformat ("C:\Users\gukajie\Desktop\ VAT Special Invoice data export 20150619.xls")2
This article mainly introduces the VBS implementation to convert the current time to UTC time, very simple and practical, the need for friends can refer to the
For example, the following code returns at the current time: 1368299689
?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 This is the
Option Explicit Dim dtmdate If WScript.Arguments.Named.Count > 0 Then Syntax with Wscript.argume Nts. Unnamed ' Check command li
Does the VBS implement the following: Access to an ASPX page, and then save the page returned by the server as FileStream in HTML format, and if so, how should it be implemented in code?
First use Internetexplorer.application to open http://xxx.xxx.xxx/xxx.aspx, and then save OIE.document.body.outerHTML on it!!
For example, the following code details :
VBScript Code:
Copy Code code as follows:
S
GetObject function
Returns a reference to the Automation object in the file.
GetObject([pathname] [, class])
Parameters
Pathname
Options available. A string that contains the full path and name of the file to retrieve the object. If you omit pathname , you must have class.
Class
Options available. String, the class of the object.
The syntax format for the class parameter is appname.objectype, which includes the following sections:
Parameters
Sometimes we need to obtain the path for executing the current vbs, so we can refer to the following code, which is generally used to delete itself and other operations. CMD current path
test = createobject("Scripting.FileSystemObject").GetFolder(".").PathWscript.echo test
Current VBS path
test = createobject("Scripting.FileSystemObject").GetFile(Wscript.ScriptFullName).ParentFolder.PathWscript.echo test
s
Author: AlphaSource: UnknownNature of the article: originalTimes: 25Release date: 2004-12-27
For a long time, we have been depressed about making a good backdoor. Those ready-made backdoor software can hardly escape the pursuit of anti-virus software, and it seems unrealistic to write a backdoor for these bugs. Next I will teach you a way to create your own backdoors!Required tools:One cmd. asp is enough. You can write one by yourself or find one by yourself. However, it is recommended
Today inadvertently saw the VBS this little thing, on the whim, self-taught a bit, pour out the following small things, Daniel do not spray! This can be used to make the sister-in-the-spirit to remind themselves!How to use:Copy the program to TXT text inside save, and then suffix to vbs, throw to C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup will be able to boot from the start!Red for the son
File Operations
Copy codeThe Code is as follows: Set fso = Wscript. CreateObject ("Scripting. FileSystemObject") 'creates a file system object to process drives, folders, and files.
Set WshShell = Wscript. CreateObject ("Wscript. Shell") 'creates a system Shell object to run programs.
If fso. fileexists ("D: \ sword Online \ alreadyexist.txt") then', if the file "D: \ sword Online \ alreadyexist.txt" is found
WshShell. Run ("D: \ sword Online \ sword online.exe") 'Run "D: \ sword Online \ sword
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.