Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What's the use of VBE?

2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

Xiaobian to share with you what the use of VBE, I believe most people still do not know how, so share this article for your reference, I hope you have a lot of harvest after reading this article, let's go to understand it together!

VBE and VB

VBE is similar to VBS, both VB script code files, but they also have differences:

VBS is plaintext code, that is, you can edit it directly using Notepad;

VBE is compiled (encrypted) VBS code, use Notepad to open can not directly see the source code. (with some exceptions)

There are many encryption tools, the most common of which is Microsoft Script Encoder (screnc.exe), and many others.

VBE format is often not intercepted in QQ transmission files, while VBS format will be intercepted, which should be a mistake of the programmer.

Therefore, many people did not encrypt and directly changed the extension to "VBE", which still works, just for convenience.

Second, vb script program will be used as a spoof

vb script program because of the preparation of simple, small, convenient and flexible, more people used to spoof Mini programs, viruses and so on. (BASIC code has always been simple, especially script code and a "wscript" script library)

Such as the famous and popular "say 'I am a pig'": spoof shutdown vbe files.

For this spoof program, the solution is simple. Find the process "wscript.exe"(script host program) in Task Manager and end it, then type and run "shutdown -a" in Run to lift the timed shutdown.

Spoof programs can generally be solved in this way. Viruses are more complex.

Here's an example: (source code Fixed By Me)

The copy code is as follows:

Set objWSHShell = wscript.CreateObject("wscript.shell") 'Defines and initializes a Shell object

objWSHShell.Run "shutdown.exe -r -t 60 -c ""Say I am a pig, don't say" I am a pig "will shut down, do not believe evil you can try. "" ", 0, True

'This line of code calls shutdown to restart, counting down to 60 seconds.

Dim uMaMe

Do While (strReturn "I am a pig") 'loop statement exits the loop until the variable strReturn equals "I am a pig."

strReturn = InputBox("Say I'm a pig, don't turn it off, hurry up, say""I'm a pig" ", " Think about it…", " You're the one ", 8000, 7000)

If strReturn = "You are" Then

If uMaMe "yes" Then

uMaMe = "yes"

objWSHShell.popup "How dare you scold me! Try scolding me again! ",1,"",4096

Else

objWSHShell.popup "Good wow, heaven has a way you don't go, shut down no door you come, shut down ~~", 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," exit the loop and proceed.

objWSHShell.Run "shutdown.exe -a", 0, True '

objWSHShell.popup "I wish I had said so", 1,"", 4096

vb script program will be treated as virus

Sometimes killing soft vb script files will be considered a virus, which is generally the script has run "shutdown -s xxx" virus nature of the code. Not all vb script files are toxic.

Vb script files are sometimes transmitted as U disk viruses, typical examples are "u.vbe," school computer rooms and other public places are more common, there are also related worms, related symptoms for double-click can not open the hard disk.

VBE is also known as Visual Basic Editor.

If you want to do something good, you must sharpen your tools first! When we want to learn VBA and write code with VBA, we must first be familiar with the development environment-VBE.

VBE-Visual Basic Edirtor, if you know something about Microsoft's programming language, then you will not be unfamiliar with VBE. How do I get into VBE?

From Excel menu, select Tools-Macro-Visual Basic Editor, or press Alt+F11 to enter, many friends may not have touched VBE, even Excel contains this editor do not know, the following picture shows the seven most commonly used windows of VBE, and the picture also makes these windows easier to explain.

The above is all the content of this article "What is the use of VBE?" Thank you for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report