Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Looks like it does not work with newer versions (>= 20.6) #5

Open
mandelcode opened this issue Apr 1, 2021 · 4 comments
Open

Looks like it does not work with newer versions (>= 20.6) #5

mandelcode opened this issue Apr 1, 2021 · 4 comments

Comments

@mandelcode
Copy link

Crashes or output wrong password. Same results with ShowMobaXterm.py and MobaXtermCipher.py

> python MobaXtermCipher.py dec -sysh DESKTOP-***** -sysu Mandel -h ******************* -u root MPTSF/UebiNHyJQb
¼�
> python ShowMobaXterm.py
-------------------Passwords--------------------
[*] Name:     mobauser@mobaserver
[*] Password: ÿx�

[*] Name:     ssh22:root@**************
[*] Password: ¼�

[*] Name:     ssh22:root@***************
[*] Password: ÿ;

Traceback (most recent call last):
  File "C:\Tools\ShowMobaXterm.py", line 229, in <module>
    ConnPassword = cipher.DecryptPassword(
  File "C:\Tools\ShowMobaXterm.py", line 120, in DecryptPassword
    raise ValueError('Invalid ciphertext.')
ValueError: Invalid ciphertext.
@spynccat
Copy link

spynccat commented Jun 7, 2021

same with ver. 20.3

@chernots
Copy link

same with ver 21.5

@garedrag
Copy link

same with ver 22.0

@shivahr
Copy link

shivahr commented May 20, 2023

Following worked for me for MobaXterm v21.0 (free edition): https://github.com/XMCyber/XMCredentialsDecryptor

I ran it on my Windows client (where MobaXterm is being used) and it automatically fetched entries from registry and decrypted them successfully.

Out of the box, the following line in tools\mobaxterm.py (@ line number 131) gave error (I guess due to change in my computer name) and I replaced "os.getlogin() + '@' + platform.node()" with value seen in Registry (Computer\HKEY_CURRENT_USER\Software\Mobatek\MobaXterm\M) and it worked successfully after that.

-                Value, ValueType = winreg.QueryValueEx(Key, os.getlogin() + '@' + platform.node())
+                Value, ValueType = winreg.QueryValueEx(Key, 'ShivaKumarHR@SHIVAHR-INSPIRO')

Reference:
https://www.xmcyber.com/blog/extracting-encrypted-credentials-from-common-tools-2/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants