|
From: w.y. <yok...@be...> - 2003-08-03 12:26:57
|
airam wrote:
>
> #include <time.h>
> #include <stdlib.h>
> #include <stdio.h>
>
> main()
> {
> int rolls=1;
> char tel[100];
>
> srand((unsigned int)time((time_t *)NULL));
> while(rolls--)
> {
> sprintf(tel,"telnet %d.%d.%d.%d",
> (rand()%254)+1,(rand()%254)+1,(rand()%254)+1,(rand()%254)+1);
>
> }
> system("tel");
> return 0;
> }
You're sending your system "tel" but unless you have a program
called "tel" you get what you got on your system.
Try:
system(tel);
|