-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathraw.h
More file actions
23 lines (23 loc) · 722 Bytes
/
Copy pathraw.h
File metadata and controls
23 lines (23 loc) · 722 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//#include<pcap.h>
//#include<string>
//using namespace std;
//
//enum ScanType {
// SYN = 0, FIN = 2, NUL = 1, XMAS = 3, ACK = 4, UDP = 5
//};
//
///*class Scan{
// int port; //Port to be scanned
// string ip; //IP to scan
// bool vector scanType; //holds the scans to be done
// }*/
//
//void packetSendRecv(string ipToScan, short port, ScanType scan);
//
//struct in_addr getMyAddress();
//unsigned short csum(unsigned short *buf, int nwords);
//unsigned short in_cksum(unsigned short *addr, int len);
//pcap_t* setupCapture(short port, string ipToScan);
//void packetSendRecvUDP(string ipToScan, short Port);
//string stringUpper(char * lString);
//void packetSendRecv(string ipToScan, short Port, ScanType scan);