vlmcs.1.html 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532
  1. <!-- Creator : groff version 1.22.3 -->
  2. <!-- CreationDate: Wed Jul 13 12:34:01 2016 -->
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  4. "http://www.w3.org/TR/html4/loose.dtd">
  5. <html>
  6. <head>
  7. <meta name="generator" content="groff -Thtml, see www.gnu.org">
  8. <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
  9. <meta name="Content-Style" content="text/css">
  10. <style type="text/css">
  11. p { margin-top: 0; margin-bottom: 0; vertical-align: top }
  12. pre { margin-top: 0; margin-bottom: 0; vertical-align: top }
  13. table { margin-top: 0; margin-bottom: 0; vertical-align: top }
  14. h1 { text-align: center }
  15. </style>
  16. <title>VLMCS</title>
  17. </head>
  18. <body>
  19. <h1 align="center">VLMCS</h1>
  20. <a href="#NAME">NAME</a><br>
  21. <a href="#SYNOPSIS">SYNOPSIS</a><br>
  22. <a href="#DESCRIPTION">DESCRIPTION</a><br>
  23. <a href="#OPTIONS">OPTIONS</a><br>
  24. <a href="#FILES">FILES</a><br>
  25. <a href="#EXAMPLES">EXAMPLES</a><br>
  26. <a href="#BUGS">BUGS</a><br>
  27. <a href="#AUTHOR">AUTHOR</a><br>
  28. <a href="#CREDITS">CREDITS</a><br>
  29. <a href="#SEE ALSO">SEE ALSO</a><br>
  30. <hr>
  31. <h2>NAME
  32. <a name="NAME"></a>
  33. </h2>
  34. <p style="margin-left:11%; margin-top: 1em">vlmcs &minus; a
  35. client for testing and/or charging KMS servers</p>
  36. <h2>SYNOPSIS
  37. <a name="SYNOPSIS"></a>
  38. </h2>
  39. <p style="margin-left:11%; margin-top: 1em"><b>vlmcs</b> [
  40. <i>options</i> ] [ <i>target</i> ] [ <i>options</i> ]</p>
  41. <p style="margin-left:11%; margin-top: 1em"><i>target</i>
  42. can be one of the following:</p>
  43. <p style="margin-left:22%; margin-top: 1em"><i>hostname</i>|<i>ipaddress</i>[:<i>tcp-port</i>]
  44. to query a specific KMS server (example: vlmcs
  45. kms.example.com:1688). <br>
  46. .<i>domain</i> to automatically detect KMS servers via DNS
  47. for <i>domain</i> (example: vlmcs .example.com). Please note
  48. the dot before <i>domain</i>. <i><br>
  49. -</i> (a single dash) to detect KMS servers in your own
  50. domain.</p>
  51. <p style="margin-left:11%; margin-top: 1em">If you use
  52. <i>ipaddress</i>:<i>port</i> as the <i>target</i>, the
  53. <i>ipaddress</i> must be enclosed in brackets if it contains
  54. colons, e.g. [2001:db8:dead:beef::1]:1688. If you use a
  55. link-local IPv6 address on Unix systems, you must append a
  56. percent sign and the interface identifier of the source
  57. interface, for example fe80::dead:beef%eth0.</p>
  58. <p style="margin-left:11%; margin-top: 1em">If you omit the
  59. <i>target</i>, 127.0.0.1:1688 will be used except if you use
  60. <b>-i6</b>. In this case the default target is
  61. [::1]:1688.</p>
  62. <h2>DESCRIPTION
  63. <a name="DESCRIPTION"></a>
  64. </h2>
  65. <p style="margin-left:11%; margin-top: 1em"><b>vlmcs</b> is
  66. a program that can be used to test a KMS server that
  67. provides activation for several Microsoft products. The KMS
  68. server may also be an emulator. It supports KMS protocol
  69. versions 4, 5 and 6.</p>
  70. <p style="margin-left:11%; margin-top: 1em"><b>vlmcs</b>
  71. generates one or more activation requests for a Microsoft
  72. KMS product and sends it to a KMS server. It then analyzes
  73. and displays the responses of the KMS server.</p>
  74. <p style="margin-left:11%; margin-top: 1em"><b>vlcms</b>
  75. checks both the DCE-RPC protocol and the activation message
  76. for correctness and reports any errors that it finds.</p>
  77. <p style="margin-left:11%; margin-top: 1em"><b>vlmcs</b>
  78. can also be used to &quot;charge&quot; a KMS server. A
  79. Microsoft KMS server sends correct activation messages only
  80. if it detects a certain minimum of clients (25 for Windows
  81. client OSses, 5 otherwise) on the network. This is
  82. Microsoft&rsquo;s futile attempt to prevent running a KMS
  83. server in a home environment.</p>
  84. <h2>OPTIONS
  85. <a name="OPTIONS"></a>
  86. </h2>
  87. <p style="margin-left:11%; margin-top: 1em"><b>-h</b> or
  88. <b>-?</b></p>
  89. <p style="margin-left:22%;">Show help.</p>
  90. <table width="100%" border="0" rules="none" frame="void"
  91. cellspacing="0" cellpadding="0">
  92. <tr valign="top" align="left">
  93. <td width="11%"></td>
  94. <td width="3%">
  95. <p><b>-V</b></p></td>
  96. <td width="8%"></td>
  97. <td width="78%">
  98. <p>Displays extended version information. This includes the
  99. compiler used to build vlmcs, the intended platform and
  100. flags (compile time options) to build vlmcs. If you have the
  101. source code of vlmcsd, you can type <b>make help</b> (or
  102. <b>gmake help</b> on systems that do not use the GNU version
  103. of <b>make</b>(1) by default) to see the meaning of those
  104. flags.</p> </td></tr>
  105. <tr valign="top" align="left">
  106. <td width="11%"></td>
  107. <td width="3%">
  108. <p><b>-x</b></p></td>
  109. <td width="8%"></td>
  110. <td width="78%">
  111. <p>Show valid <i>application</i>s that can be used with
  112. <b>-l</b>.</p> </td></tr>
  113. <tr valign="top" align="left">
  114. <td width="11%"></td>
  115. <td width="3%">
  116. <p><b>-e</b></p></td>
  117. <td width="8%"></td>
  118. <td width="78%">
  119. <p>Show some examples how to use vlmcs correctly.</p></td></tr>
  120. <tr valign="top" align="left">
  121. <td width="11%"></td>
  122. <td width="3%">
  123. <p><b>-v</b></p></td>
  124. <td width="8%"></td>
  125. <td width="78%">
  126. <p>Be verbose. Instead of just displaying the returned ePID
  127. and the HwId (protocol v6 only) vlmcsd shows all details of
  128. the query and the response.</p></td></tr>
  129. </table>
  130. <p style="margin-left:11%;"><b>-l</b>
  131. <i>application</i></p>
  132. <p style="margin-left:22%;">Request activation for a
  133. specific <i>application</i>. Valid applications can be
  134. displayed by using <b>-x</b>. The default <i>application</i>
  135. is <i>Windows Vista Business</i>. The list of available
  136. applications is not complete. You may supply GUIDs with
  137. <b>-a</b>, <b>-k</b> and <b>-s</b> to specify applications
  138. that are not listed with <b>-x</b>. The <b>-l</b> option is
  139. used as a shortcut for the most common applications.</p>
  140. <p style="margin-left:11%;"><b>-4</b>, <b>-5</b> and
  141. <b>-6</b></p>
  142. <p style="margin-left:22%;">Force version 4, 5 or 6 of the
  143. KMS protocol. The default is to select a suitable version
  144. according to the <i>application</i> selected. Plese note
  145. that some products (e.g. Office 2013) may use different
  146. protocols with different versions of Windows.</p>
  147. <table width="100%" border="0" rules="none" frame="void"
  148. cellspacing="0" cellpadding="0">
  149. <tr valign="top" align="left">
  150. <td width="11%"></td>
  151. <td width="3%">
  152. <p><b>-m</b></p></td>
  153. <td width="8%"></td>
  154. <td width="78%">
  155. <p>Let the client pretend to be a virtual machine. Early
  156. versions of Microsoft&rsquo;s KMS server did not increase
  157. the client count if the request came from a virtual machine.
  158. Newer versions ignore this flag.</p></td></tr>
  159. <tr valign="top" align="left">
  160. <td width="11%"></td>
  161. <td width="3%">
  162. <p><b>-d</b></p></td>
  163. <td width="8%"></td>
  164. <td width="78%">
  165. <p>Use NetBIOS names instead of DNS names. By default
  166. vlmcsd generates some random DNS names for each request. If
  167. you prefer NetBIOS names, you may use <b>-d</b>. A real
  168. Microsoft activation client uses DNS names or NetBIOS
  169. depending on the client name configuration. KMS servers
  170. treat the workstation name as a comment that affects logging
  171. only. Clients will be identified by a GUID that can be
  172. specified using <b>-c</b>. <b>-d</b> has no effect if you
  173. also specify <b>-w</b>.</p></td></tr>
  174. </table>
  175. <p style="margin-left:11%;"><b>-a</b>
  176. <i>application-guid</i></p>
  177. <p style="margin-left:22%;">Send requests with a specific
  178. <i>application-guid</i>. There are currently only three
  179. known valid <i>application-guid</i>s:</p>
  180. <p style="margin-left:22%; margin-top: 1em">55c92734-d682-4d71-983e-d6ec3f16059f
  181. (Windows) <br>
  182. 59a52881-a989-479d-af46-f275c6370663 (Office 2010) <br>
  183. 0ff1ce15-a989-479d-af46-f275c6370663 (Office 2013)</p>
  184. <p style="margin-left:22%; margin-top: 1em">A Microsoft KMS
  185. server uses these GUIDs to have seperate counters for the
  186. already activated clients. A client that does not contact
  187. the KMS server within 30 days will be deleted from the
  188. database. Emulated KMS servers are always fully charged.</p>
  189. <p style="margin-left:11%;"><b>-k</b> <i>kms-guid</i></p>
  190. <p style="margin-left:22%;">Send requests with a specific
  191. <i>kms-guid</i>. A Microsoft KMS server uses these GUIDs as
  192. a product id to decide whether to grant activation or not. A
  193. list of current <i>kms-guid</i>s can be found in kms.c
  194. (table KmsIdList). Emulated KMS servers grant activation
  195. unconditionally and do not check the <i>kms-guid</i>.</p>
  196. <p style="margin-left:11%;"><b>-s</b>
  197. <i>activation-guid</i></p>
  198. <p style="margin-left:22%;">The <i>activation-guid</i>
  199. defines the actual product, e.g. &quot;Windows 8.1
  200. Professional WMC KMSCLIENT edition&quot;. A
  201. <i>activation-guid</i> maps 1:1 to a product key. However,
  202. neither a Microsoft KMS server nor emulated servers check
  203. this id. The <i>activation-guid</i> is useful in logging to
  204. get a specific product description like &quot;Windows 8.1
  205. Professional WMC&quot;. A list of current
  206. <i>activation-guid</i>s can be found in kms.c (table
  207. ExtendedProductList).</p>
  208. <p style="margin-left:11%;"><b>-n</b> <i>requests</i></p>
  209. <p style="margin-left:22%;">Send <i>requests</i> requests
  210. to the server. The default is to send at least one request
  211. and enough subsequent requests that the server is fully
  212. charged afterwards for the <i>application&minus;guid</i> you
  213. selected (explicitly with <b>-a</b> or implicitly by using
  214. <b>-l</b>).</p>
  215. <table width="100%" border="0" rules="none" frame="void"
  216. cellspacing="0" cellpadding="0">
  217. <tr valign="top" align="left">
  218. <td width="11%"></td>
  219. <td width="3%">
  220. <p><b>-T</b></p></td>
  221. <td width="8%"></td>
  222. <td width="78%">
  223. <p>Causes to use a new TCP connection for each request if
  224. multiple requests are sent with vlmcsd. This is useful when
  225. you want to test an emulated KMS server whether it suffers
  226. from memory leaks. To test for memory leaks use <b>-n</b>
  227. with a large number of requests (&gt; 100000) and then test
  228. twice (with and without <b>-T</b>). This option may become
  229. neccessary for future versions of Microsoft&rsquo;s KMS
  230. server because multiple requests with different
  231. <i>clients-guid</i>s for the same <i>kms-id-guid</i> are
  232. impossible in a real KMS szenario over the same TCP
  233. connection.</p> </td></tr>
  234. </table>
  235. <p style="margin-left:11%;"><b>-c</b>
  236. <i>client-machine-guid</i></p>
  237. <p style="margin-left:22%;">Normally vlmcs generates a
  238. random <i>client-machine-guid</i> for each request. By using
  239. this option you can specify a fixed
  240. <i>client-machine-guid</i> This causes a Microsoft KMS not
  241. to increment its client count because it receives multiple
  242. requests for the same client. Thus do not use <b>-c</b> if
  243. you want to charge a real KMS server.</p>
  244. <p style="margin-left:11%;"><b>-o</b>
  245. <i>previous-client-machine-guid</i></p>
  246. <p style="margin-left:22%;">If the
  247. <i>client-machine-guid</i> changes for some reason, the real
  248. KMS client stores a <i>previous-client-machine-guid</i>
  249. which is sent to the KMS server. This happens rarely and
  250. usually 00000000-0000-0000-0000-000000000000 is used. You
  251. can use <b>-o</b> to specify a different
  252. <i>previous-client-machine-guid</i>.</p>
  253. <p style="margin-left:11%;"><b>-G</b> <i>filename</i></p>
  254. <p style="margin-left:22%;">Grabs ePIDs and HWIDs from a
  255. KMS server and writes the information to <i>filename</i> in
  256. format suitable to be used as a configuration file (aka ini
  257. file) for <b>vlmcsd</b>(8). This is especially useful if you
  258. have access to a genuine KMS server and want to use the same
  259. data with <b>vlmcsd</b>(8).</p>
  260. <p style="margin-left:22%; margin-top: 1em">If
  261. <i>filename</i> does not exist, it will be created. If you
  262. specify an existing <i>filename</i>, it will be updated to
  263. use the information received from the remote KMS server and
  264. a backup <i>filename</i>~ will be created.</p>
  265. <p style="margin-left:22%; margin-top: 1em"><b>-G</b>
  266. cannot be used with <b>-l</b>, <b>-4</b>, <b>-5</b>,
  267. <b>-6</b>, <b>-a</b>, <b>-s</b>, <b>-k</b>, <b>-r</b> and
  268. <b>-n</b></p>
  269. <p style="margin-left:11%;"><b>-w</b>
  270. <i>workstation-name</i></p>
  271. <p style="margin-left:22%;">Send requests with a specific
  272. <i>workstation-name</i>. This disables the random generator
  273. for the workstation name. Since it is a comment only, this
  274. option does not have much effect.</p>
  275. <p style="margin-left:11%;"><b>-r</b>
  276. <i>required-client-count</i></p>
  277. <p style="margin-left:22%;">Also known as the &quot;N count
  278. policy&quot;. Tells the KMS server that successful
  279. activation requires <i>required-client-count</i> clients.
  280. The default is the <i>required-client-count</i> that the
  281. product would need if the request was a real activation. A
  282. Microsoft KMS server counts clients up to the double amount
  283. what was specified with <b>-r</b>. This option can be used
  284. to &quot;overcharge&quot; a Microsoft KMS server.</p>
  285. <p style="margin-left:11%;"><b>&minus;t&nbsp;</b><i>status</i></p>
  286. <p style="margin-left:22%;">Reports a specific license
  287. status to the KMS server. <i>status</i> is a number that can
  288. be from 0 to 6. 0=unlicensed, 1=licensed, 2=OOB grace, 3=OOT
  289. grace, 4=Non-genuinue grace, 5=notification, 6=extended
  290. grace. Refer to
  291. <a href="http://technet.microsoft.com/en-us/library/ff686879.aspx#_Toc257201371">TechNet</a>
  292. for more information. A Microsoft KMS server collects this
  293. information for statistics only.</p>
  294. <p style="margin-left:11%;"><b>-g</b>
  295. <i>binding-expiration</i></p>
  296. <p style="margin-left:22%;">This tells the KMS server how
  297. long a client will stay in its current license status. This
  298. can be the remaining OOB time (the grace peroid that is
  299. granted between installation of a product and when
  300. activation is actuall required) or the remaining time when
  301. KMS activation must be renewed. <i>binding-expiration</i> is
  302. specified in minutes. A Microsoft KMS server apparantly does
  303. not use this information.</p>
  304. <p style="margin-left:11%;"><b>-i</b>
  305. <i>protocol-version</i></p>
  306. <p style="margin-left:22%;">Force the use of Internet
  307. protocol <i>protocol-version</i>. Allowed values are 4
  308. (IPv4) and 6 (IPv6). This option is useful only if you
  309. specfiy a <i>hostname</i> and not an <i>ip-address</i> on
  310. the command line.</p>
  311. <table width="100%" border="0" rules="none" frame="void"
  312. cellspacing="0" cellpadding="0">
  313. <tr valign="top" align="left">
  314. <td width="11%"></td>
  315. <td width="3%">
  316. <p><b>-p</b></p></td>
  317. <td width="8%"></td>
  318. <td width="78%">
  319. <p>Do not set the RPC_PF_MULTIPLEX flag in the RPC bind
  320. request. This can be used to test if the KMS server uses the
  321. same setting of this flag in the RPC bind respone. Some KMS
  322. emulators don&rsquo;t set this correctly.</p></td></tr>
  323. </table>
  324. <p style="margin-left:11%;"><b>-N0</b> and <b>-N1</b></p>
  325. <p style="margin-left:22%;">Disables (<b>-N0</b>) or
  326. enables (<b>-N1</b>) the NDR64 transfer syntax in the RPC
  327. protocol. Disable NDR64 only in case of problems. If NDR64
  328. is not used, vlmcs cannot detect many RPC protocol errors in
  329. KMS emulators. If you want to test whether a KMS emulator
  330. fully supports NDR64, you must use the <b>-n</b> option to
  331. send at least two requests. This is because
  332. Microsoft&rsquo;s client always sends the first request
  333. using NDR32 syntax and subsequent requests using NDR64
  334. syntax.</p>
  335. <p style="margin-left:11%;"><b>-B0</b> and <b>-B1</b></p>
  336. <p style="margin-left:22%;">Disables (<b>-B0</b>) or
  337. enables (<b>-B1</b>) bind time feature negotiation (BTFN) in
  338. the RPC protocol. Disable BTFN only in case of problems. If
  339. BTFN is not used, vlmcs cannot detect many RPC protocol
  340. errors in KMS emulators.</p>
  341. <p style="margin-left:11%; margin-top: 1em">Options that do
  342. not require an argument can be specified together with a
  343. single dash, e.g. vlmcs -6mvT. If you specify an option more
  344. than once, the last occurence will be in effect.</p>
  345. <h2>FILES
  346. <a name="FILES"></a>
  347. </h2>
  348. <p style="margin-left:11%; margin-top: 1em"><b>vlmcsd.ini</b>(5)</p>
  349. <h2>EXAMPLES
  350. <a name="EXAMPLES"></a>
  351. </h2>
  352. <p style="margin-left:11%; margin-top: 1em"><b>vlmcs
  353. kms.example.com</b></p>
  354. <p style="margin-left:22%;">Request activation for Windows
  355. Vista using v4 protocol from kms.example.com. Repeat
  356. activation requests until server is charged for all Windows
  357. products.</p>
  358. <p style="margin-left:11%;"><b>vlmcs -</b></p>
  359. <p style="margin-left:22%;">Request activation for Windows
  360. Vista using v4 protocol from a KMS server that is published
  361. via DNS for the current domain.</p>
  362. <p style="margin-left:11%;"><b>vlmcs .example.com</b></p>
  363. <p style="margin-left:22%;">Request activation for Windows
  364. Vista using v4 protocol from a KMS server that is published
  365. via DNS for domain example.com.</p>
  366. <p style="margin-left:11%;"><b>vlmcs -6 -l Office2013 -v -n
  367. 1</b></p>
  368. <p style="margin-left:22%;">Request exactly one activation
  369. for Office2013 using v6 protocol from localhost. Display
  370. verbose results.</p>
  371. <p style="margin-left:11%;"><b>vlmcs kms.bigcompany.com -G
  372. /etc/vlmcsd.ini</b></p>
  373. <p style="margin-left:22%;">Get ePIDs and HWIDs from
  374. kms.bigcompany.com and create/update /etc/vlmcsd.ini
  375. accordingly.</p>
  376. <h2>BUGS
  377. <a name="BUGS"></a>
  378. </h2>
  379. <p style="margin-left:11%; margin-top: 1em">Some platforms
  380. (e.g. Solaris) may have a <b>man</b>(7) system that does not
  381. handle URLs. URLs may be omitted in the documentation on
  382. those platforms. Cygwin, Linux, FreeBSD and Mac OS X are
  383. known to work correctly.</p>
  384. <h2>AUTHOR
  385. <a name="AUTHOR"></a>
  386. </h2>
  387. <p style="margin-left:11%; margin-top: 1em">Written by
  388. Hotbird64</p>
  389. <h2>CREDITS
  390. <a name="CREDITS"></a>
  391. </h2>
  392. <p style="margin-left:11%; margin-top: 1em">Thanks to
  393. CODYQX4, crony12, deagles, DougQaid, eIcn, mikmik38,
  394. nosferati87, qad, Ratiborus, vityan666, ...</p>
  395. <h2>SEE ALSO
  396. <a name="SEE ALSO"></a>
  397. </h2>
  398. <p style="margin-left:11%; margin-top: 1em"><b>vlmcsd</b>(7),
  399. <b>vlmcsd</b>(8), <b>vlmcsdmulti</b>(1)</p>
  400. <hr>
  401. </body>
  402. </html>