- Joined
- Nov 10, 2013
- Messages
- 678
I am attempting to decompile the code plug and extract some data from it -- Specifically Contact Lists -- I have no need to recompile at this time !
I am looking at using powershell and it's dot net tools. I can read the base XML code plug, but when I try and extract the base64 string I get garbage --
I know I must be missing a step but I am not sure which one from reading the various dated posts in this forum. Any pointers ? An I on the wrong track ?
========================================================================================
PS C:\Users\CPS> [xml]$plug= Get-Content "C:\Users\cps\Desktop\SL-7550D.ctb"
PS C:\Users\CPS> $plug
ARCHIVE
-------
ARCHIVE
PS C:\Users\CPS> $plug.archive
TYPE RADIO
---- -----
MALTA RADIO
PS C:\Users\CPS> $plug.archive.radio
VERSION ENCODING #text
------- -------- -----
1 Base64 l/Dc8hqWyM0e8o3qPJROl54QjxLFVFK2Y01p...
PS C:\Users\CPS> $data = [System.Text.Encoding]::ascii.GetString([System.Convert]::FromBase64String($plug.archive.radio.'#text'))
Results in a random character stream … and it does crash powershell if I try to display $data --
-------------------------------------------------------------------------------------------------------------------------------------------------
I am looking at using powershell and it's dot net tools. I can read the base XML code plug, but when I try and extract the base64 string I get garbage --
I know I must be missing a step but I am not sure which one from reading the various dated posts in this forum. Any pointers ? An I on the wrong track ?
========================================================================================
PS C:\Users\CPS> [xml]$plug= Get-Content "C:\Users\cps\Desktop\SL-7550D.ctb"
PS C:\Users\CPS> $plug
ARCHIVE
-------
ARCHIVE
PS C:\Users\CPS> $plug.archive
TYPE RADIO
---- -----
MALTA RADIO
PS C:\Users\CPS> $plug.archive.radio
VERSION ENCODING #text
------- -------- -----
1 Base64 l/Dc8hqWyM0e8o3qPJROl54QjxLFVFK2Y01p...
PS C:\Users\CPS> $data = [System.Text.Encoding]::ascii.GetString([System.Convert]::FromBase64String($plug.archive.radio.'#text'))
Results in a random character stream … and it does crash powershell if I try to display $data --
-------------------------------------------------------------------------------------------------------------------------------------------------