PRIMARY CATEGORY โ†’ MREMOTENG

Password decyption ๐Ÿ’ฅ โ†’ mRemoteNG Software

Affected Versions ๐Ÿšจ โ†’ 1.75 and newer


Description

This tool works in two ways, by decrypting the encrypted password provided in a base64 format or by extracting, from a supplied XML file (e.g. confCons.xml), the passwords it contains to decrypt them as well

It only works in 1.75 version or later, as the mRemoteNG sofware, from that version, changes the password storage method, using PBKDF2 to derive the symmetric key and AES-GCM to encrypt the password

After that, all the following elements are concatenated and the resulting string is base64-encoded

  • Salt used in PBKDF2
  • IV or nonce used in AES-GCM
  • Encrypted data
  • Tag generated by AES-GCM

Setup

python3 -m venv ./venv
source ./venv/bin/activate
pip install -r ./requirements.txt

Usage

Help Display
python3 mRemoteNG.py --help
Script Execution
python3 mRemoteNG.py [OPTS]

e.g.

File
python3 mRemoteNG.py --file confCons.xml # Default Master Key (mR3m)
python3 mRemoteNG.py --file confCons.xml --key '<CUSTOM_MASTER_KEY>'
Password
python3 mRemoteNG.py --password "<BASE64_STRING>" # Default Master Key (mR3m)
python3 mRemoteNG.py --password "BASE64_STRING" --key '<CUSTOM_MASTER_KEY>'

Zoom In


Code

Reference


References

Reference Iย ย ย ย โ€ขย ย ย ย Reference IIย ย ย ย โ€ขย ย ย ย Reference IIIย ย ย ย โ€ขย ย ย ย Reference IV