1
0

vlmcs.1.unix.txt 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335
  1. VLMCS(1) KMS Activation Manual VLMCS(1)
  2. NAME
  3. vlmcs - a client for testing and/or charging KMS servers
  4. SYNOPSIS
  5. vlmcs [ options ] [ target ] [ options ]
  6. target can be one of the following:
  7. hostname|ipaddress[:tcp-port] to query a specific KMS server
  8. (example: vlmcs kms.example.com:1688).
  9. .domain to automatically detect KMS servers via DNS for domain
  10. (example: vlmcs .example.com). Please note the dot before
  11. domain.
  12. - (a single dash) to detect KMS servers in your own domain.
  13. If you use ipaddress:port as the target, the ipaddress must be enclosed
  14. in brackets if it contains colons, e.g. [2001:db8:dead:beef::1]:1688.
  15. If you use a link-local IPv6 address on Unix systems, you must append a
  16. percent sign and the interface identifier of the source interface, for
  17. example fe80::dead:beef%eth0.
  18. If you omit the target, 127.0.0.1:1688 will be used except if you use
  19. -i6. In this case the default target is [::1]:1688.
  20. DESCRIPTION
  21. vlmcs is a program that can be used to test a KMS server that provides
  22. activation for several Microsoft products. The KMS server may also be
  23. an emulator. It supports KMS protocol versions 4, 5 and 6.
  24. vlmcs generates one or more activation requests for a Microsoft KMS
  25. product and sends it to a KMS server. It then analyzes and displays the
  26. responses of the KMS server.
  27. vlcms checks both the DCE-RPC protocol and the activation message for
  28. correctness and reports any errors that it finds.
  29. vlmcs can also be used to "charge" a KMS server. A Microsoft KMS server
  30. sends correct activation messages only if it detects a certain minimum
  31. of clients (25 for Windows client OSses, 5 otherwise) on the network.
  32. This is Microsoft's futile attempt to prevent running a KMS server in a
  33. home environment.
  34. OPTIONS
  35. -h or -?
  36. Show help.
  37. -V Displays extended version information. This includes the com‐
  38. piler used to build vlmcs, the intended platform and flags (com‐
  39. pile time options) to build vlmcs. If you have the source code
  40. of vlmcsd, you can type make help (or gmake help on systems that
  41. do not use the GNU version of make(1) by default) to see the
  42. meaning of those flags.
  43. -x Show valid applications that can be used with -l.
  44. -e Show some examples how to use vlmcs correctly.
  45. -v Be verbose. Instead of just displaying the returned ePID and the
  46. HwId (protocol v6 only) vlmcsd shows all details of the query
  47. and the response.
  48. -l application
  49. Request activation for a specific application. Valid applica‐
  50. tions can be displayed by using -x. The default application is
  51. Windows Vista Business. The list of available applications is
  52. not complete. You may supply GUIDs with -a, -k and -s to specify
  53. applications that are not listed with -x. The -l option is used
  54. as a shortcut for the most common applications.
  55. -K protocol-version
  56. Force a specific version of the KMS protocol. Valid versions are
  57. 4.0, 5.0 and 6.0. The default is to select a suitable version
  58. according to the application selected. You may use -K to send an
  59. incorrect protocol version to the KMS server and see how it
  60. behaves. Genuine KMS servers return HRESULT 0x8007000D if the
  61. KMS protocol is not 4.0, 5.0 or 6.0. Emulators should do the
  62. same. When sending a request with an incorrect protocol number,
  63. vlmcs ignores the minor protocol number (e.g. sends a v4 request
  64. for version 4.1). If the major version number is less then 4, it
  65. sends a v4 request. If the major version is greater then 6, it
  66. sends a v6 request. In any case the protocol-version as speci‐
  67. fied by -K is put in the version fields of the request.
  68. -4, -5 and -6
  69. Force version 4, 5 or 6 of the KMS protocol. These options are
  70. actually shortcuts of -K 4.0, -K 5.0 and -K 6.0.
  71. -j filename
  72. Use KMS data file filename. By default vlmcs contains product
  73. data that is recent when vlmcs was compiled. You may use a more
  74. recent KMS data file that contains additional products.
  75. If vlmcsd has been compiled to use a default KMS data file, you
  76. may use -j- to ignore the default configuration file.
  77. -m Let the client pretend to be a virtual machine. Early versions
  78. of Microsoft's KMS server did not increase the client count if
  79. the request came from a virtual machine. Newer versions ignore
  80. this flag.
  81. -d Use NetBIOS names instead of DNS names. By default vlmcsd gener‐
  82. ates some random DNS names for each request. If you prefer Net‐
  83. BIOS names, you may use -d. A real Microsoft activation client
  84. uses DNS names or NetBIOS depending on the client name configu‐
  85. ration. KMS servers treat the workstation name as a comment that
  86. affects logging only. Clients will be identified by a GUID that
  87. can be specified using -c. -d has no effect if you also specify
  88. -w.
  89. -a application-guid
  90. Send requests with a specific application-guid. There are cur‐
  91. rently only three known valid application-guids:
  92. 55c92734-d682-4d71-983e-d6ec3f16059f (Windows)
  93. 59a52881-a989-479d-af46-f275c6370663 (Office 2010)
  94. 0ff1ce15-a989-479d-af46-f275c6370663 (Office 2013)
  95. A Microsoft KMS server uses these GUIDs to have seperate coun‐
  96. ters for the already activated clients. A client that does not
  97. contact the KMS server within 30 days will be deleted from the
  98. database. Emulated KMS servers are always fully charged.
  99. -k kms-guid
  100. Send requests with a specific kms-guid. A Microsoft KMS server
  101. uses these GUIDs as a product id to decide whether to grant
  102. activation or not. A list of current kms-guids can be found in
  103. kms.c (table KmsIdList). Emulated KMS servers grant activation
  104. unconditionally and do not check the kms-guid.
  105. -s activation-guid
  106. The activation-guid defines the actual product, e.g. "Windows
  107. 8.1 Professional WMC KMSCLIENT edition". A activation-guid maps
  108. 1:1 to a product key. However, neither a Microsoft KMS server
  109. nor emulated servers check this id. The activation-guid is use‐
  110. ful in logging to get a specific product description like "Win‐
  111. dows 8.1 Professional WMC". A list of current activation-guids
  112. can be found in kms.c (table ExtendedProductList).
  113. -n requests
  114. Send requests requests to the server. The default is to send at
  115. least one request and enough subsequent requests that the server
  116. is fully charged afterwards for the application-guid you
  117. selected (explicitly with -a or implicitly by using -l).
  118. -T Causes to use a new TCP connection for each request if multiple
  119. requests are sent with vlmcsd. This is useful when you want to
  120. test an emulated KMS server whether it suffers from memory
  121. leaks. To test for memory leaks use -n with a large number of
  122. requests (> 100000) and then test twice (with and without -T).
  123. This option may become neccessary for future versions of Micro‐
  124. soft's KMS server because multiple requests with different
  125. clients-guids for the same kms-id-guid are impossible in a real
  126. KMS szenario over the same TCP connection.
  127. -c client-machine-guid
  128. Normally vlmcs generates a random client-machine-guid for each
  129. request. By using this option you can specify a fixed client-
  130. machine-guid This causes a Microsoft KMS not to increment its
  131. client count because it receives multiple requests for the same
  132. client. Thus do not use -c if you want to charge a real KMS
  133. server.
  134. -o previous-client-machine-guid
  135. If the client-machine-guid changes for some reason, the real KMS
  136. client stores a previous-client-machine-guid which is sent to
  137. the KMS server. This happens rarely and usually
  138. 00000000-0000-0000-0000-000000000000 is used. You can use -o to
  139. specify a different previous-client-machine-guid.
  140. -G filename
  141. Grabs ePIDs and HWIDs from a KMS server and writes the informa‐
  142. tion to filename in format suitable to be used as a configura‐
  143. tion file (aka ini file) for vlmcsd(8). This is especially use‐
  144. ful if you have access to a genuine KMS server and want to use
  145. the same data with vlmcsd(8).
  146. If filename does not exist, it will be created. If you specify
  147. an existing filename, it will be updated to use the information
  148. received from the remote KMS server and a backup filename~ will
  149. be created.
  150. -G cannot be used with -l, -4, -5, -6, -a, -s, -k, -r and -n
  151. -w workstation-name
  152. Send requests with a specific workstation-name. This disables
  153. the random generator for the workstation name. Since it is a
  154. comment only, this option does not have much effect.
  155. -r required-client-count
  156. Also known as the "N count policy". Tells the KMS server that
  157. successful activation requires required-client-count clients.
  158. The default is the required-client-count that the product would
  159. need if the request was a real activation. A Microsoft KMS
  160. server counts clients up to the double amount what was specified
  161. with -r. This option can be used to "overcharge" a Microsoft KMS
  162. server.
  163. -t status
  164. Reports a specific license status to the KMS server. status is a
  165. number that can be from 0 to 6. 0=unlicensed, 1=licensed, 2=OOB
  166. grace, 3=OOT grace, 4=Non-genuinue grace, 5=notification,
  167. 6=extended grace. Refer to TechNet ⟨http://
  168. technet.microsoft.com/en-us/library/ff686879.aspx#_Toc257201371⟩
  169. for more information. A Microsoft KMS server collects this
  170. information for statistics only.
  171. -g binding-expiration
  172. This tells the KMS server how long a client will stay in its
  173. current license status. This can be the remaining OOB time (the
  174. grace peroid that is granted between installation of a product
  175. and when activation is actuall required) or the remaining time
  176. when KMS activation must be renewed. binding-expiration is
  177. specified in minutes. A Microsoft KMS server apparantly does not
  178. use this information.
  179. -i protocol-version
  180. Force the use of Internet protocol protocol-version. Allowed
  181. values are 4 (IPv4) and 6 (IPv6). This option is useful only if
  182. you specfiy a hostname and not an ip-address on the command
  183. line.
  184. -p Do not set the RPC_PF_MULTIPLEX flag in the RPC bind request.
  185. This can be used to test if the KMS server uses the same setting
  186. of this flag in the RPC bind respone. Some KMS emulators don't
  187. set this correctly.
  188. -N0 and -N1
  189. Disables (-N0) or enables (-N1) the NDR64 transfer syntax in the
  190. RPC protocol. Disable NDR64 only in case of problems. If NDR64
  191. is not used, vlmcs cannot detect many RPC protocol errors in KMS
  192. emulators. If you want to test whether a KMS emulator fully sup‐
  193. ports NDR64, you must use the -n option to send at least two
  194. requests. This is because Microsoft's client always sends the
  195. first request using NDR32 syntax and subsequent requests using
  196. NDR64 syntax.
  197. -B0 and -B1
  198. Disables (-B0) or enables (-B1) bind time feature negotiation
  199. (BTFN) in the RPC protocol. Disable BTFN only in case of prob‐
  200. lems. If BTFN is not used, vlmcs cannot detect many RPC protocol
  201. errors in KMS emulators.
  202. Options that do not require an argument can be specified together with
  203. a single dash, e.g. vlmcs -6mvT. If you specify an option more than
  204. once, the last occurence will be in effect.
  205. FILES
  206. vlmcsd.ini(5)
  207. EXAMPLES
  208. vlmcs kms.example.com
  209. Request activation for Windows Vista using v4 protocol from
  210. kms.example.com. Repeat activation requests until server is
  211. charged for all Windows products.
  212. vlmcs -
  213. Request activation for Windows Vista using v4 protocol from a
  214. KMS server that is published via DNS for the current domain.
  215. vlmcs .example.com
  216. Request activation for Windows Vista using v4 protocol from a
  217. KMS server that is published via DNS for domain example.com.
  218. vlmcs -6 -l Office2013 -v -n 1
  219. Request exactly one activation for Office2013 using v6 protocol
  220. from localhost. Display verbose results.
  221. vlmcs kms.bigcompany.com -G /etc/vlmcsd.ini
  222. Get ePIDs and HWIDs from kms.bigcompany.com and create/update
  223. /etc/vlmcsd.ini accordingly.
  224. BUGS
  225. Some platforms (e.g. Solaris) may have a man(7) system that does not
  226. handle URLs. URLs may be omitted in the documentation on those plat‐
  227. forms. Cygwin, Linux, FreeBSD and Mac OS X are known to work correctly.
  228. AUTHOR
  229. Written by Hotbird64
  230. CREDITS
  231. Thanks to CODYQX4, crony12, deagles, DougQaid, eIcn, mikmik38, nos‐
  232. ferati87, qad, Ratiborus, vityan666, ...
  233. SEE ALSO
  234. vlmcsd(7), vlmcsd(8), vlmcsdmulti(1)
  235. Hotbird64 November 2016 VLMCS(1)