mac2pw.1.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. <?xml version='1.0' encoding='iso-8859-1'?>
  2. <!doctype html public '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
  3. <html xmlns='http://www.w3c.org/1999/xhtml' lang='en-us'>
  4. <head>
  5. <title>
  6. mac2pw.1
  7. </title>
  8. <meta http-equiv='content-type' content='text/html;iso-8859-1'/>
  9. <meta name='generator' content='motley-tools 1.9.4 13:40:33 Feb 18 2015'/>
  10. <meta name='author' content='cmaier@cmassoc.net'/>
  11. <meta name='robots' content='noindex,nofollow'/>
  12. <link href='toolkit.css' rel='stylesheet' type='text/css'/>
  13. </head>
  14. <body>
  15. <div class='headerlink'>
  16. [<a href='int6kwait.1.html' title=' int6kwait.1 '>PREV</a>]
  17. [<a href='toolkit.html' title=' Index '>HOME</a>]
  18. [<a href='mac2pwd.1.html' title=' mac2pwd.1 '>NEXT</a>]
  19. </div>
  20. <pre>
  21. mac2pw(1) Qualcomm Atheros Open Powerline Toolkit mac2pw(1)
  22. NAME
  23. mac2pw - Qualcomm Atheros Ethernet Device Password Generator
  24. SYNOPSIS
  25. mac2pw [options] address [address] [...]
  26. DESCRIPTION
  27. Print a range of consecutive Ethernet addresses and passwords on stdout such that each device has a unique password.
  28. Program output is suitable as input to the Qualcomm Atheros HomePlug AV Production Test System or may be used in custom
  29. production systems. A starting address and an address range are specified. Computed passwords consist of upper case
  30. letters and digits with optional group separators. Output consists of address/password pairs in text format.
  31. This program is designed to generate passwords for a large number of consecutive device addresses. It complements pro‐
  32. gram mac2pwd which generates passwords for non-consecutive device addresses occurring in unspecified order.
  33. This program is part of the Qualcomm Atheros Powerline Toolkit. See the AMP man page for an overview and installation
  34. instructions.
  35. CAVEATS
  36. Atheros provides this program as a simple means of generating unique device passwords for a large volume of Ethernet
  37. devices. Two different password algorithms are implemented but neither one is required for HomePlug AV compliance. Ven‐
  38. dors are free to use other methods to generate their own device passwords and are encouraged to do so.
  39. Random Method
  40. Generate passwords based on system entropy. A different set of passwords is generated for a given address range
  41. with each program execution. There is no correlation at between addresses and passwords. This method is secure
  42. but requires care when programming and labelling devices at the factory. It may be necessary to maintain a data‐
  43. base if regular device maintenance and firmware upgrade are needed.
  44. Device Method
  45. Generate passwords based on device address. The same set of passwords will be generated for a given address range
  46. with each program execution. This method may be appropriate on system where regular maintenance and firmware
  47. updates are required. This method is not secure because device addresses can be determined using a variety of
  48. network management programs. Anyone having access to this program, or the algorithm, could compute the device
  49. password and gain access to device features reserved for privileged users. This program does provide features to
  50. mitigate the risks of using this method.
  51. OPTIONS
  52. -b bunch
  53. The password bunching factor. Passwords consists of count uppercase letters and digits optionally displayed in
  54. groups separated by hyphens. The bunching factor specifies the number of letters and digits in each group. When
  55. bunch is 0 or greater than count, bunching is suppressed. Separating hyphens increase overall password length.
  56. The minimum is 0 and the maximum is 255. The default is 0 which suppresses bunching.
  57. -e Compute passwords based on host system entropy. Passwords consist of uppercase letters [A-Z] optionally grouped
  58. using option -b. This method produces a non-repeatable set of unique passwords over a given address range. This
  59. method is the default and is secure.
  60. -l count
  61. The number of letters in the password string. Overall password length is the sum of count plus the number of
  62. delimiters implied by bunch. The minimum is 12 and the maximum is 64. The default is 16.
  63. -m Compute passwords based on target device address. Passwords consist of uppercase letters [A-Z]. This method pro‐
  64. duces a repeatable set of unique passwords over a given address range. This method is not secure.
  65. -n number
  66. The number of consecutive addresses and passwords to compute and print. The minimum is 0 and the maximum is
  67. 1677215 or 0xFFFFFF. The default is 1. In addition, number cannot exceed the remaining available addresses in
  68. the vendor range. For example, given start address 00:B0:52:FF:FF:00, there are only 255 remaining addresses in
  69. the 00:B0:52 vendor range so it would be an error to request more than that number.
  70. -q Quiet mode. Exclude the device address on output. This option can be used in scripts to return the password
  71. associated with a given device address.
  72. -v Verbose mode. Prefix each line with a '0' column. The Atheros Production Test System (PTS) uses the first column
  73. of a password database file to indicate which addresses and passwords have already been used.
  74. -?,--help
  75. Print program help information on stdout. This option takes precedence over other options on the command line.
  76. -!,--version
  77. Print program version information on stdout. This option takes precedence over other options on the command line.
  78. Use this option when sending screen dumps to Atheros Technical Support so that they know exactly which version of
  79. the Linux Toolkit you are using.
  80. ARGUMENTS
  81. address
  82. The first Ethernet address expressed as 12 consecutive hexadecimal digits. Puncutation is not permitted. The
  83. final address of the range is computed by adding number to this address. This argument is required. There is no
  84. default address. If more than one device address is specified then an address/password series will be computed
  85. for each.
  86. EXAMPLES
  87. The following example prints the given device address and a random password string on stdout. The default password
  88. length is 25 characters long but the length can be changes using option -l.
  89. # mac2pw 00B052000001
  90. 00B052000001 5KAXCQFQNN4PPNC76XN2YUWMS
  91. Repeating the command will generate a new password string. This is the default behaviour and is the same as specifying
  92. option -e for &quot;entropy&quot;.
  93. # mac2pw 00B052000001
  94. 00B052000001 CA35TM5JLG4S6XBKSM3HSU6J4
  95. This example ommits the device address. Repeating the command produces a new password string.
  96. # mac2pw 00B052000001 -q
  97. 2LJ6P5JPEHE6V63GZWC337Q8E
  98. # mac2pw 00B052000001 -q
  99. 5Z8J7EGGL2HJDKMZ978W8V94W
  100. The next example shows how to generate passwords for three different devices with one command. The program generates a
  101. password for each device address specified on the command line.
  102. # mac2pw 00B052000001 00B05200BABE 00B05200DEAD
  103. 00B052000001 NJHWXEFRPVVW87C9J4BQEHYYE
  104. 00B05200BABE 5PT9Z64Z4TVRPEJCK8LR2XFMR
  105. 00B05200DEAD 7R2LJYGJB42329AS4NM29H8V4
  106. The next example prints 10 consecutive device addresses and random passwords on stdout. The starting device address is
  107. given and option -n specifies the number of addresses to print. Output can be piped to a file or another process.
  108. # mac2pw 00B052000001 -n 10
  109. 00B052000001 LEKWS42VX92YR3LLL6KBD5RCG
  110. 00B052000002 BHYKXG3VEVXNZ7CF2UERCU4G6
  111. 00B052000003 UBP87NFZMMW5WY8KK5GJFAWS3
  112. 00B052000004 CU7Y7JKFNASS6E4GQ3XL3HWGZ
  113. 00B052000005 9RN3WTXAQUXV8THZUB898ZGB3
  114. 00B052000006 HCXNPW2CM9JVHBJN2TZVRVDU6
  115. 00B052000007 DFD5QY5HATC5NFC5SF3AWL2PD
  116. 00B052000008 837GAN4HSG9U6TTRCPRXMG84T
  117. 00B052000009 HBLZHG32FSZKQ8TANGK5U8DS9
  118. 00B05200000A KEY9D3DW66HX68AWZRCD4VPD9
  119. The following example prints 10 consecutive device addresses and passwords but inserts a 0 at the start of each line to
  120. indicate that the address and password have not been used. The Qualcomm Atheros Production Test System (PTS) will set
  121. the 0 to 1 after it programs a device. This format is simlar to PTS DBBuilder Utility output.
  122. # mac2pw 00B052000006 -n 10 -v
  123. 0 00B052000006 VZNKWJUHAV2687NV6EJYUVQ4D
  124. 0 00B052000007 RENKKWRNFLU4ZNZ3P6K4SZ4PG
  125. 0 00B052000008 NEL6LL2V2YZAL2Q27E2DJ25BG
  126. 0 00B052000009 MYX2T5HM68T5JCK7YYJNDWH2P
  127. 0 00B05200000A 6UY4MPYP43GXSD39VLTNZCJEZ
  128. 0 00B05200000B MD47KPFZLSNL9XRLJTN3MKJ5N
  129. 0 00B05200000C BKVTVYE47LE4DKMUNQPPXR7HL
  130. 0 00B05200000D RBJ8DA5DB48TZUTAQXZ9CPFTM
  131. 0 00B05200000E HSK6N9ZGZPGV4T5YXST4DH3W8
  132. 0 00B05200000F BLW8QQ4JMEVSQJYHRPBDGG5RS
  133. The next example prints 10 consecutive device addresses and passwords, as before, but changes password length and charac‐
  134. ter bunching. Option -l specifies 12 characters and option -b specifies a bunching factor of three.
  135. # mac2pw 00B052000001 -n 10 -l 12 -b 3
  136. 00B052000001 S2J-V4B-NB6-37M
  137. 00B052000002 QEX-292-CYF-AVV
  138. 00B052000003 5VH-2KR-FYP-EVH
  139. 00B052000004 NYU-TPB-ZK3-6H6
  140. 00B052000005 MGX-GB7-P2P-42B
  141. 00B052000006 DDM-UD8-8NS-BZA
  142. 00B052000007 MLZ-86G-F4G-MS8
  143. 00B052000008 DTY-U8D-DT8-3G2
  144. 00B052000009 6BY-WVU-GB9-UEB
  145. 00B05200000A TX3-NUS-TKM-LVL
  146. The next example prints 10 consecutive device addresses and passwords, as before, but starts from a different device
  147. address. We specified option -m so that passwords are generated based on the MAC address. This ensures that the same
  148. password is generated each time for a given device address. We also specified password length or 16 characters using
  149. option -l and bunching factor of 4 with option -b.
  150. # mac2pw 00B052000001 -m -l 16 -b 4 -n 10
  151. 00B052000001 HBXY-FVHN-COML-MVLY
  152. 00B052000002 KYCC-KFFD-BHCN-CSUL
  153. 00B052000003 LQXF-TULV-IOQB-SKJI
  154. 00B052000004 SOBX-FRNC-EIHL-KBPW
  155. 00B052000005 XPAC-KESG-MDYY-OFPQ
  156. 00B052000006 SFTQ-DWEF-GHYC-VOWW
  157. 00B052000007 NNZQ-FCTW-VQLG-ESBV
  158. 00B052000008 SEPC-KYYS-JZEO-HHVT
  159. 00B052000009 OYPS-DSDV-QILZ-JYOV
  160. 00B05200000A HQYV-FIWJ-CJDZ-XPNZ
  161. The following example prints 10 consecutive device addresses and passwords, as before, but starts from a different device
  162. address. The address range here overlaps the range shown above but identical device addresses have identical passwords.
  163. Address based passwords may be of interest on large private networks requireing frequent firmware upgrades or device con‐
  164. figuration.
  165. # mac2pw 00B052000006 -m -l 16 -b 4 -n 10
  166. 00B052000006 SFTQ-DWEF-GHYC-VOWW
  167. 00B052000007 NNZQ-FCTW-VQLG-ESBV
  168. 00B052000008 SEPC-KYYS-JZEO-HHVT
  169. 00B052000009 OYPS-DSDV-QILZ-JYOV
  170. 00B05200000A HQYV-FIWJ-CJDZ-XPNZ
  171. 00B05200000B MQIG-KUKM-YQSJ-KPRM
  172. 00B05200000C VTLW-DAVK-JCMU-JQLU
  173. 00B05200000D PIQB-OITS-RFCY-PUVE
  174. 00B05200000E IWAV-KYJM-JBEM-GPMR
  175. 00B05200000F LQJY-DSEX-WDHE-FVMB
  176. DISCLAIMER
  177. Qualcomm Atheros reserves the right to modify program names, functionality, input format or output format in future tool‐
  178. kit releases without any obligation to notify or compensate toolkit users.
  179. SEE ALSO
  180. hpavkey(1), hpavkeys(1), keys(1), mac2pwd(1), rkey(1)
  181. CREDITS
  182. Charles Maier &lt;cmaier@qca.qualcomm.com&gt;
  183. Pouyan Sepehrdad &lt;pouyans@qti.qualcomm.com&gt;
  184. Ning Shang &lt;nshang@qti.qualcomm.com&gt;
  185. open-plc-utils-0.0.3 Mar 2014 mac2pw(1)
  186. </pre>
  187. <div class='footerlink'>
  188. [<a href='int6kwait.1.html' title=' int6kwait.1 '>PREV</a>]
  189. [<a href='toolkit.html' title=' Index '>HOME</a>]
  190. [<a href='mac2pwd.1.html' title=' mac2pwd.1 '>NEXT</a>]
  191. </div>
  192. </body>
  193. </html>