Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ program to use nmap

FILE *pin = popen("nmap -p 123 10.0.1.0/24","r");
if ( pin ) {
   while (!feof(pin)) {
      const char *line = readLine(pin);
      printf("%s
", line);
   }
   pclose(pin);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #program #nmap
ADD COMMENT
Topic
Name
2+3 =