comm_native.h
上传用户:jinandeyu
上传日期:2007-01-05
资源大小:620k
文件大小:5k
源码类别:

远程控制编程

开发平台:

WINDOWS

  1. /*  Back Orifice 2000 - Remote Administration Suite
  2.     Copyright (C) 1999, Cult Of The Dead Cow
  3.     This file is free software, and not subject to GNU Public License
  4. restrictions; you can redistribute it and/or modify it in any way 
  5. you see fit. This file is suitable for inclusion in a derivative
  6. work, regardless of license on the work or availability of source code
  7. to the work. If you redistribute this file, you must leave this
  8. header intact.
  9.     
  10. This program is distributed in the hope that it will be useful,
  11.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
  13. The author of this program may be contacted at dildog@l0pht.com. */
  14. #ifndef __INC_COMM_NATIVE_H
  15. #define __INC_COMM_NATIVE_H
  16. // Simple commands
  17. #define BO_COMMANDS_SIMPLE 0
  18. #define BO_PING (BO_COMMANDS_SIMPLE+0)
  19. #define BO_QUERY (BO_COMMANDS_SIMPLE+1)
  20. // System Commands
  21. #define BO_COMMANDS_SYSTEM 10
  22. #define BO_SYSREBOOT (BO_COMMANDS_SYSTEM+0)
  23. #define BO_SYSLOCKUP (BO_COMMANDS_SYSTEM+1)
  24. #define BO_SYSLISTPASSWORDS (BO_COMMANDS_SYSTEM+2)
  25. #define BO_SYSINFO (BO_COMMANDS_SYSTEM+3)
  26. #define BO_SYSVIEWCONSOLE (BO_COMMANDS_SYSTEM+4)
  27. // Input
  28. #define BO_COMMANDS_INPUT 20
  29. #define BO_SYSLOGKEYS (BO_COMMANDS_INPUT+0)
  30. #define BO_SYSENDKEYLOG (BO_COMMANDS_INPUT+1)
  31. #define BO_SYSLOGVIEW (BO_COMMANDS_INPUT+2)
  32. #define BO_SYSLOGDELETE  (BO_COMMANDS_INPUT+3)
  33. // GUI Commands
  34. #define BO_COMMANDS_GUI 30
  35. #define BO_SYSMESSAGEBOX (BO_COMMANDS_GUI+0)
  36. // TCP/IP
  37. #define BO_COMMANDS_TCPIP 40
  38. #define BO_REDIRADD (BO_COMMANDS_TCPIP+0)
  39. #define BO_APPADD (BO_COMMANDS_TCPIP+1)
  40. #define BO_HTTPENABLE (BO_COMMANDS_TCPIP+2)
  41. #define BO_TCPFILERECEIVE (BO_COMMANDS_TCPIP+3)
  42. #define BO_PORTLIST (BO_COMMANDS_TCPIP+4)
  43. #define BO_PORTDEL (BO_COMMANDS_TCPIP+5)
  44. #define BO_TCPFILESEND (BO_COMMANDS_TCPIP+6)
  45. // M$ Networking Commands
  46. #define BO_COMMANDS_MSNET 50
  47. #define BO_NETEXPORTADD (BO_COMMANDS_MSNET+0)
  48. #define BO_NETEXPORTDELETE (BO_COMMANDS_MSNET+1)
  49. #define BO_NETEXPORTLIST (BO_COMMANDS_MSNET+2)
  50. #define BO_NETVIEW (BO_COMMANDS_MSNET+3)
  51. #define BO_NETUSE (BO_COMMANDS_MSNET+4)
  52. #define BO_NETDELETE (BO_COMMANDS_MSNET+5)
  53. #define BO_NETCONNECTIONS (BO_COMMANDS_MSNET+6)
  54. // Process Handling
  55. #define BO_COMMANDS_PROCESS 60
  56. #define BO_PROCESSLIST (BO_COMMANDS_PROCESS+0)
  57. #define BO_PROCESSKILL (BO_COMMANDS_PROCESS+1)
  58. #define BO_PROCESSSPAWN (BO_COMMANDS_PROCESS+2)
  59. // Registry Management
  60. #define BO_COMMANDS_REGISTRY 70
  61. #define BO_REGISTRYCREATEKEY (BO_COMMANDS_REGISTRY+0)
  62. #define BO_REGISTRYSETVALUE (BO_COMMANDS_REGISTRY+1)
  63. #define BO_REGISTRYGETVALUE (BO_COMMANDS_REGISTRY+2)
  64. #define BO_REGISTRYDELETEKEY (BO_COMMANDS_REGISTRY+3)
  65. #define BO_REGISTRYDELETEVALUE (BO_COMMANDS_REGISTRY+4)
  66. #define BO_REGISTRYRENAMEKEY (BO_COMMANDS_REGISTRY+5)
  67. #define BO_REGISTRYRENAMEVALUE (BO_COMMANDS_REGISTRY+6)
  68. #define BO_REGISTRYENUMKEYS (BO_COMMANDS_REGISTRY+7)
  69. #define BO_REGISTRYENUMVALS (BO_COMMANDS_REGISTRY+8)
  70. // Multimedia Controls 
  71. #define BO_COMMANDS_MM 80
  72. #define BO_MMCAPFRAME (BO_COMMANDS_MM+0)
  73. #define BO_MMCAPAVI (BO_COMMANDS_MM+1)
  74. #define BO_MMPLAYSOUND (BO_COMMANDS_MM+2)
  75. #define BO_MMLOOPSOUND (BO_COMMANDS_MM+3)
  76. #define BO_MMSTOPSOUND (BO_COMMANDS_MM+4)
  77. #define BO_MMLISTCAPS (BO_COMMANDS_MM+5)
  78. #define BO_MMCAPSCREEN (BO_COMMANDS_MM+6)
  79. // File and Directory Commands
  80. #define BO_COMMANDS_FILE 90
  81. #define BO_DIRECTORYLIST (BO_COMMANDS_FILE+0)
  82. #define BO_FILEFIND (BO_COMMANDS_FILE+1)
  83. #define BO_FILEDELETE (BO_COMMANDS_FILE+2)
  84. #define BO_FILEVIEW (BO_COMMANDS_FILE+3)
  85. #define BO_FILERENAME (BO_COMMANDS_FILE+4)
  86. #define BO_FILECOPY (BO_COMMANDS_FILE+5)
  87. #define BO_DIRECTORYMAKE (BO_COMMANDS_FILE+6)
  88. #define BO_DIRECTORYDELETE (BO_COMMANDS_FILE+7)
  89. #define BO_SETFILEATTR (BO_COMMANDS_FILE+8)
  90. #define BO_RECEIVEFILE (BO_COMMANDS_FILE+9)
  91. #define BO_SENDFILE (BO_COMMANDS_FILE+10)
  92. #define BO_EMITFILE (BO_COMMANDS_FILE+11)
  93. #define BO_LISTTRANSFERS (BO_COMMANDS_FILE+12)
  94. #define BO_CANCELTRANSFER (BO_COMMANDS_FILE+13)
  95. // File Compression
  96. #define BO_COMMANDS_COMPRESS 110
  97. #define BO_FILEFREEZE (BO_COMMANDS_COMPRESS+0)
  98. #define BO_FILEMELT (BO_COMMANDS_COMPRESS+1)
  99. // Resolver
  100. #define BO_COMMANDS_DNS 120
  101. #define BO_RESOLVEHOST (BO_COMMANDS_DNS+0)
  102. #define BO_RESOLVEADDR (BO_COMMANDS_DNS+1)
  103. // Server Control
  104. #define BO_COMMANDS_SERVERCTRL 130
  105. #define BO_SHUTDOWNSERVER (BO_COMMANDS_SERVERCTRL+0)
  106. #define BO_RESTARTSERVER (BO_COMMANDS_SERVERCTRL+1)
  107. #define BO_LOADPLUGINDLL (BO_COMMANDS_SERVERCTRL+2)
  108. #define BO_DEBUGPLUGINDLL (BO_COMMANDS_SERVERCTRL+3)
  109. #define BO_LISTPLUGINDLLS (BO_COMMANDS_SERVERCTRL+4)
  110. #define BO_REMOVEPLUGINDLL (BO_COMMANDS_SERVERCTRL+5)
  111. #define BO_STARTCOMMANDSOCKET (BO_COMMANDS_SERVERCTRL+6)
  112. #define BO_LISTCOMMANDSOCKETS (BO_COMMANDS_SERVERCTRL+7)
  113. #define BO_STOPCOMMANDSOCKET (BO_COMMANDS_SERVERCTRL+8)
  114. // Legacy Buttplug interface
  115. #define BO_COMMANDS_BUTTPLUGS 140
  116. #define BO_PLUGINEXECUTE (BO_COMMANDS_BUTTPLUGS+0)
  117. #define BO_PLUGINLIST (BO_COMMANDS_BUTTPLUGS+1)
  118. #define BO_PLUGINKILL (BO_COMMANDS_BUTTPLUGS+2)
  119. int RegisterNativeCommands(void);
  120. #endif