存档

‘MyOriginal’ 分类的存档

6月2日DiscuzX 1.5 最新0day注入漏洞的排查原则

2011年6月3日 2,095 阅读 3 条评论

这个是老漏洞的新代码
注入者需要访问一次“/api/manyou/my.php” 可以根据这个特征进行查找

cat OOXX.access.log |grep '/api/manyou/my.php' |grep -v "myop/1.0"

123.119.143.23[......]

Read more

Nginx和Apache取消带验证目录的子目录验证的方法

2011年6月3日 1,247 阅读 没有评论

长期使用Nginx的后果就是,Apache都不会用了。
Nginx启用目录的HTTP验证非常简单:

auth_basic "DD-WRT-Wireless-Access";
auth_basic_user_file pass.txt;

甚至可以直接在Server配置节[......]

Read more

OpenVPN Radiusplugin的useauthcontrolfile选项

2011年5月24日 1,682 阅读 3 条评论

Radiusplugin作者说 这个选项能提高性能(Link1 Link2)姑且听之

Can you set "useauthcontrolfile=true" in your plugin config (if you use
OpenVPN 2.1), it will increas[......]

Read more

Useing Management Interface Of OpenVPN

2011年5月23日 1,993 阅读 没有评论

虽然有openvpn-web-gui这样的基于证书的web用户管理系统,但是哦我们有了radius以后 就不需要他了 这个时候 ,控制用户断线什么的 就靠OpenVPN的Management Interface就可以了。

在Linux/Windows下面 有这样一个GUI 叫openvpn-[......]

Read more

PureFTPd With WebBased UserAdmin on Debian

2011年5月4日 1,353 阅读 没有评论

这个家伙开发了web用户管理界面 http://machiel.generaal.net/index.php?subject=user_manager_pureftpd

wget http://machiel.generaal.net/files/pureftpd/ftp_v2.1.tar.g[......]

Read more

traceroute的高级用法

2011年5月2日 3,702 阅读 没有评论

Linux下面有个东西叫traceroute 和Windows下面的tracert差不多 但是更加高级

-I --icmp Use ICMP ECHO for tracerouting

-T --tcp Use TCP[......]

Read more

如何吊销OpenVPN的客户端证书

2011年5月1日 1,382 阅读 没有评论
cd /etc/openvpn/easy-rsa/2.0/
. ./vars
./revoke-full client-name

得到一个crl.pem 吊销列表 同时 在keys/index.txt里面写入人类可读的信息
被注销的证书前面,已标记为R.
然后在服务端载入被吊销证书列表[......]

Read more

CHNrouters 添加 Via Python For Win

2011年4月25日 1,362 阅读 没有评论

虽然有个批处理版本 但是实际使用中发现问题很多 比如不能正确识别PPPOE地址等。
自己用Python写了一个 和CHNrouters规则不完全兼容 需要转换有脚本
另外 这个是For Win的 linux用户根本不需要

#!/usr/bin/env python
# -*- coding=[......]

Read more

分类: MyOriginal, Pyhton 标签: ,

用Shell脚本+Curl写了一个学校网关认证 亿邮 for linux 客户端

2011年4月18日 1,500 阅读 没有评论
#!/bin/bash
echo via: ihipop@gmail.com http://ihipop.info
#2011/4/18 00:35

#自定义部分
loginuser=$3
password=$4

#设置变量
logintype='%C1%AC%CF%DF%[......]

Read more

分类: MyOriginal 标签: ,

用Vnstat+vnstat PHP frontend简单记录服务器流量

2011年4月12日 1,410 阅读 没有评论

话说MRTG/Cacti都太专业化了 小小VPS没有必要 偶尔有个流量查看的需求而已

apt-get install vnstat

创建一个数据库

vnstat -u -i eth0

到 http://www.sqweek.com/sqweek/index.php?p=1 下[......]

Read more