VBE is the compiled (encrypted) VBS code.

Source: Internet
Author: User

I. vbe and vb

VBE is similar to VBS, which are both VB script code files, but they are also different:
VBS is plain text code, that is, it can be edited directly using notepad;
VBE is the compiled (encrypted) VBS code. You cannot directly view the source code when using notepad. (Some exceptions)
There are many encryption tools, including Microsoft Script Encoder(screnc.exe) and many other tools.
The VBE format is often not blocked when files are uploaded via QQ, but the VBS format is blocked, which should be a mistake of the program designer.
Therefore, many people do not encrypt and directly change the extension to "VBE", which can still run for convenience.

II. The vb script program will be used as a spoof.

The vb script program is easy to write, small in size, convenient and flexible, and is mostly used to spoof small programs and viruses. (BASIC code has always been very simple, especially the script code also has a "wscript" script Library)
For example, the famous and popular saying "I am a pig": spoof shutting down the vbe file.
For this spoof program, the solution is very simple. Find and end the "cmdwscript.exe" (Script Host Program) in the task manager, and then enter and run "shutdown-a" in the running process to cancel the Timed shutdown.
Attackers can solve this problem by using this method. The virus is relatively complex.
Here is an example: (Source Code Fixed By Me)Copy codeThe Code is as follows: Set ob1_shshell = wscript. CreateObject ("wscript. shell") 'defines and initializes the Shell object
Obw.shshell. Run "shutdown.exe-r-t 60-c" "said I am a pig. If I don't say" I am a pig ", it will shut down. If you don't believe it, try again. ", 0, True
'The function of this line of code is to call shutdown to restart, 60 seconds countdown.
Dim uMaMe
Do While (strReturn <> "I am a pig") 'loop statement, exit the loop until the variable strReturn is equal to "I am a pig.
StrReturn = InputBox ("if I say I am a pig, I can stop it. Hurry up and say" "I am a pig" "," Think about it ...... "," You are ", 8000,700 0)
If strReturn = "you are" Then
If uMaMe <> "yes" Then
UMaMe = "yes"
Obw.shshell. popup "dare to scold me, and you will scold me again! ", 1," ", 4096
Else
Obw.shshell. popup "Wow, you can't leave heaven if you have a path. If you don't have a door to shut down, please come and shut down ~~~ ", 1," ", 4096
Obw.shshell. Run "shutdown.exe-r-t 0", 0, true' shut down directly
End If
End If
Loop
'If you say "I am a pig", exit the loop and run the following command.
Ob1_shshell. Run "shutdown.exe-a", 0, true' unlock Timed Shutdown
Obw.shshell. popup "I already said it would be okay", 1, "", 4096

III. The vb script program will be used as a virus

Sometimes kill software is regarded as a virus for vb script files. This is generally because the script runs virus-like Code such as "shutdown-s xxx. Not all vb script files are toxic.
Vb script files are sometimes transmitted as USB flash drives. A typical example is "u. "vbe" is common in public scenarios such as the school data center, and there are also related worms. The symptoms are that the hard disk cannot be opened by double-clicking.

4. vbe, also known as Visual Basic Edirtor

To do good deeds, you must first sharpen your weapon! When learning VBA and writing code with VBA, we must first be familiar with the development environment-VBE.

VBE -- Visual Basic Edirtor. If you know something about a Microsoft programming language, you will be familiar with VBE. How can I access 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 access to VBE, even the editor in Excel is completely unknown. The following figure shows the seven most commonly used Windows in VBE, which makes it easier to describe these windows.

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.