This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python3 | |
import sys | |
import json | |
import re | |
import subprocess | |
t = sys.argv | |
t = [i.replace('^','') for i in t] #for chrome bad escape character |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python3 | |
import re | |
import requests | |
import argparse | |
sess = requests.Session() | |
def get_api(url): | |
headers = {"User-Agent":"Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Mobile Safari/537.36"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python3 | |
import re | |
import requests | |
import argparse | |
import time | |
import hashlib | |
import json | |
import logging | |
from requests.adapters import HTTPAdapter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
一、 禁止修改HOSTS文件: | |
attrib +r +a +s +h %windir%\system32\drivers\etc\hosts | |
echo y|cacls %windir%\system32\drivers\etc\hosts /g everyone:r | |
二、允许修改HOSTS文件: | |
echo y|cacls %windir%\system32\drivers\etc\hosts /g everyone:f | |
attrib -r -a -s -h %windir%\system32\drivers\etc\hosts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def link2json(single_link): | |
if not single_link: | |
return None | |
link = to_str(single_link).strip() | |
try: | |
if link[:5] == 'ss://': | |
t = link[5:] | |
elif link[:6] == 'ssr://': | |
raise ValueError('Not SS, but SSR address: {}'.format(link)) | |
elif len(link) < 6: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def json2link(configs_json): | |
d = configs_json | |
link = [] | |
try: | |
if (isinstance(d, dict)) and d['configs']: | |
j = d['configs'] | |
else: | |
j = d | |
for i in j: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def json2link(configs_json): | |
d = configs_json | |
links = [] | |
try: | |
if (isinstance(d, dict)) and d['configs']: | |
j = d['configs'] | |
else: | |
j = d | |
for i in j: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python3 | |
import re | |
import sys | |
import json | |
import logging | |
import requests | |
import argparse | |
import html | |
import base64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# (c) Robert Shingledecker 2011-2012 v1.1 | |
. /etc/init.d/tc-functions | |
alias awk="busybox awk" | |
alias grep="busybox grep" | |
help() { | |
echo "Usage:" | |
echo " Default select AP from menu and request IP via DHCP." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# proxychains CLI wrapper | |
# Choose pre-supposed profile with -1,-2,-3, OR no param means default profile, OR appoint manually by -n proxy(Node)_ip(hostname):port and -p proxy_Protocol | |
# Default profile | |
PROXY_HOSTNAME=127.0.0.1 | |
PROXY_PORT=1080 | |
PROTOCOL=socks5 | |
# profile 1 | |
PROXY_HOSTNAME1=127.0.0.1 |
OlderNewer