Advertisement
Guest User

Untitled

a guest
Nov 25th, 2014
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. void main()
  4. {
  5. srand(time(0));
  6. printf("\x1b[?25l\x1b[%d;40m\x1B[2J\x1B[0;0H", rand() % (37 - 31) + 31);
  7.  
  8. printf("\n __ _____ _ __\n");
  9. printf(" \\ \\/ / _ \\ '_ \\ \n");
  10. printf(" > < __/ | | |\n");
  11. printf(" /_/\\_\\___|_| |_|\n");
  12. printf(" mass scanner\n");
  13. printf(" -- nmap wrapper\n\n");
  14.  
  15. int port, amount;
  16.  
  17. printf(" port: ");
  18. scanf("%i", &port);
  19.  
  20. printf(" scan count: ");
  21. scanf("%i", &amount);
  22.  
  23. char output[20];
  24.  
  25. printf(" output: ");
  26. scanf("%s", output);
  27.  
  28. printf("%i\n%i\n%s\n", port, amount, output);
  29.  
  30. char command[100];
  31.  
  32. sprintf(command, "nmap -p%i -v -Pn -n -iR %i -oN %s --open -T4", port, amount, output);
  33. printf("%s\n", command);
  34.  
  35.  
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement