MSDOS Batch Script

You are here: Home » Computer Programming Languages » Coding Computer Viruses » MSDOS Batch Script

MSDOS Batch Script

 

When a batch file is run, the shell program (usually COMMAND.COM or cmd.exe) reads the file and executes its commands, normally line-by-line.

Unix-like operating systems, such as Linux, have a similar, but more flexible, type of file called a shell script.

The filename extension .bat is used in DOS and Windows.

The line-by-line code is meant to be used as a script to accomplish something positive on your computer. Such as renaming hundreds of files, or any other repetitive task to help save time.

However, in some instances batch files can be crafted to do some pretty amazing things to infect computers, networks, etc… In some cases avoiding antivirus detection.

Understanding how these batch files can be malicious and how they work can help us in defending against them.

For educational purposes only.

Fork Bomb Batch File Virus

By |2019-02-10T22:51:20-04:00April 22nd, 2018|Categories: Coding Computer Viruses, Computer Programming Languages, MSDOS Batch Script|Tags: , , , , , , |

Fork Bomb Batch File Virus. The fork bomb is the equivalent of a DDoS attack on your own system. It aims to deprive the system of memory (RAM), leaving nothing for other applications or the operating system’s vital operations required to keep the systems running, hence crashing it. Just 5 characters long, the fork bomb is not [...]

Introduction to Batch File Viruses

By |2019-02-10T22:35:09-04:00April 22nd, 2018|Categories: Coding Computer Viruses, Computer Programming Languages, MSDOS Batch Script|Tags: , , , , |

Introduction to Batch File Viruses: We’ll be learning about batch file viruses. We’ll look at various techniques used in small and simple batch file scripts. Even if you have no background in programming, you’ll find it very easy to follow along and learn.  What are batch files? A batch file is a name given to a type [...]

What is a Batch file?

By |2019-02-10T23:05:30-04:00April 22nd, 2018|Categories: Coding Computer Viruses, Computer Programming Languages, MSDOS Batch Script|Tags: , , , , |

What is a Batch file? A batch file 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. A batch file may contain any command the interpreter accepts interactively and use constructs that enable conditional branching and looping within the batch file, such as IF, FOR, and GOTO labels. The [...]