-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
27 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#include <iostream> | ||
#include <cstdlib> | ||
#include <string> | ||
|
||
using namespace std; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()); | ||
} |