当前位置:网站首页>油猴hook小脚本
油猴hook小脚本
2022-08-01 19:35:00 【consult one's pillow】
油猴hook小脚本
hook cookie
// ==UserScript==
// @name hook 第九题 cookie m
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://match.yuanrenxue.com/match/9
// @icon https://www.google.com/s2/favicons?sz=64&domain=yuanrenxue.com
// @grant none
// @run-at document-start
// ==/UserScript==
(function() {
'use strict';
var bk_cookie = document.cookie
Object.defineProperty(document, 'cookie', {
get: function() {
return bk_cookie;
},
set: function(value) {
if (value.indexOf('m') != -1){
console.log(value,'设置 m')
debugger;
}
bk_cookie = value
},
});
})();
hook widow
// ==UserScript==
// @name hook window.o
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://match.yuanrenxue.com/match/6
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none
// @run-at document-start
// ==/UserScript==
(function() {
var my_o = window.o
Object.defineProperty(window,'o',{
set: function(val){
my_o = 1
},
get:function(){
console.log(my_o)
return my_o
}
})
})();
虚拟机无限debugger
// ==UserScript==
// @name 虚拟机无限debugger
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://match.yuanrenxue.com/match/9
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none
// @run-at document-start
// ==/UserScript==
(function() {
Function.prototype.constructor_hook = Function.prototype.constructor
Function.prototype.constructor = function(x){
if (x === "debugger"){
console.log('虚拟机无限debugger')
return {
}
}
return Function.prototype.constructor_hook(x)
}
})();
边栏推荐
猜你喜欢

GZIPOutputStream 类源码分析
如何看待腾讯云数据库负责人林晓斌借了一个亿炒股?

MLX90640 红外热成像仪测温模块开发笔记(完整篇)

MySQL中超键、主键及候选键的区别是什么

从普通进阶成优秀的测试/开发程序员,一路过关斩将

MySQL你到底都加了什么锁?

Screen: GFF, OGS, Oncell, Incell of full lamination process

57:第五章:开发admin管理服务:10:开发【从MongoDB的GridFS中,获取文件,接口】;(从GridFS中,获取文件的SOP)(不使用MongoDB的服务,可以排除其自动加载类)

shell脚本专题(07):文件由cfs到bos

Pytorch模型训练实用教程学习笔记:一、数据加载和transforms方法总结
随机推荐
为你的“架构”安排定期体检吧!
即时通讯开发移动端弱网络优化方法总结
10 个 PHP 代码安全漏洞扫描程序
easyUI中datagrid中的formatter里面向后台发送请求获取数据
智能硬件开发怎么做?机智云全套自助式开发工具助力高效开发
Website construction process
XSS靶场中级绕过
modbus总线模块DAM-8082
【木棉花】#夏日挑战赛# 鸿蒙小游戏项目——数独Sudoku(3)
mysql解压版简洁式本地配置方式
Creo5.0 rough hexagon is how to draw
明日盛会|ApacheCon Asia 2022 Pulsar 技术议题一览
【周赛复盘】LeetCode第304场单周赛
From ordinary advanced to excellent test/development programmer, all the way through
开源视界 | StreamNative 盛宇帆:和浪漫的人一起做最浪漫的事
openresty 动态黑白名单
30天刷题计划(五)
cf:D. Magical Array【数学直觉 + 前缀和的和】
Win11如何删除升级包?Win11删除升级包的方法
Redis启动时提示Creating Server TCP listening socket *:6379: bind: No error