【发布时间】:2018-03-30 15:58:07
【问题描述】:
好吧,我的 php 文件包含简单的代码 <?php echo "hello there" ?>
每当我尝试使用 HttpURLConnection.getInputStream(); 读取文件时,它都会返回
<html>
<body>
<script type="text/javascript" src="/aes.js"></script>
<script>
function toNumbers(d) {
var e = [];
d.replace(/(..)/g, function(d) {
e.push(parseInt(d, 16))
});
return e
}
function toHex() {
for (var d = [], d = 1 == arguments.length && arguments[0].constructor == Array ? arguments[0] : arguments, e = "", f = 0; f < d.length; f++) e += (16 > d[f] ? "0" : "") + d[f].toString(16);
return e.toLowerCase()
}
var a = toNumbers("f655ba9d09a112d4968c63579db590b4"),
b = toNumbers("98344c2eee86c3994890592585b49f80"),
c = toNumbers("b1fd294057e960f23314aeedeca32e65");
document.cookie = "__test=" + toHex(slowAES.decrypt(c, 2, a, b)) + "; expires=Thu, 31-Dec-37 23:55:55 GMT; path=/";
location.href = "http://classreminder.rf.gd/test.php?i=1";
</script>
<noscript>This site requires Javascript to work, please enable Javascript in your browser or use a browser with Javascript support</noscript>
</body>
</html>
我想要的只是读取原始文件..只有“你好”..没有其他内容..怎么做?
【问题讨论】:
标签: php android httpurlconnection