home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / nmap254b.zip / scan_engine.h < prev    next >
C/C++ Source or Header  |  2001-08-10  |  4KB  |  74 lines

  1.  
  2. /***********************************************************************/
  3. /* scanengine.h -- Includes much of the "engine" functions for         */
  4. /* scanning, such as pos_scan and super_scan.  It also includes        */
  5. /* dependant functions such as those for collectiong SYN/connect scan  */
  6. /* responses.                                                          */
  7. /*                                                                     */
  8. /***********************************************************************/
  9. /*  The Nmap Security Scanner is (C) 1995-2001 Insecure.Com LLC. This  */
  10. /*  program is free software; you can redistribute it and/or modify    */
  11. /*  it under the terms of the GNU General Public License as published  */
  12. /*  by the Free Software Foundation; Version 2.  This guarantees your  */
  13. /*  right to use, modify, and redistribute this software under certain */
  14. /*  conditions.  If this license is unacceptable to you, we may be     */
  15. /*  willing to sell alternative licenses (contact sales@insecure.com). */
  16. /*                                                                     */
  17. /*  If you received these files with a written license agreement       */
  18. /*  stating terms other than the (GPL) terms above, then that          */
  19. /*  alternative license agreement takes precendence over this comment. */
  20. /*                                                                     */
  21. /*  Source is provided to this software because we believe users have  */
  22. /*  a right to know exactly what a program is going to do before they  */
  23. /*  run it.  This also allows you to audit the software for security   */
  24. /*  holes (none have been found so far).                               */
  25. /*                                                                     */
  26. /*  Source code also allows you to port Nmap to new platforms, fix     */
  27. /*  bugs, and add new features.  You are highly encouraged to send     */
  28. /*  your changes to fyodor@insecure.org for possible incorporation     */
  29. /*  into the main distribution.  By sending these changes to Fyodor or */
  30. /*  one the insecure.org development mailing lists, it is assumed that */
  31. /*  you are offering Fyodor the unlimited, non-exclusive right to      */
  32. /*  reuse, modify, and relicense the code.  This is important because  */
  33. /*  the inability to relicense code has caused devastating problems    */
  34. /*  for other Free Software projects (such as KDE and NASM).  Nmap     */
  35. /*  will always be available Open Source.  If you wish to specify      */
  36. /*  special license conditions of your contributions, just say so      */
  37. /*  when you send them.                                                */
  38. /*                                                                     */
  39. /*  This program is distributed in the hope that it will be useful,    */
  40. /*  but WITHOUT ANY WARRANTY; without even the implied warranty of     */
  41. /*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU  */
  42. /*  General Public License for more details (                          */
  43. /*  http://www.gnu.org/copyleft/gpl.html ).                            */
  44. /*                                                                     */
  45. /***********************************************************************/
  46.  
  47. /* $Id: scan_engine.h,v 1.4 2001/08/10 05:53:08 fyodor Exp $ */
  48.  
  49. #ifndef SCAN_ENGINE_H
  50. #define SCAN_ENGINE_H
  51.  
  52. #include "portlist.h"
  53. #include "tcpip.h"
  54. #include "global_structures.h"
  55.  
  56. /* Handles the "positive-response" scans (where we get a response
  57.    telling us that the port is open based on the probe.  This includes
  58.    SYN Scan, Connect Scan, RPC scan, Window Scan, and ACK scan */
  59. void pos_scan(struct hoststruct *target, u16 *portarray, int numports, stype scantype);
  60.  
  61. /* FTP bounce attack scan.  This function is rather lame and should be
  62.    rewritten.  But I don't think it is used much anyway.  If I'm going to
  63.    allow FTP bounce scan, I should really allow SOCKS proxy scan.  */
  64. void bounce_scan(struct hoststruct *target, u16 *portarray, int numports,
  65.          struct ftpinfo *ftp);
  66.  
  67. /* Handles the scan types where no positive-acknowledgement of open
  68.    port is received (those scans are in pos_scan).  Super_scan
  69.    includes scans such as FIN/XMAS/NULL/Maimon/UDP and IP Proto scans */
  70. void super_scan(struct hoststruct *target, u16 *portarray, int numports,
  71.         stype scantype);
  72.  
  73. #endif /* SCAN_ENGINE_H */
  74.