包含关键字 mini 的文章

访问谷歌

大家都知道shadowsocks只提供了SOCKS5的代理,而没有提供http代理,而很多软件仅提供了http代理的支持,比如老高需要使用shell命令行扶墙,或者使用git同步android的源代码,再或者更新android SDK,该怎么办呢?

老高在此介绍一个软件Privoxy,它可以作为代理的代理,为我们解决上述问题!

Privoxy is a non-caching web proxy with advanced filtering capabilities for enhancing privacy, modifying web page data and HTTP headers, controlling access, and removing ads and other obnoxious Internet junk. Privoxy has a flexible configuration and can be customized to suit individual needs and tastes. It has application for both stand-alone systems and multi-user networks.

由介绍看来,privoxy的功能可远远不止http代理这么简单!

阅读剩余部分

想必大家买了VPS后一定都不想闲着。。。搭个博客算是最简单实用了。

但是基本上大家在网上下载到的一键安装包都没有后台管理功能,如果想多绑定几个域名都不知道怎么操作,更别提搭建多个站点了。

下面老高就介绍一种简单实用的网站搭建方法,搭建出的网站速度快,安全性高,还支持各种优化配置。

最重要的是操作基本都是傻瓜式的,不需要很多web技能也可以完整的配置下来,而且基本上就成了半个运维了,是不是很厉害!

像老高这样的老司机,整个装下来再加上安全设置最多5分钟搞定,相信你一定也可以!

搭建过程中如果有什么问题,请留言交流!

kangle

阅读剩余部分

老早写的,都忘了当初想干啥了。。。。

半成品,留个坑,待填。

#!/usr/bin/env python
# encoding: utf-8

import cookielib
import requests


def http_send(url, post_data='', **kwargs):
    cookie_handler = cookielib.MozillaCookieJar('cookie.txt')
    try:
        cookie_handler.load(ignore_discard=1)
    except cookielib.LoadError, e:
        print e + "new cookie file"

    headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.122 Safari/537.36'}
    if post_data:
        req = requests.post(url, data=post_data, cookies=cookie_handler)
    else:
        req = requests.get(url)

    print req.headers

    for c in req.cookies:
        cookie_handler.set_cookie(c)
        cookie_handler.save(ignore_discard=1)
    return req.content


if __name__ == '__main__':
    # init cookie
    print http_send('http://localhost/clientarea.php', {"A": 1})

#!/usr/bin/env python
# encoding: utf-8

import cookielib
import requests
from bs4 import BeautifulSoup
import logging
import logging.handlers
import os
import re


logging.basicConfig(filename=os.path.join(os.getcwd(), 'log.txt'), level=logging.DEBUG)

s = requests.session()


def main():
    do_login()
    scan_list()
    check()


def do_login():
    global headers, username, password
    # get token
    # token_html = s.get(login_url).content
    headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 '
                             '(KHTML, like Gecko) Chrome/38.0.2125.122 Safari/537.36'}

    token_html = open('C:\Users\Administrator\Desktop\index.html').read()
    token = find_token(token_html)
    post_data = {'token': token, 'username': username, 'password': password}
    s.post(affiliates_url, post_data)
    print s.content


def find_token(html):
    g = re.findall('name="token"\svalue="(\w+)"\s/>', html)
    if g:
        return g[0]
    else:
        log("Could not find token value!")
        raise Exception('Could not find token value')


def scan_list():
    print 111


def check():
    print 111


def log(msg):
    logging.debug(msg)


if __name__ == '__main__':
    # 初始化参数
    headers = {
        'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.122 Safari/537.36'}
    login_url = "https://bandwagonhost.com/clientarea.php"
    affiliates_url = "https://bandwagonhost.com/affiliates.php"
    username = 1111
    password = 2222
    main()

刚刚(2015-05-17 12:00:15)老高刷了目前最新的小米路由mini的pandorabox固件(r820)

很多朋友说这个版本的redsocks2升级为加强版,选项太多,于是不会配置了。

下面老高就来讲讲如何配置redsocks2,以及如何与chinadns联合配置。

如果需要了解更详细的配置,请参考老高的另一篇 小米路由器mini折腾之自动翻墙篇

阅读剩余部分

想必大家为了科学上网,已经为自己的路由器刷上了openwrt/pandorabox了吧?

经过老高的统计,目前关于浏览器访问量最高的是这两篇文章

小米路由器mini折腾之自动翻墙篇 小米路由器mini折腾之安装shadowsocks-libev-spec(解决DNS污染)

不知道大家是否能够通过两篇文章的学习研究实现了科学上网呢?

阅读剩余部分