Skip to content

Instantly share code, notes, and snippets.

View 3Kmfi6HP's full-sized avatar
🐶
🚀

3Kmfi6HP

🐶
🚀
View GitHub Profile
@3Kmfi6HP
3Kmfi6HP / ddns-cloudflare.sh
Created January 8, 2024 16:36
ddns-cloudflare
#!/bin/bash
# CHANGE THESE
auth_email="" #你的CloudFlare注册账户邮箱,your cloudflare account email address
auth_key="" #你的cloudflare账户Globel ID ,your cloudflare Globel ID
zone_name="xxx.com" #你的域名,your root domain address
record_name="ddns.xxx.com" #完整域名,your full domain address
record_type="AAAA" #A or AAAA,ipv4 或 ipv6解析
ip_index="local" #use "internet" or "local",使用本地方式还是网络方式获取地址
入门指南
https://wizardforcel.gitbooks.io/web-hacking-101/content/ Web Hacking 101 中文版
https://wizardforcel.gitbooks.io/asani/content/ 浅入浅出Android安全 中文版
https://wizardforcel.gitbooks.io/lpad/content/ Android 渗透测试学习手册 中文版
https://wizardforcel.gitbooks.io/kali-linux-web-pentest-cookbook/content/ Kali Linux Web渗透测试秘籍 中文版
https://github.com/hardenedlinux/linux-exploit-development-tutorial Linux exploit 开发入门
https://www.gitbook.com/book/t0data/burpsuite/details burpsuite实战指南
http://www.kanxue.com/?article-read-1108.htm=&winzoom=1 渗透测试Node.js应用
https://github.com/qazbnm456/awesome-web-security Web安全资料和资源列表
@3Kmfi6HP
3Kmfi6HP / main.go
Last active December 18, 2023 03:34
cf worker socks golang client
package main
import (
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"log"
"net"
"net/http"
@3Kmfi6HP
3Kmfi6HP / main.go
Last active December 15, 2023 14:07
api port scan
package main
import (
"bufio"
"encoding/json"
"flag"
"fmt"
"io"
"net"
"net/http"
@3Kmfi6HP
3Kmfi6HP / nginx.conf
Created September 24, 2023 22:11
nginx
proxy_cache_path /tmp/cache levels=1:2 keys_zone=cache_one:10m inactive=360m;
upstream backend {
least_conn;
# 使用最小连接数策略,即最低延迟
server 89.117.59.72:443;
server [2a02:c206:2111:7389::1]:443;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
@3Kmfi6HP
3Kmfi6HP / cloudflare-worker-ip-to-real-client-ip-address.js
Created September 24, 2023 19:28 — forked from JoeyBurzynski/cloudflare-worker-ip-to-real-client-ip-address.js
Resolving Cloudflare Worker IP Issues [Replace Cloudflare Worker IP with Real Client IP in X-Forwarded-For HTTP Header]
// Cloudflare Worker Sandbox Examples
// Learning here, not intended for production use.
// https://cloudflareworkers.com/#6bc84bcddcf251074b41adba568a9284:https://tutorial.cloudflareworkers.com
addEventListener('fetch', event => {
event.respondWith(handleRequest(event.request));
})
/**
@3Kmfi6HP
3Kmfi6HP / main.py
Last active September 21, 2023 22:35
down csv
from telethon.tl.types import DocumentAttributeFilename
import os
async def download_csv_files(client, entity):
messages = await client.get_messages(entity, limit=None)
for message in messages:
if hasattr(message, 'media') and message.media: # Check if the message has media
media = message.media
if hasattr(media, 'document') and media.document: # Check if the media is a document
document = media.document
@3Kmfi6HP
3Kmfi6HP / index.html
Created September 10, 2023 21:27
Stream Video using IPFS!
<html>
<head>
<title>Video Streaming</title>
<meta charset="UTF-8" />
</head>
<body>
<video id="video" controls></video>
<div id="modal"><span id="errorText">error!</span></div>
@3Kmfi6HP
3Kmfi6HP / Dockerfile
Created July 3, 2023 23:56
fly.io deploy files
FROM ghcr.io/3kmfi6hp/argo-airport-paas:main
@3Kmfi6HP
3Kmfi6HP / _worker.js
Created June 6, 2023 08:02
pages.dev reverse proxy v2ray code
export default {
async fetch(request, env) {
let url = new URL(request.url);
if (url.pathname.startsWith('/')) {
url.hostname="huggingface-node.pages.dev";
let new_request=new Request(url,request);
return fetch(new_request);
}
// Otherwise, serve the static assets.
return env.ASSETS.fetch(request);