当前位置:网站首页>油猴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)
}
})();
边栏推荐
- Greenplum Database Source Code Analysis - Analysis of Standby Master Operation Tools
- TestNG multiple xml for automated testing
- MySQL中超键、主键及候选键的区别是什么
- Greenplum数据库源码分析——Standby Master操作工具分析
- 随时随地写代码--基于Code-server部署自己的云开发环境
- 八百客、销售易、纷享销客各行其道
- Keras deep learning practice - traffic sign recognition
- Heavy cover special | build the first line of defense, cloud firewall offensive and defensive drills best practices
- 1个小时!从零制作一个! AI图片识别WEB应用!
- 不恰当Equatable协议==方法的实现对SwiftUI中@State修饰属性的影响
猜你喜欢

17、负载均衡

Library website construction source code sharing

Greenplum Database Source Code Analysis - Analysis of Standby Master Operation Tools

kubernetes-部署nfs存储类

BN BatchNorm + BatchNorm的替代新方法KNConvNets

nacos安装与配置

Mobile Zero of Likou Brush Questions

Win11如何开启剪贴板自动复制?Win11开启剪贴板自动复制的方法

DAO开发教程【WEB3.0】

使用常见问题解答软件的好处有哪些?
随机推荐
MLX90640 红外热成像仪测温模块开发笔记(完整篇)
What are the application advantages of SaaS management system?How to efficiently improve the digital and intelligent development level of food manufacturing industry?
Website construction process
使用常见问题解答软件的好处有哪些?
XSS range intermediate bypass
odoo coding conventions (programming conventions, coding guidelines)
18、分布式配置中心nacos
TestNG multiple xml for automated testing
Screenshot of Selenium in Remote
MLX90640 Infrared Thermal Imager Temperature Measurement Module Development Notes (Complete)
#yyds dry goods inventory# Interview must brush TOP101: the last k nodes in the linked list
OSPO 五阶段成熟度模型解析
GZIPOutputStream 类源码分析
win10,在proe/creo中鼠标中键不能放大缩小
What should I do if the Win11 campus network cannot be connected?Win11 can't connect to campus network solution
文库网站建设源码分享
modbus总线模块DAM-8082
regular expression
驱动上下游高效协同,跨境B2B电商平台如何释放LED产业供应链核心价值?
[Server data recovery] Data recovery case of offline multiple disks in mdisk group of server Raid5 array