Skip to content

Instantly share code, notes, and snippets.

@tennc
tennc / workers.js
Created September 25, 2019 07:54
这个更棒~ 速度更快~
// List of domains bind to your WorkersProxy.
const domain_list = ['https://你的cloudflareWorker应用地址/']
// Website you intended to retrieve for users.
const upstream = 'https://需要加速的网站的地址/'
// Website you intended to retrieve for users using mobile devices.
const upstream_mobile = 'https://需要加速的网站移动端的地址/'
// Countries and regions where you wish to suspend your service.
@tennc
tennc / CloudFlare-Workers.js
Created September 25, 2019 07:38
CloudFlare-Workers 镜像
addEventListener('fetch', event => {
event.respondWith(proxyRequest(event.request))
})
/**
* Respond to the request
* @param {Request} request
*/
async function proxyRequest(request) {
@tennc
tennc / phpstudy-rce-v3.py
Created September 23, 2019 14:48
先检测,存在则触发命令
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# author: tennc
# date: 2019年9月23日
import sys
import base64
import requests
# url = str(sys.argv[1])
@tennc
tennc / phpstudy-rce-V2-check.py
Created September 23, 2019 14:36
直接回显,关键词,检测脚本
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# author: tennc
# date: 2019年9月23日
import sys
import base64
import requests
# url = str(sys.argv[1])
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# author: tennc
# date: 2019年9月23日
import sys
import base64
import requests
# url = str(sys.argv[1])
POST /struts2-rest-showcase/orders/3;jsessionid=A82EAA2857A1FFAF61FF24A1FBB4A3C7 HTTP/1.1
Host: 127.0.0.1:8080
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:54.0) Gecko/20100101 Firefox/54.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3
@tennc
tennc / slides.md
Created July 8, 2016 08:15 — forked from aaronwolen/slides.md
Pandoc template to generate reveal.js slideshows.

% Title % Name % Date

My first slide

List

#!/bin/sh
METASPLOIT_BASEDIR=/opt/metasploit-framework
DB_CONF=$METASPLOIT_BASEDIR/config/database.yml
DB_NAME=msf
DB_USER=msf
DB_PORT=5432
PG_SERVICE=postgresql
#!/usr/bin/env python3
# -*- coding : utf-8 -*-
# author: tennc
# date: 2016/3/20
# filename: paer.py
# 检测一推二级域名200状态,并且爬出名称保存
# url.txt 为二级域名保存文件,save.txt为结果文件。
# The MIT License
# NAME
# Copyright (c) 2015
#!/usr/bin/env python
# encoding: utf-8
# author: tennc
# date: 2015-06-29
# use: python wyspider_dy.py xxx.txt
import os
import sys