Skip to content

Instantly share code, notes, and snippets.

Avatar
✍️
Preparing for high school entrance examination

Ren Baoshuo renbaoshuo

✍️
Preparing for high school entrance examination
View GitHub Profile
@renbaoshuo
renbaoshuo / getfrp.sh
Created Feb 10, 2021
getfrp.sh - 20210210
View getfrp.sh
#!/bin/bash
if [[ "$(uname -s)" =~ "Darwin" ]]
then
red=''
green=''
yellow=''
magenta=''
cyan=''
none=''
@renbaoshuo
renbaoshuo / smms-image.py
Created Dec 30, 2020
Download all uploaded SMMS images.
View smms-image.py
import requests
import os
import json
import pathlib
import sys
proxy = "http://127.0.0.1:7890"
print("\nusing proxy: " + proxy + "\n\n====================\n")
proxies = {"http": proxy, "https": proxy}
View Cloudflare workers reverse proxy.js
// Website you intended to retrieve for users.
const upstream = 'domain.com'
// Custom pathname for the upstream website.
const upstream_path = '/'
// Website you intended to retrieve for users using mobile devices.
const upstream_mobile = 'domain.com'
// Countries and regions where you wish to suspend your service.
@renbaoshuo
renbaoshuo / Segment Tree.cpp
Last active Dec 2, 2020
线段树模板 (洛谷 P3372)
View Segment Tree.cpp
#include <bits/stdc++.h>
using namespace std;
/**
* 线段树节点
*/
struct node {
int l, r;
long long s, d;
@renbaoshuo
renbaoshuo / 📊 Weekly development breakdown
Last active May 15, 2021
📊 Weekly development breakdown
View 📊 Weekly development breakdown
Markdown 0 secs █████████████████████ 100.0%
@renbaoshuo
renbaoshuo / HidePortWorker.md
Last active Apr 3, 2021
Cloudflare Hide Port Worker
View HidePortWorker.md

Hide Port Worker

原项目地址: https://github.com/KawaiiZapic/HidePortWorker

这个脚本可以帮助你在 Cloudflare 使用非 443/80 端口时隐藏你的端口, 基于 Cloudflare Worker.

设置

由于 Worker 无法自定义 Header 内的 Host, 只能添加新的 Header 来传递 Host.

@renbaoshuo
renbaoshuo / bt-20200823.md
Last active Aug 23, 2020
BT Panel 20200823 漏洞自查
View bt-20200823.md

宝塔面板 PHPMyAdmin 漏洞自查

检查面板登陆端口

cat /www/server/panel/data/port.pl

返回示例

View git-proxy-for-github.md

给 GitHub 设置专门的 Git 代理

设置代理

# Add proxy
git config --global http.https://github.com.proxy  "http://127.0.0.1:7890" #<~这里是你的代理地址
git config --global https.https://github.com.proxy "http://127.0.0.1:7890"