#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    1
    Rep Power
    0

    Decrypting .cfg of a Well T-22P IP phone


    Hey,
    I have a configuration file of a Well SIP T-22P which is encrypted with 16byte AES. I even have the AES key. My question is simply how I would actually go about decrypting such file - is there any software that would enable me to do this?
  2. #2
  3. Contributed User
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jun 2005
    Posts
    4,387
    Rep Power
    1871
    Well if you're on Linux, you can do this (you may have to install the aespipe package).

    Code:
    $ echo "I know a secret" | aespipe > tmp
    Password: 
    $ odx tmp
    000000 13 77 e0 58 48 4c f8 6c 3b fc bf 22 bd 3a 2b c6  >.w.XHL.l;..".:+.<
    000010
    $ aespipe -d < tmp
    Password: 
    I know a secret
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    May 2007
    Posts
    765
    Rep Power
    929
    OpenSSL is usually there--can be a bit of a pain to sort out all the arguments though.

    Code:
    F:\temp>echo Test Message| openssl enc -aes-128-cbc -K 0123456789abcdeffedcba9876543210 -iv 00000000000000000000000000000000 >x.x
    
    F:\temp>xxd x.x
    0000000: 4339 24c6 0ed0 6245 7e8a b061 9517 14fc  C9$...bE~..a....
    
    F:\temp>cat x.x | openssl enc -d -aes-128-cbc -K 0123456789abcdeffedcba9876543210 -iv 00000000000000000000000000000000
    Test Message
    sub{*{$::{$_}}{CODE}==$_[0]&& print for(%:: )}->(\&Meh);

IMN logo majestic logo threadwatch logo seochat tools logo