好友
阅读权限25
听众
最后登录1970-1-1
|
可可网络验证licensekey算法分析
先说下,分享成果,同时希望大神能帮忙分析下最后的 二级密文 通过ras加密成 key的过程(二级密文长度1700多,rsa是1024的密钥一次只能加密117个字符,不知道怎么拆开加密的,忘了以前在哪见到有人说过补位0什么的)
可可就不多说了,授权用的域名授权,提供加密的LicenseKey。Licensekey一共经过了3次加密(可可自定义加密1,自定义加密2,rsa加密)
1、首先明文格式:用_ksreg_分开
这个可以启动可可范例后用ce去搜索你的域名就可以找到
_lHU3WqzJYErRbgFAp6Z0oh8sQaScjVNx1PvDfC9IKTueyMt7LkGid5n4Bwm2XO|_ksreg_3S8uYdKfABm9ye1gFp02OxEWU4kILRM7vtHhNlQGcbJnCXV5qrTDzjwZis6aoP_ksreg_http://v9.hphu.com:8080/kss_api/api.php_ksreg_http://v9b.hphu.com/kss_api/api.php_ksreg_16_ksreg_39999_ksreg_5d5316c8d65e289d2dce1f76a8fc33b9_ksreg_900_ksreg_4_ksreg_00003_ksreg_Bq2hxuVu87IH_ksreg_PS1RWk9nSkVhZmhtNy9ybzFiUmFVVEw4NG9kc1hzWDhrdGllYW5vWGloS1hiWFo1Rzg1dHlkdFN4TzdtZ1pjWGd3OGVyZlhkeXJnTzNCQWJiTWdaZFFxWkFkVnUrSXFjVEpm_ksreg_
2、明文经过 倒序和插入随机字符后变成一级密文 (看绿色和红色字)
_HgLePrTsXkB_FmJpNERVVjZFDXHSLrPUTnXVBkFFJkNWRxVFZFDZHaDdHWLTPiTJXWBQFCJNMzQTUnYJCXGeKkOhSlWZAyEVIGMOQ3UdYGCWGjKpO1SZWtAdEzITM4QNUFYdUkYlCHGdK1OgSzWRA1EoIFMWQiUhY1CSGoKlOGSWWvA5EWIYMlQlUGYdCrGhKDOWSzWhA1EcIkM9QGMNQ4UwYECVGVKFOmSUWiAFEzIbMyQ9UyYNBtFhJmNZRhVVZkDSHnL9PkTWXRB1FSJPN_RgVeZrDsHkD_HHLIP7T8XuBVFuJxNhR2Vq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_KSAfoHrugzZxwr7Zm2Bnf6Vay5OFCWQxJ6SWymfu9iss6r7UV6KZ62wa9mvpC2RW8iwDJ7NPhWQ5VkisJ4aaViRuA56A4VQgp5GP825W9zda_FBWrSln9yl615n0g7CgmIzL4k061jxYJ|OIq5dZJjNZwSrs97OW05_IyX3U1IZ04WjpKipL6KRF8WOZ87iZ6H9D8IzNu4kFoKiu_IsF62DtJpt0y4r6UzcY8y7Iy4B_9irP|SjI9Fou|jtF6VYgp2DTyWKuVrz5JKAZtrvAwdVNjmyK9ksIkzAKVIGuk6uS4s4pRjD4mVVIS28nwaFWsmEVJ2QISI1VVdzsspxf4l5_pHznMngppSbJ_jPPpSMV_gAN15v_8X4tMjY_miX_MiLuMV2uV6SK9iKF_MH_CHuW462D96WZ066smvhtyvW0oMUsR6tUyjQPM5HW9vJIqrMptdrNmjCzoVstRiIK6ibUpSpLyIfgurbU8kqNKS3x9|YFfMjA_nHt|SWZyMgUC4L04S2gSrfV8gDafIms8zMPjiCg_X3IrjsfVgBs6Hpxydrpm2Jn6|YPu4HfwjNZfWGIwWQxjrMTmsrpuv5UoWMpyML_yoIpSr|Ytc4IoWQaJc5PwIlTJlGsjiufgX0tVrsLM2x_hMa4tHZWm6cKtHHI1rMJ_ahZs5s44zntqvnuV78guixnMyiNSMrKwsPxpvqAwV1IhjOLVVPtr4VX6lL_1MsAovi_RMkf9F|ZtSwV821Zs67IwnTt|r_J47QUk2ZtygLUJvA0JaePqWOSf5aNwIef85ZIkIZAySb_r6DFo4t_srDuoX8ZkicuJlnNU6rutcuI|Iq0gMsuM6tLgXgpmz_Kon9prHka82hFKj1f_6uPhrqa_s9_g56PMF|u6gm
这个可以自己反编译可可9.3模块ec能找到解密函数,同时也可以参考php crypt95.php下的HY_DecryptDecrypt函数 都是网络传输解密算法
4、再经过rsa加密生成key:
BnQt8Jn8qJdXjd/ha8YQCrWkMbWxKqNg/CkK/ti4ghU0rusjku9Oh7V65ar8I3tOx8TtvQ/nyqICheJi2j77Y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HahpiFBI3fZKuxZH4BAtG2qx3Vs5VLPQOeMtWkG1Tb3bOD2H+2IU+LrcEBg6vSLlTQObsqILJCBH4ApzQQRr+mvcqZHWxdPDdMCicRpmKl60aCz2iAarGfTQArH0+7WCQx1MudbLMP8op7gkjNSJNw0KSE5EyuhXiqLwxlsPnb8bDz3bP7o/pvWJyTuPXtfjTFqRiAyuPTM7gEn9pCejcikZV1YHjy7t0vScnnjeRWX5LC1wAlPJADoQM/5qMhLQqrxjQaCJmydOP++RjOAziMlhWwjiiHRHauVM+7/kNhiT1tZ38zAULFXnSnvdBHOPLgLJzmAgAfRtfEdV6RzVVmC433vmSztnzL+7K/FkRtC9UgyIk/D3rN6FLyV785cZHYqGRf8lPH8FF8Q79LFkeBfwumMfzGdkzunKebpaiyfJez2XiKIJZ7MPmkRHBnb1kS24XzQAVsEXDpJAVejWQkr9qAVzl7lsMYQojHOgE2sxbCZiMpTyN/BCUxlXBjpnGAlP8A5Jv3rU529BN1e+yppw=
第4步暂时没弄清楚,可可的rsa是1024的密钥,一次最多支持加密117字节,而二级密文长度1275,Licensekey长度1708(固定),不知道要如何去拆分二级密文再分次加密后base64
从Licensekey长度固定而二级密文长度是不固定的可以知道,必定是二级密文经过补位达到一个长度再 加密 后所有key长度都是一致的,在此分享自己的分析过程,希望大神能够帮忙分析下rsa生成key的过程。
|
免费评分
-
查看全部评分
本帖被以下淘专辑推荐:
- · 学习及教程|主题: 1126, 订阅: 1118
- · 优秀逆向文|主题: 238, 订阅: 93
|
发帖前要善用【论坛搜索】功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。 |
|
|
|
|