FinalShell密码找回/FinalShell密码破解
FinalShell密码找回/FinalShell密码破解
- 一、找到目标文件夹
- 二、创建文本获得密码
一、找到目标文件夹
1.首先我们找到这个文件夹
C:\Users\你的用户名\AppData\Local\finalshell\conn
2.文件夹里有一个你需要找的那个服务器的json文件打开复制里面的password
二、创建文本获得密码
1.创建文本文档在里面写入
代码中的Pn1vK14tShb4G7ByTjidNtT/EoQ8ic6f需要换成你的password的值
import java.io.ByteArrayOutputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.math.BigInteger;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
import java.util.Base64;
import java.util.Random;import javax.crypto.Cipher;
import javax.crypto.SecretKey;
import javax.crypto.SecretKeyFactory;
import javax.crypto.spec.DESKeySpec;public class FinalShellDecodePass {public static void main(String[] args)throws Exception {System.out.println(decodePass("Pn1vK14tShb4G7ByTjidNtT/EoQ8ic6f"));}public static byte[] desDecode(byte[] data, byte[] head) throws Exception {SecureRandom sr = new SecureRandom();DESKeySpec dks = new DESKeySpec(head);SecretKeyFactory keyFactory = SecretKeyFactory.getInstance("DES");SecretKey securekey = keyFactory.generateSecret(dks);Cipher cipher = Cipher.getInstance("DES");cipher.init(2, securekey, sr);return cipher.doFinal(data);}public static String decodePass(String data) throws Exception {if (data == null) {return null;} else {String rs = "";byte[] buf = Base64.getDecoder().decode(data);byte[] head = new byte[8];System.arraycopy(buf, 0, head, 0, head.length);byte[] d = new byte[buf.length - head.length];System.arraycopy(buf, head.length, d, 0, d.length);byte[] bt = desDecode(d, ranDomKey(head));rs = new String(bt);return rs;}}static byte[] ranDomKey(byte[] head) {long ks = 3680984568597093857L / (long)(new Random((long)head[5])).nextInt(127);Random random = new Random(ks);int t = head[0];for(int i = 0; i < t; ++i) {random.nextLong();}long n = random.nextLong();Random r2 = new Random(n);long[] ld = new long[]{(long)head[4], r2.nextLong(), (long)head[7], (long)head[3], r2.nextLong(), (long)head[1], random.nextLong(), (long)head[2]};ByteArrayOutputStream bos = new ByteArrayOutputStream();DataOutputStream dos = new DataOutputStream(bos);long[] var15 = ld;int var14 = ld.length;for(int var13 = 0; var13 < var14; ++var13) {long l = var15[var13];try {dos.writeLong(l);} catch (IOException var18) {var18.printStackTrace();}}try {dos.close();} catch (IOException var17) {var17.printStackTrace();}byte[] keyData = bos.toByteArray();keyData = md5(keyData);return keyData;}public static byte[] md5(byte[] data) {String ret = null;byte[] res=null;try {MessageDigest m;m = MessageDigest.getInstance("MD5");m.update(data, 0, data.length);res=m.digest();ret = new BigInteger(1, res).toString(16);} catch (NoSuchAlgorithmException e) {e.printStackTrace();}return res;}
}
2.运行文件
3.获得你的密码
FinalShell密码找回/FinalShell密码破解相关推荐
- wordpress mysql 密码重置_WordPress忘记密码找回登录密码的四种行之有效的方法
WordPress忘记密码找回登录密码的四种行之有效的方法 PS:20170214更新,感谢SuperDoge同学提供的方法,登入phpMyAdmin后,先从左边选自己的数据库,然后点上面的 SQL ...
- 计算机考试qq用户找回密码,找回QQ密码_详细讲述QQ密码找回教程方法【图文】-太平洋电脑网PConline-太平洋电脑网...
QQ号码对于现在大多数人来说就如我们的手机号码一样重要,而QQ密码是QQ的重要保障.QQ密码忘记后,找回QQ密码就必不可少,那么QQ密码怎么找回?怎么快速找回呢?下面我就分享下QQ密码找回的几种高几率 ...
- mysql忘记密码找回root密码
忘记root密码的解决办法 1.初次安装mysql没设置密码的登录解决方法 [root@fay50 ~]# tar -xf mysql-5.7.17.tar [root@fay50 ~]# LANG= ...
- 密码找回功能可能存在的问题
瞌睡龙 · 2013/07/17 23:51 0x00 背景介绍 有人的地方就有江湖. 互联网中,有用户注册的地方,基本就会有密码找回的功能. 而密码找回功能里可能存在的漏洞,很多程序员都没有想到. ...
- FinalShell密码找回
FinalShell密码找回 一.找到目标文件夹 二.复制代码 三.通过第三方网页运行Java命令 1.首先我们找到finalshell下的这个文件夹 finalshell\conn 2.你需要找的你 ...
- Linux下修改root密码以及找回root密码的方法
linux的root享有至高无上的权力,一旦root密码忘记或者被盗,是一件非常头痛的事情,那么怎么样才能找回root的密码呢,接下来为大家分享下Linux下修改root密码以及找回的方法 以root ...
- 逻辑漏洞之密码找回总结
0x00 脑图# 0x01 用户凭证暴力破解# 验证码的位数:4 or 6,有效时间:1min - 15min 验证码爆破防护绕过 纯数字字典生成脚本 Copy import itertools wo ...
- PDF文件找回打开密码
PDF文件忘记了打开密码,想要打开PDF文件就需要解密PDF文件的打开密码,而解密PDF文件的打开密码,就是需要找回正确密码.使用奥凯丰 PDF解密大师找回文件的打开密码 [PDF解密大师]密码找回_ ...
- 逻辑漏洞之密码找回漏洞(semcms)
目录 什么是密码找回漏洞 一般流程 可能产生该漏洞的情况 脑洞图 1.用户凭证暴力破解 2.返回凭证 3.邮箱弱token 4.用户凭证有效性 5.重新绑定 6.服务器验证 7.用户身份验证 8.找回 ...
最新文章
- 如何写网站的robots.txt和meta name robots的配置
- 对LinqtoExcel的扩展 【数据有限性,逻辑有效性】
- python自动化从零开始_从零开始的自动化测试框架——Python篇
- 不出现用户帐户控制-让Win7的用户账户控制(UAC)放过信任的程序
- scrapy从入门到放弃 学习项目2
- 牛客多校1 - Infinite Tree(虚树+换根dp+树状数组)
- 再一次证明了普通的U盘和SD(TF)卡的不可靠
- mysql加锁语法_MySql 加锁问题
- 02024_自定义异常的练习
- 纯CSS实现table表头固定(自创备忘)
- C++ ini 文件处理类-简易版
- (转)拿到软银44亿美金巨资后,WeWork要这样布局中国市场
- E-96系列电阻值代号对照表
- L13过拟合欠拟合及其解决方案
- Testin发布众测平台 助开发者发现质量缺陷建立质量体系
- 历史上的三次房地产大泡沫
- 通俗地讲解目标检测中AP指标
- linux下根据关键字批量杀掉进程
- 无线互联网时代的中国移动(转)
- H3C telnet配置要点