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

How to encrypt VBS

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article will explain in detail how to encrypt VBS. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

1. A method that is not a method-- add comments

Add some rules that are useless and do not contain signature comments. Code outline

2. Mixed case

Ignore case using VBS

3. Mixed use of branches and peers

Use colons (:) to connect multiple lines of code into one line

4. One line is divided into multiple lines

Use the continuation character (_) to divide a line into multiple lines

5. Using execute function

The copy code is as follows:

Execute ("createobject (& chr (34) &" wscript.shell "& chr (34) & chr (41) &" .popup now ")

6. string segmentation, & mixed with + concatenation

The copy code is as follows:

Code= "creat" + "eobject (" & chr (34) + "wscr" & "ipt.she" & "ll" + chr (34) & chr (41) + ".popup now,5"

Execute code

7. Excape and Unescape encryption and decryption

The copy code is as follows:

Createobject (unescape ("% 57%53%43%52%49%50%54%2E%53%48%45%4C%4C"))

Ws.popup now,5

8. Execute performs the converted decimal ASCII

9. Execute performs converted hexadecimal ASCII

Using "VBS encryption tool" as the keyword search, you can find the software that provides the above two encryption methods. But you don't need this software now, you can find the VBS that can perfectly implement these two encryption methods in this space.

10. Use custom functions instead of internal functions (encapsulate internal functions)

The copy code is as follows:

Function t ()

T=now ()

End function

Msgbox t

11, +-() & and other characters with any number of spaces on both sides

12. The variable name is changed automatically

The copy code is as follows:

RANDOMIZE

Set FSO=createobject ("scripting.filesystemobject")

MF=FSO.opentextfile (wscript.scriptfullname,1). Readall

ARY=array ("FSO", "MF", "ARY", "NUM")

For NUM=0 to 3

MF=REPLACE (MF,ARY (NUM), chr (fix (rnd*25) + 65) & chr (fix (rnd*25) + 65))

Next

FSO.opentextfile (wscript.scriptfullname,2,1). Write MF

Open the VBS file after running the above code, and you can find that the variable has changed.

13. Add shells

The previous method only changes the variables, which messes up all the code and changes it every time

This code is the most complex. You can search the Internet for "WINDOWS scripting technology" (I really want to be in 51jb.net). You can find this encryption method in this file. You can learn a lot from this article.

14. Use official encryption tools

People may think that I have done so many ways just to make up the numbers. Indeed, many of my methods here are meaningless. But there are far more ways to encrypt VBS. I have seen several very strong encryption algorithms before, but I didn't understand them at that time, but now I forget that you can search the Internet.

This is the end of the article on "how to encrypt VBS". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

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