Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
O Grande exemplo I :<br />
Eis aqui o scanner que já apresentei anteriormente no meu artigo sobre<br />
scanners. Vamos listá-lo abaixo :<br />
/*<br />
======================================================================<br />
| Exemplo de scanner de portas TCP |<br />
| por Antonio Marcelo |<br />
| amarcelo@honeypot.com.br |<br />
| maio / 2<strong>000</strong> |<br />
| visite nossa home page em http://www.honeypot.com.br |<br />
======================================================================<br />
*/<br />
#include <br />
#include <br />
#include <br />
#include <br />
#include <br />
#include <br />
#include <br />
#include <br />
#include <br />
#include <br />
#define maxproc 20<br />
void scan(char *);<br />
void timeout();<br />
FILE *fp;<br />
char *arquivo;<br />
char *endereco;<br />
char *opcao;<br />
int msocket;<br />
struct sockaddr_in alvo;<br />
int conector, a, portai, portaf, portas, childs = 0;<br />
int main(int argc, char *argv[])<br />
{<br />
printf("\033[2J");<br />
printf("\033[1;1H");<br />
printf<br />
("==========================================================\n");<br />
printf("== Scanner de portas TCP<br />
==\n");<br />
printf("== Por Antonio Marcelo – amarcelo@honeypot.com.br<br />
==\n");<br />
printf<br />
("==========================================================\n");<br />
if (argc == 1) {<br />
31