-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOutput.cpp
More file actions
43 lines (30 loc) · 920 Bytes
/
Output.cpp
File metadata and controls
43 lines (30 loc) · 920 Bytes
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
* Output.cpp
*
* Created on: Dec 5, 2014
* Author: jay
*/
#include "Output.h"
Output::Output() {
// TODO Auto-generated constructor stub
}
Output::~Output() {
// TODO Auto-generated destructor stub
}
void Output::displayScanningTime() {
cout << "Scan Took " << endl;
}
void Output::display(string IpToPrint,
std::map<string, struct displayOutput*> &mapToprint) {
cout << "IP address :" << '\t' << IpToPrint << endl;
cout << "Open Ports:" << endl;
cout << "Port" << "\t\t\t" << "Service Name" << "\t\t\t"
<< "Service Version" << "\t\t\t" << "Result" << "\t\t\t"
<< "Conclusion" << endl;
cout
<< "----------------------------------------------------------------------------------------------------------------------------"
<< endl;
map<string, struct displayOutput*>::iterator it;
it =mapToprint.find(IpToPrint);
cout << it->second->port << it->second->result << endl;
}