Understanding VBE VBE is a compiled (encrypted) VBS code _VBS

Source: Internet
Author: User
first, VBE and VB

VBE are similar to VBS, are VB script code files, but they are also different:
VBS is a clear text code, which means you can edit it directly using Notepad;
VBE is a compiled (encrypted) VBS code that can be opened with notepad and cannot be seen directly from the source code. (with some exceptions)
There are many cryptographic tools, which are commonly used in Microsoft Script encoder (Screnc.exe), in addition to many.
VBE format in the QQ file often will not be intercepted, and the VBS format will be intercepted, this should be a fault of the programmer.
Therefore, many people do not encrypt and directly change the extension to "VBE", still able to run, just for convenience.

Second, the VB Script program will be used to engage in evil

VB Script program because of simple writing, small size, convenient and flexible, many people used to spoof small programs, viruses and so on. (Basic code is always simple, especially with scripting code and a "WScript" script library)
As famous and rage "say ' I am pig '": A spoof shutdown VBE file.
For this spoof program, the solution is very simple. In Task Manager, locate the process "Wscript.exe" (script Host program) and end it, and then enter and run "Shutdown-a" at run time to release the timer shutdown.
A spoof program can generally be solved by such a method. Viruses are relatively complex.
Give an example here: (source code Fixed by Me)
Copy Code code as follows:

Set objWSHShell = WScript. CreateObject ("Wscript.Shell") ' defines and initializes the Shell object
Objwshshell.run "Shutdown.exe-r-t 60-c" said I was a pig, do not say "I am a pig" will shut down, not superstitious you can try. "" ", 0, True
' This line of code works by calling shutdown for a reboot, 60 seconds countdown.
Dim Umame
Do while (Strreturn <> "I am Pig") ' Loop statement until the variable strreturn equals "I'm a pig" and exits the loop.
Strreturn = InputBox ("Say I am a pig, can not turn off the machine, hurry up, say" "I am a Pig" "," think it ... "," You Are ", 8000, 7000)
If Strreturn = "You Are" Then
If umame <> "yes" Then
Umame = "Yes"
Objwshshell.popup "Dare scold me, you scold once again try to see!" ", 1," ", 4096
Else
Objwshshell.popup "Good Wow, heaven has a way you do not go, shut down no door you come, shut down the machine ~ ~ ~", 1, "", 4096
Objwshshell.run "Shutdown.exe-r-T 0", 0, True ' direct shutdown
End If
End If
Loop
' If you say ' I'm a pig ', then quit the loop and go down
Objwshshell.run "Shutdown.exe-a", 0, True ' unlock timed shutdown
Objwshshell.popup "Just say" no ", 1," ", 4096


Third, VB Script program will be as a virus

Sometimes killing soft for VB script files will be considered a virus, this is generally the script has run "shutdown-s xxx" virus nature of the code. Not all of the VB script files are poisonous.
VB script files are sometimes used as U disk virus to spread, the typical example is "u.vbe", school room and other public occasions are more common, there are related to the worm, the related symptoms of double-clicking can not open the hard drive.

VBE is also known as Visual Basic Edirtor

Work to the good thing, its prerequisite! When we want to learn VBA and write code with VBA, we must familiarize ourselves with the development environment--VBE.

Vbe--visual Basic Edirtor, if you have a knowledge of Microsoft's programming language, then the appearance of VBE will not be unfamiliar. How do you get into the VBE?

From the Excel menu, select the tool-macro--visual Basic Editor, or press the shortcut key alt+f11 to enter, many friends may not have contact with the VBE, or even Excel contains this editor are ignorant, the following map shows the VBE most commonly used seven windows , and the pictures make these windows easier to explain.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.