modpib(1)

modpib πŸ’… β€” Qualcomm Atheros PIB File Editor

okay bestie, welcome to modpib, aka the Qualcomm Atheros PIB File Editor ✨ it's part of the Qualcomm Atheros Powerline Toolkit β€” peep the AMP man page for the whole overview + install tea 🫢


✨ SYNOPSIS ✨

modpib [options] filename

πŸŽ€ DESCRIPTION πŸŽ€

So what we're doing here is changing device identity parameters inside a PIB file, and then updating the checksum so everything stays valid πŸ’– the identity parameters are the MAC, the DAK, the NMK, and the Manufacturer, Network and User HFID. together they establish the device network identity β€” it's giving ✨who even am i✨ but for hardware.

This program is the safe way to edit identity parameters, and here's why that matters: only valid PIB files can be edited, and only the selected values get changed. plus, critical cross-parameter updates are applied automatically, so you can't accidentally leave things inconsistent. no cap πŸ™

it's part of the Qualcomm Atheros Powerline Toolkit, fr fr. see the AMP man page for an overview and installation instructions.


🌸 OPTIONS 🌸

  • -C mode β€” sets the Central Coordinator Selection mode. the permitted values for mode are 0=Auto, 1=Never, 2=Always, 3=UserAssigned and 4=Covert.
  • -D xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx β€” the new Device Access Key (DAK) πŸ‘‘ this key replaces the original DAK. keys are 16 hex octet strings, and octets may be separated by optional colons. the symbols none, key1 or key2 may be specified in place of a hexadecimal string, for convenience. use the program hpavkey to compute the DAK for a specific password, if you need it.
  • -L level β€” sets the security level. the security level is written into the PreferredNID. level 0 enables pushbutton pairing. level 1 disables it. the default security level is 0.
  • -M xx:xx:xx:xx:xx:xx β€” the new Media Access Control (MAC) address πŸ¦‹ this address replaces the original address, if specified. addresses are 6 hex octet strings, and octets may be separated by optional colons. Qualcomm Atheros powerline devices derive their MAC address from their PIB, and each device on a network must have a unique address. to facilitate the assignment of unique addresses, substituting the word "auto", "next" or "plus" will cause the original MAC address to be incremented before a new checksum is calculated. successive uses of this option will continue to increment the stored address. you can inspect the stored MAC address with chkpib -v pibfile.
  • -N xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx β€” the new Network Membership Key (NMK) πŸ”₯ this key replaces the original NMK, creates a new PreferredNID and clears the AVLNMembership bit. keys are 16 hex octets, and optionally the octets may be separated by colons. the symbol key1 or key2 can be specified in place of a hexadecimal string, for convenience. use the program hpavkey to compute the NMK from a specific password, if required.
  • -P filename β€” the specified file is loaded from disk and written into the prescaler section of the PIB. this file must be in the format used by the Qualcomm Atheros Windows Device Manager, which is a two column file, each column consisting of 8 ASCII alpha-numeric characters. the first column corresponds to the array index value (00000000 through 00001155, decimal), and the second column is the value stored at that position in the prescaler array (00000000 through 000000ff, hexadecimal). the two columns may be separated by any whitespace characters when using this tool. however, for full compatibility with the Windows Device Manager it is advised to use a single space between the columns. the '#' character may also be used at the start of a line to denote a comment.
  • -S string β€” the new manufacturing string. the maximum length is 63 characters.
  • -T string β€” the new network name string. the maximum length is 63 character.
  • -U string β€” the new username string. the maximum length is 63 characters.
  • -q β€” enable quiet mode. ngl this option has no effect at present πŸ’€ it's just vibing there.
  • -v β€” print PIB identity parameters on stdout after changes have been applied. this option helps verify that changes have been applied correctly. it can also be used, without changes, to merely inspect existing parameters. it's literally the vibe check for your PIB 🌈
  • -?,--help β€” print program help summary on stdout. this option takes precedence over other options on the command line. πŸ‘‘
  • -!,--version β€” print program version information on stdout. this option takes precedence over other options on the command line. use this option when sending screen dumps to Qualcomm Atheros Technical Support so that they know exactly which version of the Linux Toolkit you are using. 🫢

🧚 ARGUMENTS 🧚

  • filename β€” the name of the PIB file to be modified. no assumptions are made based on filename and no filename conventions are enforced. it's giving ✨no rules, just vibes✨

πŸ”‘ KEYS πŸ”‘

encryption keys are long, tedious to type and prone to error 😭 so for convenience, symbolic names may be used to specify the key for options -D and -N.

  • symbolic name "none" translates to zeros.
  • symbolic name "key1" translates to the HomePlug AV compliant key for pass phrase "HomePlugAV".
  • symbolic name "key2" translates to the HomePlug AV compliant key for pass phrase "HomePlugAV0123".

the actual key that is generated for key1 or key2 will differ depending on context. iykyk πŸ’…


⭐ EXAMPLES ⭐

first up: this one replaces the MAC address in pib file abc.pib and computes a new checksum. the input file is over-written. a command like this one can be used to establish the start MAC address when downloading a series of PIBs. πŸ¦‹

# modpib -M 00:b0:52:DA:DA:FF abc.pib

next: this example increments the MAC address in pib file abc.pib and computes a new checksum. the word auto, next or plus, in place of a MAC address, will increment the old address each time the command is executed. this command can be used to ensure that unique and consecutive MAC addresses are used each time a PIB is downloaded. ✨

# modpib -M auto abc.pib

then: this command updates pib file abc.pib with the DAK and NMK read from the device connected to eth0. in similar fashion, program rkey can be used to compute random key values from a keyfile. πŸ”₯

# modpib -D $(int6kid -Di eth0) -N $(rkey secret.key -M) abc.pib

and lastly: this example displays the current value of keys and strings stored in pib file abc.pib because option -v is present. this can be used to verify PIB identity settings before or after an edit. πŸ‘‘

# modpib -v abc.pib
        PIB 4-4 15560 bytes
        MAC 00:B0:52:00:00:01
        DAK 68:9F:07:4B:8B:02:75:A2:71:0B:0B:57:79:AD:16:30
     (HomePlugAV)
        NMK 50:D3:E4:93:3F:85:5B:70:40:78:4D:F8:15:AA:8D:B7
     (HomePlugAV)
        NID B0:F2:E6:95:66:6B:03
        NET Qualcomm Atheros Enabled Network
        MFG Qualcomm Atheros HomePlug AV Device
        USR Qualcomm Atheros Enabled Product
        CCo Auto
        MDU N/A

πŸ’€ DISCLAIMER πŸ’€

PIB file structure and content is proprietary to Qualcomm Atheros, Ocala FL USA. consequently, public information is not available. Qualcomm Atheros reserves the right to modify PIB file structure or content in future firmware releases without any obligation to notify or compensate users of this program.

bestie. hear me. it's proprietary, the docs aren't public, and they can change the format whenever they want without telling you or paying you. plan accordingly πŸ™ˆ

πŸ’œ SEE ALSO πŸ’œ

chkpib(7), chkpib2(7), getpib(7), modpib(1), pib2xml(1), pibcomp(1), pibdump(1), setpib(1), xml2pib(1)


🌟 CREDITS 🌟

  • Nathaniel Houghton
  • Charles Maier

open-plc-utils-0.0.3 πŸŽ€ November 2013 β€” that's the version and date bestie, and that's the whole page. slay, go edit some PIBs πŸ’–βœ¨πŸ¦‹