最近在用python做模拟登陆,用chrome抓包时发现POST的密码是password:1B5B95637CF6C410992DFB9C47CEE916BA86A18F91AE2D64056882F530C78D2151E79B1382AC082911850C668D5E41B37F663267F14EFB54F76341D9AC13876EC0E1D98653139E336DD11154CB6440A942B77207DFA79943111D1AF3C3DE982B8B95ABABAC60F2389ABC9D2538B80A9F895238E1A3A4E8C18F8F77AD2609D4EC,请问下这是什么加密方式?如果我直接用明文写密码提交是不是无法实现模拟登陆?谢谢
登陆部分的网页源码如下:
<p class="login-wrap" >
<p class="login-inner">
<p class="loginBlock">
<p class="loginBlockFoot">
<script type="text/javascript">
var UrlPrefix = {
jsBasePath:"https://static.lufaxcdn.com/user",
layoutJsPath:"https://static.lufaxcdn.com",
lufaxHostUrl:"http://www.lu.com",
staticHostUrl:"https://static.lufaxcdn.com",
listHostUrl:"https://list.lu.com/list",
pointHostUrl:"https://lumi.lu.com/lumi",
myHostUrl:"https://my.lu.com/my",
mediaHostUrl:""
};
var StaticUrl = {
adw: "https://static.lufaxcdn.com/user/js/adw/adw.1cf86c77.js",
mvl: "https://static.lufaxcdn.com/user/js/mediav/mvl.cd761b52.js",
adv: "https://static.lufaxcdn.com/user/js/pinyou/adv.6d2f34a0.js",
mba: "https://static.lufaxcdn.com/user/js/mediav/mba.c84fa8ee.js",
mv: "https://static.lufaxcdn.com/user/js/mediav/mv.ceddbb5d.js",
fpass: "https://static.lufaxcdn.com/user/js/mediav/fpass.9d5baf31.js",
tk2014: "https://static.lufaxcdn.com/user/js/zyz/tk2014.94910afb.js"
}
</script>
<input id="current-page" type="hidden" value="login" />
<input id="errorMessageInfo" type="hidden" value="" />
<input type="hidden" id="publicKey" name="publicKey" value="BE24E372DC1B329633A6A014A7C02797915E3C363DD6EE119377BD645329B7E6446B4A71AC5F878EBC870C6D8BFD3C06B92E6C6E93390B34192A7A9E430800091761473FAC2CC0A68A828B2589A8CB729C19161E8E27F4C0F3CDE9701FAFE48D2B65947799072AFA6A3F2D7BDBEF8B6D7429C2D115A3E5F723467D57B3AC6967" />
<input type="hidden" id="rsaExponent" name="rsaExponent" value="10001" />
<input type="hidden" id="fromDomain" value="" />
<input type="hidden" id="status" value="" />
<input type="hidden" id="loginSwitchValue" />
<p class="loginBlockInner">
<p class="login-title">登录</p>
<p class="errorTips" style="overflow:auto;" id="errorMessage">
<i class="icon minusCircleIcon"></i>
<p class="errorContent">
</p>
</p>
<form class="form-horizontal" id="loginForm" method="post">
<input type="hidden" name="isTrust" id="isTrust" value="Y" />
<input type="hidden" id="password" name="password"/>
<input type="hidden" id="loginFlagValue" name="loginFlag"/>
<p class="control-group control-group-large">
<p class="controls">
<span class="input-wrap icon-wrap"><i class="input-icon user"> </i>
<input type="text" class="inputs" id="userNameLogin" data-placeholder="用户名/手机号" name="userName" tabindex="1" otype="button" otitle="用户名"/>
<i class="place-holder">
用户名/手机号
</i>
</span><span class="help-line"><a href="find-username-fillin">忘记用户名</a></span>
</p>
</p>
<p class="control-group control-group-large">
<p class="controls">
<span class="input-wrap icon-wrap"><i class="input-icon password"> </i>
<input type="password" class="inputs" id="pwd" name="pwd" tabindex="2"/></span><span class="help-line"><a href="find-pwd-fillin">忘记密码</a></span>
</p>
</p>
<p class="control-group J_validNumBox hidden control-group-large">
<p class="controls">
<span class="input-wrap icon-wrap input-small validate-input">
<i class="input-icon validate-code"> </i>
<input type="text" class="inputs validate J_validNum hidden ignore-input J_placeholder" id="validNum" placeholder="不区分大小写" data-placeholder="不区分大小写" name="validNum" maxlength="6" tabindex="3" otype="button" otitle="验证码"/>
<i class="icon validIcon "></i>
</span>
<span class="validateImg"><img id="validateImg" width="100" height="38"></span>
<span class="help-line"><a href="javascript:void(0);" id="changeCaptchaLink">换一张</a></span>
</p>
</p>
<p class="control-group agreementWrap">
<label class="control-label"></label>
<p class="controls clearfix">
<p class="checkAgreement">
<input type="checkbox" name="loginagree" checked="checked"/>
</p>
<p class="check_content">我已阅读并同意 <a class="inpidualAgreement" onclick="javascript:window.open('//www.lu.com/contract/inpidual-member-login.html','','menubar=no,toolbar=no,location=no,directories=no,scrollbars=yes,status=yes,resizable=yes,top=0,left=0,width='+(screen.availWidth-10)+',height='+(screen.availHeight-45));" otype="button" otitle="陆金所服务协议(个人会员版)">《陆金所服务协议(个人会员版)》</a><p>2015年10月22日更新</p></p>
</p>
</p>
<p class="control-group">
<label class="control-label"></label>
<p class="controls">
<a class="btns btn-xlarge loginSubmit" href="javascript:void(0);" id="loginBtn" tabindex="4" otype="button" otitle="登录"><span id="loginFlagnew">登 录</span></a>
</p>
</p>
Write an example for you:
Installation reference: http://www.waitalone.cn/selenium-phantomjs.html?utm_source=tuicool&utm_medium=referral