Skip to content

Instantly share code, notes, and snippets.

View wuuconix's full-sized avatar
💭
Learning

wuuconix wuuconix

💭
Learning
View GitHub Profile
@wuuconix
wuuconix / seer.js
Last active August 25, 2024 05:08
去除属性克制表双属性
function isPure(attr) {
return ["火", "水", "草", "飞行", "电", "地面", "机械", "冰", "超能", "普通", "战斗", "暗影", "光", "龙", "神秘", "圣灵", "次元", "远古", "邪灵", "自然", "王", "混沌", "神灵", "轮回", "虫", "虚空"].includes(attr)
}
document.querySelectorAll(".box_rc ul li").forEach(e => {
if (!isPure(e.querySelector("a").textContent)) {
e.remove()
}
})
@wuuconix
wuuconix / ad.json
Last active June 20, 2024 08:58
For ddys_ad.js
{
"ddys.pro": [
"#kasjbgih > a > img",
"#afc_sidebar_2842 > a > img",
"#fkasjgf > span > a > img",
"#fkasjgf"
],
"greasyfork.org": [
"#script-show-info-ad"
]
@wuuconix
wuuconix / 1.txt
Created April 26, 2023 05:17
常见用户名
wangwei
wangfang
liwei
lina
zhangmin
lijing
wangjing
liuwei
wangxiuying
zhangli
@wuuconix
wuuconix / xss.html
Created April 20, 2023 05:21
xss四件套
<!DOCTYPE html>
<html lang="en">
<head>
<title>XSS Prove Using HTML</title>
</head>
<body>
<div class="flex">
<img src="https://gzw.sinaimg.cn/large/007YVyKcly1h2kl9rs23cj30ma0mlk48.jpg">
</div>
</body>
<!DOCTYPE html>
<html lang="en">
<head>
<title>XSS Prove Using HTML</title>
</head>
<body>
<div class="flex">
<img src="https://gzw.sinaimg.cn/large/007YVyKcly1h2kl9rs23cj30ma0mlk48.jpg">
</div>
</body>
<!DOCTYPE html>
<html lang="en">
<head>
<title>XSS Prove Using HTML</title>
</head>
<body>
<div class="flex">
<img src="https://gzw.sinaimg.cn/large/007YVyKcly1h2kl9rs23cj30ma0mlk48.jpg">
</div>
</body>
<html>
<head></head>
<body>
<something:script xmlns:something="http://www.w3.org/1999/xhtml">alert("xss proved using xml")</something:script>
</body>
</html>
function setproxy { $env:HTTP_PROXY="http://127.0.0.1:7890"; $env:HTTPS_PROXY="http://127.0.0.1:7890" }
function unsetproxy { $env:HTTP_PROXY=""; $env:HTTPS_PROXY="" }
@wuuconix
wuuconix / xiangzuo.mjs
Created February 21, 2023 08:26
register xiangzuo
process.env.NODE_TLS_REJECT_UNAUTHORIZED = 0 // 忽略ssl证书失效
async function register(mobile) {
let res = await fetch("https://ad.hutaojie.com/online/sample")
const cookie = res.headers.get("set-cookie").replace(/ path=\/; HttpOnly,?/ig, "") // 获取cookie
// console.log(cookie)
res = await (await fetch("https://ad.hutaojie.com/", { headers: { Cookie: cookie } })).text()
const csrf = res.match(/<meta content=\"([\w-]{43})\" name=\"csrf-token\"\/>/)[1] // 获取csrf
// console.log(csrf)
const nickname = `Test${Date.now()}`
@wuuconix
wuuconix / fetch-abort.mjs
Created February 13, 2023 12:53
using AbortController to abort a fetch
const controller = new AbortController()
setTimeout(() => {
if (res.body.locked) { // body is locked means still reading
console.log("Two seconds passed. It's time to abort this slow fetch")
controller.abort()
} else {
console.log("Wow, you have get all body. So fast!")
}
}, 2000)