mac2pwd.1.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  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. mac2pwd.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='mac2pw.1.html' title=' mac2pw.1 '>PREV</a>]
  17. [<a href='toolkit.html' title=' Index '>HOME</a>]
  18. [<a href='mdioblock.1.html' title=' mdioblock.1 '>NEXT</a>]
  19. </div>
  20. <pre>
  21. mac2pwd(1) Qualcomm Atheros Open Powerline Toolkit mac2pwd(1)
  22. NAME
  23. mac2pwd - Qualcomm Atheros Ethernet Device Password Generator
  24. SYNOPSIS
  25. mac2pwd [options] file [file] [ ... ]
  26. DESCRIPTION
  27. Read Ethernet MAC addresses from one or more files and print a unique password for each address. Program output is suit‐
  28. able as input to the Qualcomm Atheros HomePlug AV Production Test System or may be used in custom production systems.
  29. Input addresses can appear in any order and need not be consecutive. Computed passwords consist of upper case letters
  30. and digits with optional group separators. Output consists of address/password pairs in text format.
  31. This program may be used to generate passwords for large numbers of non-consecutive MAC addresses that occur in unspeci‐
  32. fied order. It complements program mac2pw which generates passwords for consecutive MAC addresses over a given range.
  33. Options exist to modify the password algorithm, password length and character bunching.
  34. This program is part of the Qualcomm Atheros Powerline Toolkit. See the AMP man page for an overview and installation
  35. instructions.
  36. CAVEATS
  37. Atheros provides this program as a simple means of generating unique and apparently random device passwords for a large
  38. volume of Ethernet devices. Two different password algorithms are implemented but neither one is required for HomePlug
  39. AV compliance. Vendors are free to use other methods to generate their own device passwords and are encouraged to do so.
  40. Random Method
  41. Generate random passwords based on system entropy. A different set of passwords is generated for a given address
  42. range with each program execution. There is no correlation at between addresses and passwords. This method
  43. secure but requires care when programming and labelling devices at the factory. It may be necessary to maintain a
  44. database if regular device maintenance and firmware upgrade are needed.
  45. Device Method
  46. Generate apparently random passwords based on device address. The same set of passwords will be generated for a
  47. given address range with each program execution. This method may be appropriate on system where regular mainte‐
  48. nance and firmware updates are required. This method is not secure because device addresses can be determined
  49. using a variety of network management programs. Anyone having access to this program, or the algorithm, could
  50. compute the device password and gain access to device features reserved for privileged users. This program does
  51. provide features to mitigate the risks of using this method.
  52. OPTIONS
  53. -b bunch
  54. The password bunching factor. Passwords consists of count uppercase letters and digits optionally displayed in
  55. groups separated by hyphens. The bunching factor specifies the number of letters and digits in each group. When
  56. bunch is 0 or greater than count, bunching is suppressed. Separating hyphens increase overall password length.
  57. The minimum is 0 and the maximum is 255. The default is 0 which suppresses bunching.
  58. -e Compute passwords based on host system entropy. Passwords consist of uppercase letters [A-Z] optionally grouped
  59. using option -b. This method produces a non-repeatable set of unique passwords over a given address range. This
  60. method is the default and is secure.
  61. -l count
  62. The number of letters in the password string. The default count is 16. Overall password length is the sum of
  63. count plus the number of delimiters implied by bunch.
  64. -m Compute passwords based on target device address. Passwords consist of uppercase letters [A-Z]. This method pro‐
  65. duces a repeatable set of unique passwords over a given address range. This method is not secure.
  66. -q Quiet mode. Exclude the MAC address on output. This option can be used in scripts to return the password associ‐
  67. ated with a given MAC address.
  68. -v Verbose mode. Prefix each line with a '0' column. The Atheros Production Test System (PTS) uses the first column
  69. of a password database file to indicate which addresses and passwords have already been used.
  70. -?,--help
  71. Print program help information on stdout. This option takes precedence over other options on the command line.
  72. -!,--version
  73. Print program version information on stdout. This option takes precedence over other options on the command line.
  74. Use this option when sending screen dumps to Atheros Technical Support so that they know exactly which version of
  75. the Linux Toolkit you are using.
  76. ARGUMENTS
  77. file The name of a file that contains Ethernet address strings. Individual address strings consist of 12 consecutive
  78. hexadecimal digits. Addresses are seperated by whites space. This allows multiple addresses on a line. There is
  79. no line length limit. Punctuation is not permitted; however, a hash ('#') or semicolon (';') in any column starts
  80. comment text that continues to the end of that line. An error in any input file terminates the program with an
  81. error message.
  82. EXAMPLES
  83. An example input file, mac.txt, is shown below. Comment lines document the file. Blank lines are permitted and multiple
  84. addresses appear on one line. This file contains 5 MAC addresses. Punctuation is not permitted within a MAC address.
  85. # =================================
  86. # unused MAC addresses;
  87. # ---------------------------------
  88. 00b052000004
  89. 00b052BABE33
  90. 00b052BABE34 00b052CAFE05
  91. 00b052CAFE01
  92. Another example input file, mac2.txt, appears below. A hash ('#') and a semi-colon (';') are used to hide selected
  93. addresses. Hidden addresses are ignored because they are comments. This file contains 7 addresses but only 5 will be
  94. recognized.
  95. 002b88ffff00
  96. 002b887fff00
  97. # 002b88660066
  98. 002b88660067
  99. 002b88660063 ; 002b8800FFFF
  100. 002b88660066
  101. The next example reads the two files shown above and prints 10 addresses, 5 from each file, with associated passwords.
  102. Output appears on the console but may be piped to a file or another process.
  103. # mac2pwd mac.txt more.mac
  104. 00B052000004 8C69GFCXATB8RA9SF52LK79UD
  105. 00B052BABE33 MMKGF5SP5DP23KHY27BSLRV2A
  106. 00B052BABE34 CVBG6QHJFQVVCYSACPAPBZT79
  107. 00B052CAFE05 MCXUABFPC33CPMXWFWYX5N2KC
  108. 00B052CAFE01 5GHUWD9YDEL8TCAGEZJ8ESRCC
  109. 002B88FFFF00 CJCW4VB2HZ37DAK2XE9CGCWZZ
  110. 002B887FFF00 W2W9AQU5TE8K4ZLH7R3K5C6X4
  111. 002B88660067 2LWQ5LGBUCDFDYSZYQ2XZSPJ2
  112. 002B88660063 62NKW6RM87UBZG34KH87AXXEY
  113. 002B88660066 KNQAGGFH9G9XQGR96GR4HK4SS
  114. The next example does the the two files, as before but shortens password length and groups password character. Overall
  115. password length includes password characters plus delimiters. Option -l sets password length to 16 characters. Option
  116. -b sets bunching to 4 characters.
  117. # mac2pwd mac.txt more.mac -l 16 -b 4
  118. 00B052000004 R5YH-E6XG-TECA-24R8
  119. 00B052BABE33 WBQJ-77PC-VQTX-63Q5
  120. 00B052BABE34 4M2X-GVUY-6PYH-H5V7
  121. 00B052CAFE05 Z8JA-A2MV-49JF-WJZZ
  122. 00B052CAFE01 5L7Z-ZXZP-NUFS-RBKE
  123. 002B88FFFF00 3RAD-HQPN-92G2-HJKA
  124. 002B887FFF00 7YD7-9NJJ-39S7-8ZGF
  125. 002B88660067 HZ6K-SBG5-ZL8S-K2DK
  126. 002B88660063 MX5K-W7PF-T823-38MJ
  127. 002B88660066 PDXL-84QH-GKUN-KVEE
  128. The next example is the same but prints output suitable for input to the Qualcomm Atheros PTS because option -v is speci‐
  129. fied. The output format is similar to that produced by the Qualcomm Atheros DB Builder Utility for Windows.
  130. # mac2pwd -v mac.txt more.mac
  131. 0 00B052000004 ZZYBQP7EAZKBNWWCKKC4HX3AW
  132. 0 00B052BABE33 LG7XD97UPSBUHA6F7CU28P3WW
  133. 0 00B052BABE34 8BF288CZN4NTBUFSJAQLUYYNF
  134. 0 00B052CAFE05 RTK4XHMWKWWD654QRBQGW5UNH
  135. 0 00B052CAFE01 EE5YLRXD2EGKS6TSGZZK7ES74
  136. 0 002B88FFFF00 BRYJDWYGP79GFWZN8ZU8ZQ3GN
  137. 0 002B887FFF00 KEULLGC6PYFAM3FE89TYTSMP6
  138. 0 002B88660067 H4STMXB67QR22J39MAZQRHHA5
  139. 0 002B88660063 HKF32QX2GCZKGR3XYTMQCWTRB
  140. 0 002B88660066 STKF28Q2JXYEMAQZVQSFVTKFB
  141. The next example omits the MAC address. This may used to generate random passwords for other purposes.
  142. # mac2pwd -q mac.txt more.mac
  143. W6QXL6KDY4SZLL538CAMWSH8N
  144. PMYLFYMNA5TKYU2S6LBJS6QCR
  145. B2P58XQ2L4JSNR6SXEZ6BSVSN
  146. GYG6MS8NFEVH8EFBPD483WWCJ
  147. 44TQ6FYCVSGP9GLS6YSYRTWFQ
  148. GUGPUJ6284X22ZU4RKXAX5T65
  149. LGSV6L9Y9398DFY3Z2TUFBCAJ
  150. H95A2FYV3LNT7BBFSLCLHXEH8
  151. JXSY7TMKK6CP3LDWNE3M74G87
  152. V4TEAG2ZX3J3NJHPAJMMQTQNT
  153. DISCLAIMER
  154. Qualcomm Atheros reserves the right to modify program names, functionality, input format or output format in future tool‐
  155. kit releases without any obligation to notify or compensate toolkit users.
  156. SEE ALSO
  157. hpavkey(1), hpavkeys(1), keys(1), mac2pw(1), rkey(1)
  158. CREDITS
  159. Charles Maier &lt;cmaier@qca.qualcomm.com&gt;
  160. Pouyan Sepehrdad &lt;pouyans@qti.qualcomm.com&gt;
  161. Ning Shang &lt;nshang@qti.qualcomm.com&gt;
  162. open-plc-utils-0.0.3 Mar 2014 mac2pwd(1)
  163. </pre>
  164. <div class='footerlink'>
  165. [<a href='mac2pw.1.html' title=' mac2pw.1 '>PREV</a>]
  166. [<a href='toolkit.html' title=' Index '>HOME</a>]
  167. [<a href='mdioblock.1.html' title=' mdioblock.1 '>NEXT</a>]
  168. </div>
  169. </body>
  170. </html>