-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
27 lines (22 loc) · 1014 Bytes
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include "header/header.hpp" // contains headers
#include "class/guptchar/guptchar.hpp"
#include "class/guptchar/guptchar.cpp"
int main(int argv, char *argc[])
{
if (argv < 2)
{
cerr << "Error : Enter IP Address of the Target ;\n";
cerr << "Exiting now ;\n";
return -1;
}
string ip = argc[1];
string openports;
kanha::guptchar::init(); // Initializes Everything
kanha::guptchar::scanner::nmap::gdefault(ip); // Does Nmap Default Scan
kanha::guptchar::scanner::nmap::gport(ip); // Does Nmap Full TCP Portscan
openports = kanha::help::opcs(ip); // Stores open port Numbers As Comma Seperated
kanha::guptchar::scanner::nmap::gcomplete(ip, openports); // Does Nmap Full Scan
kanha::guptchar::scanner::nmap::gremovedef(ip); // Remove Nmap Default Scan
kanha::guptchar::scanner::nmap::gremoveport(ip); //Remove Nmap Port Scan
return 0;
}