Skip to content

Instantly share code, notes, and snippets.

Avatar
🌸

chen_null chenx6

🌸
View GitHub Profile
@chenx6
chenx6 / wireguard.py
Created Feb 5, 2022
Simple wireguard config generator
View wireguard.py
#!/usr/bin/env python3
"""
Simple Wireguard config generator
sysctl config:
export PATH=/usr/sbin:$PATH
sysctl net.ipv4.ip_forward=1
resolveconf:
sudo apt install resolvconf
@chenx6
chenx6 / dead_horse.js
Last active Jan 10, 2022
Stackoverflow 的 Ciro Santilli 你🐴死了
View dead_horse.js
// ==UserScript==
// @name Stackoverflow 的 Ciro Santilli 你🐴死了
// @namespace Violentmonkey Scripts
// @match https://stackoverflow.com/*
// @match https://serverfault.com/*
// @match https://superuser.com/*
// @match https://meta.stackexchange.com/*
// @match https://webapps.stackexchange.com/*
// @match https://webmasters.stackexchange.com/*
// @match https://gamedev.stackexchange.com/*
@chenx6
chenx6 / fuck_reprint_dog.js
Last active May 11, 2022
去他妈的转载狗
View fuck_reprint_dog.js
// ==UserScript==
// @name 去他妈的转载狗
// @namespace Violentmonkey Scripts
// @match https://cn.bing.com/search*
// @grant GM_xmlhttpRequest
// @version 1.0
// @author chen_null
// @description 2021/1/21 下午4:14:58
// ==/UserScript==
@chenx6
chenx6 / gwifi_login_web.py
Last active May 29, 2021
Gwifi登陆脚本。在最后一行改下对象初始化参数,将自己的帐号和密码填进去就好
View gwifi_login_web.py
"""
模拟 Gwifi 网页版,登陆 Gwifi
"""
from typing import Any
from re import compile
from random import randint
from base64 import b64encode
from socket import socket, AF_INET, SOCK_DGRAM
from time import sleep
@chenx6
chenx6 / modify.py
Created Mar 16, 2020
ELF Backdoor injector
View modify.py
from utils import parse_args
from parse import elf_info
from struct import pack
import logging
logger = logging.getLogger(__name__)
logging.basicConfig(level=logging.NOTSET)
class injector:
@chenx6
chenx6 / pilipili.py
Created Jun 12, 2019
恢复 Bilibili 收藏夹中失效视频
View pilipili.py
'''
需要 Python 3.6 + requests
'''
import requests
from math import ceil
from urllib import parse
import time
class favlist():