home *** CD-ROM | disk | FTP | other *** search
/ Steganos Hacker Tools / SHT151.iso / programme / scanner / nmapNTsp1 / Win_2000.exe / nmapNT-src / osscan.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-07-14  |  1.6 KB  |  47 lines

  1. #ifndef OSSCAN_H
  2. #define OSSCAN_H
  3.  
  4. #include "nmap.h"
  5. #include "tcpip.h"
  6. #include "global_structures.h"
  7.  
  8. #define ENOMATCHESATALL -1
  9. #define ETOOMANYMATCHES -2
  10.  
  11. /**********************  STRUCTURES  ***********************************/
  12.  
  13. /* moved to global_structures.h */
  14.  
  15. /**********************  PROTOTYPES  ***********************************/
  16. int os_scan(struct hoststruct *target, unsigned short *portarray);
  17. FingerPrint *get_fingerprint(struct hoststruct *target, struct seq_info *si, 
  18.                  unsigned short *portarray);
  19. struct AVal *fingerprint_iptcppacket(struct ip *ip, int mss, unsigned int syn);
  20. struct AVal *fingerprint_portunreach(struct ip *ip, struct udpprobeinfo *upi);
  21.  
  22. #ifdef WIN32
  23. struct udpprobeinfo *send_closedudp_probe(int rawsd, struct in_addr *dest,
  24.                       unsigned short sport, unsigned short
  25.                       dport,struct interface_info *ainfo);
  26. #else
  27. struct udpprobeinfo *send_closedudp_probe(int rawsd, struct in_addr *dest,
  28.                       unsigned short sport, unsigned short
  29.                       dport);
  30. #endif
  31. unsigned int get_gcd_n_ulong(int numvalues, unsigned int *values);
  32. unsigned int euclid_gcd(unsigned int a, unsigned int b);
  33. char *fp2ascii(FingerPrint *FP);
  34. FingerPrint **parse_fingerprint_reference_file();
  35. FingerPrint **match_fingerprint(FingerPrint *FP, int *matches_found);
  36. struct AVal *str2AVal(char *p);
  37. struct AVal *gettestbyname(FingerPrint *FP, char *name);
  38. int AVal_match(struct AVal *reference, struct AVal *fprint); 
  39. void freeFingerPrint(FingerPrint *FP);
  40. char *mergeFPs(FingerPrint *FPs[], int numFPs);
  41. #endif /*OSSCAN_H*/
  42.  
  43.  
  44.  
  45.  
  46.  
  47.