当前位置:网站首页>油猴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)
}
})();
边栏推荐
- 面试必问的HashCode技术内幕
- Tencent Cloud Hosting Security x Lightweight Application Server | Powerful Joint Hosting Security Pratt & Whitney Version Released
- 腾讯云主机安全 x 轻量应用服务器|强强联合主机安全普惠版重磅发布
- Become a Contributor in 30 minutes | How to participate in OpenHarmony's open source contributions in multiple ways?
- C#/VB.NET 从PDF中提取表格
- 力扣刷题之求两数之和
- 重保特辑|筑牢第一道防线,云防火墙攻防演练最佳实践
- shell脚本专题(07):文件由cfs到bos
- Win11如何开启剪贴板自动复制?Win11开启剪贴板自动复制的方法
- CMake教程——Leeds_Garden
猜你喜欢
#yyds dry goods inventory# Interview must brush TOP101: the last k nodes in the linked list
PROE/Croe如何编辑已完成的草图,让其再次进入草绘状态
Combining two ordered arrays
ThreadLocal讲义
MySQL中超键、主键及候选键的区别是什么
图文详述Eureka的缓存机制/三级缓存
Creo5.0草绘如何绘制正六边形
Pytorch模型训练实用教程学习笔记:一、数据加载和transforms方法总结
Win11如何删除升级包?Win11删除升级包的方法
How PROE/Croe edits a completed sketch and brings it back to sketching state
随机推荐
【webrtc】sigslot : 继承has_slot 及相关流程和逻辑
58: Chapter 5: Develop admin management services: 11: Develop [admin face login, interface]; (not measured) (using Ali AI face recognition) (demonstrated, using RestTemplate to implement interface cal
Pytorch模型训练实用教程学习笔记:一、数据加载和transforms方法总结
Combining two ordered arrays
Redis启动时提示Creating Server TCP listening socket *:6379: bind: No error
From ordinary advanced to excellent test/development programmer, all the way through
To drive efficient upstream and downstream collaboration, how can cross-border B2B e-commerce platforms release the core value of the LED industry supply chain?
锐捷交换机基础配置
分享一个适用于MCU项目的代码框架
如何写一个vim插件?
Pytorch模型训练实用教程学习笔记:四、优化器与学习率调整
JS数组过滤
Gradle系列——Gradle文件操作,Gradle依赖(基于Gradle文档7.5)day3-1
数据库系统原理与应用教程(070)—— MySQL 练习题:操作题 101-109(十四):查询条件练习
Shell script topic (07): file from cfs to bos
nacos安装与配置
Win11如何开启剪贴板自动复制?Win11开启剪贴板自动复制的方法
GBase 8c中怎么查询数据库配置参数,例如datestyle。使用什么函数或者语法呢?
How to record and analyze your alchemy process - use notes of the visual artifact Wandb [1]
[Kapok] #Summer Challenge# Hongmeng mini game project - Sudoku (3)