Answer the question
In order to leave comments, you need to log in
How to parse the site bankrot.fedresurs.ru when there is no HTML there right away?
Hello, the task is to parse information from the site https://bankrot.fedresurs.ru/Messages.aspx?attempt=1
but the fact is that at the first request it does not give me the HTML page, but something happens on JS
writes set -cookie... Tell me
how you can get around this or win and get the coveted HTML page?
only in PHP language, because there are no other servers at the disposal,
I make a request via CURL and I always get this
<html>
<body>setting cookie...
<script type="text/javascript" src="/aes.min.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("21cdfcca194c84090a6245be8d6fd928"), b = toNumbers("0420670e09c2febaac26fce222a0bb8c"),
c = toNumbers("c30e6d026f96e9c4ee1b05c5d36b67a2"), now = new Date(), time = now.getTime();
time += 3600 * 1000;
now.setTime(time);
document.cookie = "bankrotcookie=" + toHex(slowAES.decrypt(c, 2, a, b)) + "; expires=" + now.toUTCString() + "; path=/";
location.href = "https://bankrot.fedresurs.ru/Messages.aspx?attempt=2";</script>
</body>
</html>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question