dongtang5229 2019-03-16 19:27
浏览 42

如何从iPhone发送页面源到PHP帖子

Copied a JavaScript 10 years ago from somewhere what I been using to track certain elements found on a website. The webpage where information is collected are required 2 factors authentication so passing information is complicated. Back in the days decided to just use a JavaScript to send the entirety webpage from the user device to a php page where php looks for certain elements and extract information. The JavaScript saved on the user smartphones and when logged in to the website the user select the bookmark. Very simple concept but stoped working yesterday.

The code based on this found in a article what is still working but the modified wersion not working anymore.

“Working fine to display page source”

javascript: (function() {
  var a = window.open('about:blank').document;
  a.write('Source of ' + location.href + '');
  a.close();
  var b = a.body.appendChild(a.createElement('pre'));
  b.style.overflow = 'auto';
  b.style.whiteSpace = 'pre-wrap';
  b.appendChild(a.createTextNode(document.documentElement.innerHTML))
})();

No longer working, getting error 413.

javascript: (function() {
  var d = window.open('about:blank'),
    a = d.document;
  a.write('<!DOCTYPE html><html><head><title>Loading Source</title></head><body></body></html>');
  a.close();
  var b = a.body.appendChild(a.createElement('form'));
  b.setAttribute('method', 'post');
  b.setAttribute('action', 'https://webpageextract/extraction.php/?uri=' + location.href);
  var c = b.appendChild(a.createElement('input'));
  c.setAttribute('type', 'hidden');
  c.setAttribute('name', 'DOM');
  c.setAttribute('value', encodeURIComponent(document.documentElement.innerHTML));
  b.submit()
})()
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 如何在scanpy上做差异基因和通路富集?
    • ¥20 关于#硬件工程#的问题,请各位专家解答!
    • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
    • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
    • ¥30 截图中的mathematics程序转换成matlab
    • ¥15 动力学代码报错,维度不匹配
    • ¥15 Power query添加列问题
    • ¥50 Kubernetes&Fission&Eleasticsearch
    • ¥15 報錯:Person is not mapped,如何解決?
    • ¥15 c++头文件不能识别CDialog