Skip to content

Instantly share code, notes, and snippets.

View wuuconix's full-sized avatar
💭
Learning

wuuconix wuuconix

💭
Learning
View GitHub Profile
@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)
@wuuconix
wuuconix / fetch-speed.js
Created February 11, 2023 07:47
原生fetch获取下载速度
let res = await fetch("https://api.wuuconix.link/setu?redirect") // at this time, the header is ok
const bytesTotal = res.headers.get("content-length")
const reader = res.body.getReader()
let bytesRead = 0
const startTime = +Date.now()
while (true) {
const { done, value } = await reader.read()
if (value) {
bytesRead += value.length
const nowTime = +Date.now()
download mp3 free:
https://rytmp3.fun/