Skip to content

Commit

Permalink
Made Till Default Scan
Browse files Browse the repository at this point in the history
  • Loading branch information
kapoorz committed Jun 19, 2020
1 parent f6177c4 commit 9ac01ef
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
5 changes: 5 additions & 0 deletions nmapper/header.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#include <iostream>
#include <cstdlib>
#include <string>

using namespace std;
20 changes: 16 additions & 4 deletions nmapper/nmapper.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
#include <iostream>
#include "header.hpp" // Contains All Headers
#include "nmapper.hpp" // Contains all functions

using namespace std

int main()
int main(int argv, char *argc[])
{
if (argv < 2)
{
cerr << "Error : Enter IP Address of the Target ;";
cerr << "\nExiting now ;";
return -1;
}

string IP(argc[1]);

// Default Scan With Nmap
nmapdefaultscan(IP);

return 0;

}
6 changes: 6 additions & 0 deletions nmapper/nmapper.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Nmap Default Scan

void nmapdefaultscan(string IP)
{
system(("nmap " + IP + " > nmapper" + IP + "@default.temp.scan").c_str());
}

0 comments on commit 9ac01ef

Please sign in to comment.