Password Algorithms: CiscoUnified Personal Communicator
密码算法:Cisco UnifiedPersonal Communicator应用
原文链接:Password Algorithms: Cisco Unified Personal Communicator
这个应用(Cisco UnifiedPersonal Communicator )需要你在线花费一些时间才能获取到。因为思科阻止了一些下载,除非你符合几下几点:
· Direct Customer
· Partner-Reseller
· Service ContractOwners
· CCIE Professional
· PICA Customer
即,
1,思科的直接用户
2, 服务合同业主
3, CCIE专业人员
4, PICA客户
我已经在我的Windows7工作站上安装了它,因此下面的测试结果可能因为机器不同而有些不同。
默认情况下,用户名与密码字段下面有一个复选框,它可以设置允许自动登录功能。
如果设置了允许自动登录,那么应用会在下面的路径中建立一个DAT文件。
C:\Users\dietrich\AppData\Local\Cisco\Unified Communications\ClientServices Framework\Config\Profile
文件的名字将会由UuidCreate这个函数生成,文件内容采取Base64进行编码。一旦解码,它会转换成和DPAPI相关的二进制大对象(BLOB)。
00000000 01 00 00 00 d0 8c 9d df 01 15 d1 11 8c 7a 00 c0 ....ð..¯..Ð..z.+
00000010 4f c2 97 eb 01 00 00 00 57 4a ac d0 b9 66 a5 4b O-.Ù....WJ¼ð¦fÑK
00000020 b3 47 a3 ea 37 85 af 43 00 00 00 00 32 00 00 00 ¦GúÛ7.»C....2...
00000030 61 00 75 00 74 00 68 00 5f 00 73 00 76 00 6e 00 a.u.t.h._.s.v.n.
00000040 2e 00 73 00 69 00 6d 00 70 00 6c 00 65 00 2e 00 ..s.i.m.p.l.e...
00000050 77 00 69 00 6e 00 63 00 72 00 79 00 70 00 74 00 w.i.n.c.r.y.p.t.
上面这个BLOB中特别有趣的是,它描叙了一个字符串,“auth_svn.simple.wincrypt”
我最初以为这可能是一些库的一部分,并且足够的相信它就是的。更确切来说,就是 LibSVN
下面,我使用相同的描述(密钥)来加密数据,这是我测试代码的一个片段
点击查看全部代码
/*-----------------------------------------------------------------------*/
/* Windows simple provider, encrypts the password on Win2k and later. */
/*-----------------------------------------------------------------------*/
/* The description string that's combined with unencrypted data by the
Windows CryptoAPI. Used during decryption to verify that the
encrypted data were valid. */
static const WCHAR description[] = L"auth_svn.simple.wincrypt";
/* Implementation of svn_auth__password_set_t that encrypts
the incoming password using the Windows CryptoAPI. */
static svn_boolean_t
windows_password_encrypter(apr_hash_t *creds,
const char *realmstring,
const char *username,
const char *in,
apr_hash_t *parameters,
svn_boolean_t non_interactive,
apr_pool_t *pool)
{
DATA_BLOB blobin;
DATA_BLOB blobout;
svn_boolean_t crypted;
blobin.cbData = strlen(in);
blobin.pbData = (BYTE*) in;
crypted = CryptProtectData(&blobin, description, NULL, NULL, NULL,
CRYPTPROTECT_UI_FORBIDDEN, &blobout);
if (crypted)
{
char *coded = apr_palloc(pool, apr_base64_encode_len(blobout.cbData));
apr_base64_encode(coded, (const char*)blobout.pbData, blobout.cbData);
crypted = svn_auth__simple_password_set(creds, realmstring, username,
coded, parameters,
non_interactive, pool);
LocalFree(blobout.pbData);
}
return crypted;
}
相比写一个解密工具,我倒倾向于在调试器中输出由CryptUnprotectData返回的内容。
这是一个包含了明文凭据的XML文件,这正是Personal Communicator 如何完成自动登录的。
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<UserCredentialDetails><profileName>Profile1</profileName>
<credentials><username>userid</username>
<password>password</password>
<credentialsType>PRESENCE_SERVICE</credentialsType>
<rememberMe>true</rememberMe>
</credentials>
</UserCredentialDetails>
当然,这其中可能存在多个配置文件,但是我并没有继续研究下去了。
运维网声明
1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网 享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com