vlmcs.1.html 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515
  1. <!-- Creator : groff version 1.22.3 -->
  2. <!-- CreationDate: Tue Aug 25 00:13:50 2015 -->
  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. or 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>-x</b></p></td>
  96. <td width="8%"></td>
  97. <td width="78%">
  98. <p>Show valid <i>application</i>s that can be used with
  99. <b>-l</b>.</p> </td></tr>
  100. <tr valign="top" align="left">
  101. <td width="11%"></td>
  102. <td width="3%">
  103. <p><b>-e</b></p></td>
  104. <td width="8%"></td>
  105. <td width="78%">
  106. <p>Show some examples how to use vlmcs correctly.</p></td></tr>
  107. <tr valign="top" align="left">
  108. <td width="11%"></td>
  109. <td width="3%">
  110. <p><b>-v</b></p></td>
  111. <td width="8%"></td>
  112. <td width="78%">
  113. <p>Be verbose. Instead of just displaying the returned ePID
  114. and the HwId (protocol v6 only) vlmcsd shows all details of
  115. the query and the response.</p></td></tr>
  116. </table>
  117. <p style="margin-left:11%;"><b>-l</b>
  118. <i>application</i></p>
  119. <p style="margin-left:22%;">Request activation for a
  120. specific <i>application</i>. Valid applications can be
  121. displayed by using <b>-x</b>. The default <i>application</i>
  122. is <i>Windows Vista Business</i>. The list of available
  123. applications is not complete. You may supply GUIDs with
  124. <b>-a</b>, <b>-k</b> and <b>-s</b> to specify applications
  125. that are not listed with <b>-x</b>. The <b>-l</b> option is
  126. used as a shortcut for the most common applications.</p>
  127. <p style="margin-left:11%;"><b>-4</b>, <b>-5</b> and
  128. <b>-6</b></p>
  129. <p style="margin-left:22%;">Force version 4, 5 or 6 of the
  130. KMS protocol. The default is to select a suitable version
  131. according to the <i>application</i> selected. Plese note
  132. that some products (e.g. Office 2013) may use different
  133. protocols with different versions of Windows.</p>
  134. <table width="100%" border="0" rules="none" frame="void"
  135. cellspacing="0" cellpadding="0">
  136. <tr valign="top" align="left">
  137. <td width="11%"></td>
  138. <td width="3%">
  139. <p><b>-m</b></p></td>
  140. <td width="8%"></td>
  141. <td width="78%">
  142. <p>Let the client pretend to be a virtual machine. Early
  143. versions of Microsoft&rsquo;s KMS server did not increase
  144. the client count if the request came from a virtual machine.
  145. Newer versions ignore this flag.</p></td></tr>
  146. <tr valign="top" align="left">
  147. <td width="11%"></td>
  148. <td width="3%">
  149. <p><b>-d</b></p></td>
  150. <td width="8%"></td>
  151. <td width="78%">
  152. <p>Use NetBIOS names instead of DNS names. By default
  153. vlmcsd generates some random DNS names for each request. If
  154. you prefer NetBIOS names, you may use <b>-d</b>. A real
  155. Microsoft activation client uses DNS names or NetBIOS
  156. depending on the client name configuration. KMS servers
  157. treat the workstation name as a comment that affects logging
  158. only. Clients will be identified by a GUID that can be
  159. specified using <b>-c</b>. <b>-d</b> has no effect if you
  160. also specify <b>-w</b>.</p></td></tr>
  161. </table>
  162. <p style="margin-left:11%;"><b>-a</b>
  163. <i>application-guid</i></p>
  164. <p style="margin-left:22%;">Send requests with a specific
  165. <i>application-guid</i>. There are currently only three
  166. known valid <i>application-guid</i>s:</p>
  167. <p style="margin-left:22%; margin-top: 1em">55c92734-d682-4d71-983e-d6ec3f16059f
  168. (Windows) <br>
  169. 59a52881-a989-479d-af46-f275c6370663 (Office 2010) <br>
  170. 0ff1ce15-a989-479d-af46-f275c6370663 (Office 2013)</p>
  171. <p style="margin-left:22%; margin-top: 1em">A Microsoft KMS
  172. server uses these GUIDs to have seperate counters for the
  173. already activated clients. A client that does not contact
  174. the KMS server within 30 days will be deleted from the
  175. database. Emulated KMS servers are always fully charged.</p>
  176. <p style="margin-left:11%;"><b>-k</b> <i>kms-guid</i></p>
  177. <p style="margin-left:22%;">Send requests with a specific
  178. <i>kms-guid</i>. A Microsoft KMS server uses these GUIDs as
  179. a product id to decide whether to grant activation or not. A
  180. list of current <i>kms-guid</i>s can be found in kms.c
  181. (table KmsIdList). Emulated KMS servers grant activation
  182. unconditionally and do not check the <i>kms-guid</i>.</p>
  183. <p style="margin-left:11%;"><b>-s</b>
  184. <i>activation-guid</i></p>
  185. <p style="margin-left:22%;">The <i>activation-guid</i>
  186. defines the actual product, e.g. &quot;Windows 8.1
  187. Professional WMC KMSCLIENT edition&quot;. A
  188. <i>activation-guid</i> maps 1:1 to a product key. However,
  189. neither a Microsoft KMS server nor emulated servers check
  190. this id. The <i>activation-guid</i> is useful in logging to
  191. get a specific product description like &quot;Windows 8.1
  192. Professional WMC&quot;. A list of current
  193. <i>activation-guid</i>s can be found in kms.c (table
  194. ExtendedProductList).</p>
  195. <p style="margin-left:11%;"><b>-n</b> <i>requests</i></p>
  196. <p style="margin-left:22%;">Send <i>requests</i> requests
  197. to the server. The default is to send at least one request
  198. and enough subsequent requests that the server is fully
  199. charged afterwards for the <i>application&minus;guid</i> you
  200. selected (explicitly with <b>-a</b> or implicitly by using
  201. <b>-l</b>).</p>
  202. <table width="100%" border="0" rules="none" frame="void"
  203. cellspacing="0" cellpadding="0">
  204. <tr valign="top" align="left">
  205. <td width="11%"></td>
  206. <td width="3%">
  207. <p><b>-T</b></p></td>
  208. <td width="8%"></td>
  209. <td width="78%">
  210. <p>Causes to use a new TCP connection for each request if
  211. multiple requests are sent with vlmcsd. This is useful when
  212. you want to test an emulated KMS server whether it suffers
  213. from memory leaks. To test for memory leaks use <b>-n</b>
  214. with a large number of requests (&gt; 100000) and then test
  215. twice (with and without <b>-T</b>). This option may become
  216. neccessary for future versions of Microsoft&rsquo;s KMS
  217. server because multiple requests with different
  218. <i>clients-guid</i>s for the same <i>kms-id-guid</i> are
  219. impossible in a real KMS szenario over the same TCP
  220. connection.</p> </td></tr>
  221. </table>
  222. <p style="margin-left:11%;"><b>-c</b>
  223. <i>client-machine-guid</i></p>
  224. <p style="margin-left:22%;">Normally vlmcs generates a
  225. random <i>client-machine-guid</i> for each request. By using
  226. this option you can specify a fixed
  227. <i>client-machine-guid</i> This causes a Microsoft KMS not
  228. to increment its client count because it receives multiple
  229. requests for the same client. Thus do not use <b>-c</b> if
  230. you want to charge a real KMS server.</p>
  231. <p style="margin-left:11%;"><b>-o</b>
  232. <i>previous-client-machine-guid</i></p>
  233. <p style="margin-left:22%;">If the
  234. <i>client-machine-guid</i> changes for some reason, the real
  235. KMS client stores a <i>previous-client-machine-guid</i>
  236. which is sent to the KMS server. This happens rarely and
  237. usually 00000000-0000-0000-0000-000000000000 is used. You
  238. can use <b>-o</b> to specify a different
  239. <i>previous-client-machine-guid</i>.</p>
  240. <p style="margin-left:11%;"><b>-G</b> <i>filename</i></p>
  241. <p style="margin-left:22%;">Grabs ePIDs and HWIDs from a
  242. KMS server and writes the information to <i>filename</i> in
  243. format suitable to be used as a configuration file (aka ini
  244. file) for <b>vlmcsd</b>(8). This is especially useful if you
  245. have access to a genuine KMS server and want to use the same
  246. data with <b>vlmcsd</b>(8).</p>
  247. <p style="margin-left:22%; margin-top: 1em">If
  248. <i>filename</i> does not exist, it will be created. If you
  249. specify an existing <i>filename</i>, it will be updated to
  250. use the information received from the remote KMS server and
  251. a backup <i>filename</i>~ will be created.</p>
  252. <p style="margin-left:22%; margin-top: 1em"><b>-G</b>
  253. cannot be used with <b>-l</b>, <b>-4</b>, <b>-5</b>,
  254. <b>-6</b>, <b>-a</b>, <b>-s</b>, <b>-k</b>, <b>-r</b> and
  255. <b>-n</b></p>
  256. <p style="margin-left:11%;"><b>-w</b>
  257. <i>workstation-name</i></p>
  258. <p style="margin-left:22%;">Send requests with a specific
  259. <i>workstation-name</i>. This disables the random generator
  260. for the workstation name. Since it is a comment only, this
  261. option does not have much effect.</p>
  262. <p style="margin-left:11%;"><b>-r</b>
  263. <i>required-client-count</i></p>
  264. <p style="margin-left:22%;">Also known as the &quot;N count
  265. policy&quot;. Tells the KMS server that successful
  266. activation requires <i>required-client-count</i> clients.
  267. The default is the <i>required-client-count</i> that the
  268. product would need if the request was a real activation. A
  269. Microsoft KMS server counts clients up to the double amount
  270. what was specified with <b>-r</b>. This option can be used
  271. to &quot;overcharge&quot; a Microsoft KMS server.</p>
  272. <p style="margin-left:11%;"><b>&minus;t&nbsp;</b><i>status</i></p>
  273. <p style="margin-left:22%;">Reports a specific license
  274. status to the KMS server. <i>status</i> is a number that can
  275. be from 0 to 6. 0=unlicensed, 1=licensed, 2=OOB grace, 3=OOT
  276. grace, 4=Non-genuinue grace, 5=notification, 6=extended
  277. grace. Refer to
  278. <a href="http://technet.microsoft.com/en-us/library/ff686879.aspx#_Toc257201371">TechNet</a>
  279. for more information. A Microsoft KMS server collects this
  280. information for statistics only.</p>
  281. <p style="margin-left:11%;"><b>-g</b>
  282. <i>binding-expiration</i></p>
  283. <p style="margin-left:22%;">This tells the KMS server how
  284. long a client will stay in its current license status. This
  285. can be the remaining OOB time (the grace peroid that is
  286. granted between installation of a product and when
  287. activation is actuall required) or the remaining time when
  288. KMS activation must be renewed. <i>binding-expiration</i> is
  289. specified in minutes. A Microsoft KMS server apparantly does
  290. not use this information.</p>
  291. <p style="margin-left:11%;"><b>-i</b>
  292. <i>protocol-version</i></p>
  293. <p style="margin-left:22%;">Force the use of Internet
  294. protocol <i>protocol-version</i>. Allowed values are 4
  295. (IPv4) and 6 (IPv6). This option is useful only if you
  296. specfiy a <i>hostname</i> and not an <i>ip-address</i> on
  297. the command line.</p>
  298. <table width="100%" border="0" rules="none" frame="void"
  299. cellspacing="0" cellpadding="0">
  300. <tr valign="top" align="left">
  301. <td width="11%"></td>
  302. <td width="3%">
  303. <p><b>-p</b></p></td>
  304. <td width="8%"></td>
  305. <td width="78%">
  306. <p>Do not set the RPC_PF_MULTIPLEX flag in the RPC bind
  307. request. This can be used to test if the KMS server uses the
  308. same setting of this flag in the RPC bind respone. Some KMS
  309. emulators don&rsquo;t set this correctly.</p></td></tr>
  310. </table>
  311. <p style="margin-left:11%;"><b>-N0</b> and <b>-N1</b></p>
  312. <p style="margin-left:22%;">Disables (<b>-N0</b>) or
  313. enables (<b>-N1</b>) the NDR64 transfer syntax in the RPC
  314. protocol. Disable NDR64 only in case of problems. If NDR64
  315. is not used, vlmcs cannot detect many RPC protocol errors in
  316. KMS emulators. If you want to test whether a KMS emulator
  317. fully supports NDR64, you must use the <b>-n</b> option to
  318. send at least two requests. This is because
  319. Microsoft&rsquo;s client always sends the first request
  320. using NDR32 syntax and subsequent requests using NDR64
  321. syntax.</p>
  322. <p style="margin-left:11%;"><b>-B0</b> and <b>-B1</b></p>
  323. <p style="margin-left:22%;">Disables (<b>-B0</b>) or
  324. enables (<b>-B1</b>) bind time feature negotiation (BTFN) in
  325. the RPC protocol. Disable BTFN only in case of problems. If
  326. BTFN is not used, vlmcs cannot detect many RPC protocol
  327. errors in KMS emulators.</p>
  328. <p style="margin-left:11%; margin-top: 1em">Options that do
  329. not require an argument can be specified together with a
  330. single dash, e.g. vlmcs -6mvT. If you specify an option more
  331. than once, the last occurence will be in effect.</p>
  332. <h2>FILES
  333. <a name="FILES"></a>
  334. </h2>
  335. <p style="margin-left:11%; margin-top: 1em"><b>vlmcsd.ini</b>(5)</p>
  336. <h2>EXAMPLES
  337. <a name="EXAMPLES"></a>
  338. </h2>
  339. <p style="margin-left:11%; margin-top: 1em"><b>vlmcs
  340. kms.example.com</b></p>
  341. <p style="margin-left:22%;">Request activation for Windows
  342. Vista using v4 protocol from kms.example.com. Repeat
  343. activation requests until server is charged for all Windows
  344. products.</p>
  345. <p style="margin-left:11%;"><b>vlmcs -</b></p>
  346. <p style="margin-left:22%;">Request activation for Windows
  347. Vista using v4 protocol from a KMS server that is published
  348. via DNS for the current domain.</p>
  349. <p style="margin-left:11%;"><b>vlmcs .example.com</b></p>
  350. <p style="margin-left:22%;">Request activation for Windows
  351. Vista using v4 protocol from a KMS server that is published
  352. via DNS for domain example.com.</p>
  353. <p style="margin-left:11%;"><b>vlmcs -6 -l Office2013 -v -n
  354. 1</b></p>
  355. <p style="margin-left:22%;">Request exactly one activation
  356. for Office2013 using v6 protocol from localhost. Display
  357. verbose results.</p>
  358. <p style="margin-left:11%;"><b>vlmcs kms.bigcompany.com -G
  359. /etc/vlmcsd.ini</b></p>
  360. <p style="margin-left:22%;">Get ePIDs and HWIDs from
  361. kms.bigcompany.com and create/update /etc/vlmcsd.ini
  362. accordingly.</p>
  363. <h2>BUGS
  364. <a name="BUGS"></a>
  365. </h2>
  366. <p style="margin-left:11%; margin-top: 1em">Some platforms
  367. (e.g. Solaris) may have a <b>man</b>(7) system that does not
  368. handle URLs. URLs may be omitted in the documentation on
  369. those platforms. Cygwin, Linux, FreeBSD and Mac OS X are
  370. known to work correctly.</p>
  371. <h2>AUTHOR
  372. <a name="AUTHOR"></a>
  373. </h2>
  374. <p style="margin-left:11%; margin-top: 1em">Written by
  375. Hotbird64</p>
  376. <h2>CREDITS
  377. <a name="CREDITS"></a>
  378. </h2>
  379. <p style="margin-left:11%; margin-top: 1em">Thanks to
  380. CODYQX4, crony12, deagles, DougQaid, eIcn, mikmik38,
  381. nosferati87, qad, Ratiborus, vityan666, ...</p>
  382. <h2>SEE ALSO
  383. <a name="SEE ALSO"></a>
  384. </h2>
  385. <p style="margin-left:11%; margin-top: 1em"><b>vlmcsd</b>(7),
  386. <b>vlmcsd</b>(8), <b>vlmcsdmulti</b>(1)</p>
  387. <hr>
  388. </body>
  389. </html>