please help with 1-24. pleaseeee sk 1: Creating a Simple Virus this task, you wi
ID: 3916354 • Letter: P
Question
please help with 1-24. pleaseeee
sk 1: Creating a Simple Virus this task, you will use Notepad to create a simple .bat virus and transform it int ecutable (.exe) file. Although you can do this on any computer, it is recommend at you work on VM to avoid any problems with your machine 14. Add the following code to del.bat and save it on your Desktop virus4 Notapad 1 Open VirtualBox and Start the Windows XP VM 2. In XP, open Notepad and create a file and save it as simple.bat 3. Add the following code to simple.bat and save it on your Desktop decho off echo c1ick ause del "s.txt" D virus2 Noteped 15. Analyze the code. What do you think will happen? @echo off echo WARNING Virus has been detected echo System Check echo Virus quarantined echo click any key to delete virus pause explorer goto bm 16. Double-click the del.bat file to see what happens 17. In order to do something more interesting with del.bat create a folder on your Desktop and cal it Parent. Inside parent create 2 text files and another folder called Child. Inside child create 2 text files Close Notepad Analyze the code. What do you think will happen? 4. 5. File and rolder lasks Chld Test Document Make a new folder P bish thes folde to the Share this folde ??? 6. 7. 8. 9. Double-click the simple.bat file to see what happens If your VM freezes, force it to shutdown Let's create another virus and this time call it sd.bat Add the following code to sd.bat and save it on your Desktop 18. Edit del.bat to look like this virus4-Nolepad @echo off del /s "Parent.txt" D virus3 Notepad @echo off 19. Analyze the code. What do you think will happen? echo Click any key to find out shutdown -s -t 30 -c "You have 30 seconds. 10. Analyze the code. What do you think will happen? 20. Double-click the del.bat file to see what happens 21. In order to make your viruses more like programs you can distribute, we must convert them into .EXE (executable) files 22. Use the bat2exe (Bat To Exe Converter) utility provided to you on the 11. Double-click the sd.bat file to see what happens 12. Create 3 text files using Notepad and save them on your Desktop (the desktop of the Win XP machine 23. Open the Bat_To Exe_Converter by double-clicking the utility 24. Find the simple.bat and convert simple.bat to simple.exe as shown in the content and the names are not important) 13. Let's create another virus and this time call it del.bat image belowExplanation / Answer
Before starting firstly we understand about .bat or batch file which is is a kind of script file in DOS, OS/2 and Microsoft Windows. It consists of a series of commands to be executed by the command-line interpreter, stored in a plain text file.
Step 1:
We install virtual box and install windows on it (https://www.virtualbox.org/). This step is very important as by running .bat file directly into computer that we created will freez your computer.
Step 2:
Open notepad and paste the above commands.
@echo off
echo WARNING virus has been detected
echo System Check
echo Virus quarantined
echo Click any key to delete virus
pause
:bm
explorer
goto bm
Explaination:-
@echo off, results in command prompts being hidden. use on to display.
echo is used to display.
pause is used to hold the program and wait for user response.
:bm here is a function
explorer is your browser opening request
GOTO bm is calling that function again and again mean it gets stuck in an infinite loop therefore computer freezes.
Step 6:
It's is simple yet very important step make sure to save file with .bat at the end instad of .txt.
Step 9:
shutdown -s -t 30 -c is cpmmand simply telling computer of poweroff after 30 seconds.
Step 14:
del "*.txt" this command is using wildcard which is very useful way to find , delete and do all sorts of things in bulk. * before .txt implies that any file ending with .txt is to be delete as in this case. It can be used at the end aswell.
Step 18:
Here the same code is used but this time files located at parent directory is deleted.
If you are still confused with any step ask me again. And the title of project is misleading these are not viruses , these are just basic bash scripting commands. One more interesting command for you. Enter this in cmd %0|%0 and watch the magic. Make sure it's virtual machine.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.