Copy Link
Add to Bookmark
Report

SLAM2.018: Quick and Easy Virus Host File Generator

eZine's profile picture
Published in 
Slam
 · 23 Feb 2022

Quick and Easy Virus Host File Generator
by Gothmog/DHA

Lots of times when I'm working on my latest virus, I find the need to infect a host file to see if the virus is working correctly. And to make such a host file, I don't want to use a program with cumbersome command-line options or mess with debug, which while easy, is still a pain when you want to get something done. So, for fast results, I cooked up this batch file system. The main batch file, MAKEHOST.BAT, creates a virus host file by piping a script, MAKEHOST.SCR, through debug. Quick and simple, not much else to it, but I've found it quite useful, as it's fast and easy to use. I recommend copying both files to your DOS directory, but any directory in your path is fine.

== cut here ======================= file: MAKEHOST.BAT == 
@echo off
echo. > %1
debug %1 < c:\dos\makehost.scr > nul
echo.
== file ends ================================ cut here ==


And the debug script file; modify the actual host to suit your needs, this one is fine in most cases, unless you're dealing with a virus that has a minimum file size check or one that uses more than the first four bytes in its infection routine, for example.

== cut here ======================= file: MAKEHOST.SCR == 
e 100 90 90 CD 20
r cx
4
w
q
== file ends ================================ cut here ==


That's it... Bug off.

Gothmog/DHA

← 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