Skip to content

Instantly share code, notes, and snippets.

View wuuconix's full-sized avatar
💭
Learning

wuuconix wuuconix

💭
Learning
View GitHub Profile
Hello World!
Fetch Successfully!
time=`date '+%Y-%m-%d_%H:%M:%S'`
echo $time
./xray webscan --basic-crawler $1 --html-output ./result/$time.Html
@wuuconix
wuuconix / gist:3494d1652a3d6aa20a6e60aa815c8306
Created December 17, 2022 12:14
dirsearch start.sh linux
python3 dirsearch.py -u $1
@wuuconix
wuuconix / gist:e5706bd0037f188339336f6ed4b8b5fc
Created December 18, 2022 23:56
dirsearch windows start.ps1
python ./dirsearch.py -u $args[0]
some good introductions:
https://ivonblog.com/posts/termux-x11/
https://github.com/kde-yyds/termux-x11-plasma-installation-guide
https://github.com/termux/termux-x11
https://github.com/coonrad/Debian-Xfce4-Minimal-Install
https://itsfoss.com/install-kde-on-ubuntu/
https://wiki.archlinux.org/title/Localization/Simplified_Chinese
https://zhuanlan.zhihu.com/p/139652407
https://blog.csdn.net/huangshaotian/article/details/6782603
download mp3 free:
https://rytmp3.fun/
@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()
@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 / 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()}`