大网数据广告活动
服务器运维问答

Saved Kitty Password Extraction

· 52CE 我爱测

I am having a ubuntu server and forgot the root password. I could not find the pass in any documentation (My fault). Now I have another user which is in the sudo list but the password of that user is saved in kitty which I also d…

问题原文

原帖链接 · Toqeer · CC BY-SA 3.0

I am having a ubuntu server and forgot the root password. I could not find the pass in any documentation (My fault). Now I have another user which is in the sudo list but the password of that user is saved in kitty which I also dont remember, I can login with that but when I login and execute some admin commands with sudo its needs the password for that user which I can not see it. The question is how I can see that kitty password which is saved in hidden characters??

社区高分解答

原帖链接 · Anubioz · CC BY-SA 4.0

To recover your password, saved in KiTTY follow this simple steps:

  1. Load the session with the stored password into KiTTY
  2. Go to the Session -> Logging -> Session logging
  3. Enable logging for SSH packets and raw data
  4. Uncheck the Omit known passwords fields box
  5. Start the session, wait until it logs you in
  6. Close the KiTTY window
  7. Go to your KiTTY folder and open the log file
  8. Find the "Send automatic password" block to get your plain-text password.

It will look like this, where "YourPassword" in the password stored in KiTTY:

Event Log: Send automatic password
Outgoing packet #0x7, type 50 / 0x32 (SSH2_MSG_USERAUTH_REQUEST)
  00000000  00 00 00 04 72 6f 6f 74 00 00 00 0e 73 73 68 2d  ....root....ssh-
  00000010  63 6f 6e 6e 65 63 74 69 6f 6e 00 00 00 08 70 61  connection....pa
  00000020  73 73 77 6f 72 64 00 00 00 00 0c 59 6F 75 72 50  ssword.....YourP
  00000030  61 73 73 77 6F 72 64                             assword

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2013-06-19)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0 / CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。