Archive for the 'OpenSource' Category

PHP Shell

星期一, 5月 28th, 2007

PHPShell is a PHP script which allows shell commands to be executed on a web server. Typically the PHPShell script is protected by a password so only the server administrator can access it. We deployed honeypots that advertise an unrestricted PHPShell...

老版本Freebsd 更新PORTS

星期三, 5月 16th, 2007

Freebsd4.7 - 5.4 升级PORTS
1) 首先要下载并安装cvsup
2hei# ftp -a ftp.freebsdchina.org
ftp> cd pub/FreeBSD/ports/packages/net
get cvsup-without-gui-16.1h_2.tbz
2hei# pkg_add cvsup-without-gui-16.1h_2.tbz
2h...

mrtg 监控数据的获得 (shell-php-mysql)

星期三, 5月 16th, 2007

安装好mrtg后,还需要自己写脚本来对系统的状态进行监控,比如:内存,硬盘,cpu,load等等
下面是我使用的脚本:
1) 基础数据的获得
通过shell取得系统数据存到txt文件中,...

Cacti网络监控软件的安装、配置与使用连载 (3) — By 2hei

星期三, 5月 16th, 2007

(1) Cacti的架构

(2) Cacti的工作流程

(3)系统负载情况

(4)内存使用情况

(5)系统进程

----(完)

...

Cacti网络监控软件的安装、配置与使用连载 (2) — By 2hei

星期三, 5月 16th, 2007

2.3.1.2 配置
修改snmpd配置文件
#vi /etc/snmp/ snmpd.conf
# sec.name source community
com2sec notConfigUser default public
将”comunity”字段改为你要设置的密码.比如...

Cacti网络监控软件的安装、配置与使用连载 (1) — By 2hei

星期三, 5月 16th, 2007

1 系统介绍
Cacti是一种免费的网络监控系统,监控端通过SNMP(简单网络管理协议)来获取被监控系统的相关信息,具有很强的数据管理和用户管理功能,一台机器可以监控多台服务器,...

WP-DBManager

星期五, 5月 11th, 2007

» Index
Plugin Information
Author:
» Lester ‘GaMerZ’ Chan
EMail:» gamerz84@hotmail.com
Website:
» http://www.lesterchan.net/
Features:
» Manages your Wordpress database. Allows you to op...

SED单行脚本快速参考(Unix 流编辑器)

星期五, 5月 11th, 2007

————————————————————————-
SED单行脚本快速参考(Unix 流编辑器) 20...

bash csh/tcsh 环境变量的设置

星期四, 5月 10th, 2007

用户shell配置文件
$HOME/.profile (Bourne shell, sh, bash)
$HOME/.cshrc (csh, tcsh)
$HOME/.tcshrc (tcsh)
/etc/passwd文件中列出每个用户的shell
/etc/csh.cshrc
/etc/csh.login
/etc/profile (Bourne s...

linux 下 运行jar 包

星期六, 4月 28th, 2007

以前知道linux可以运行class文件,现在知道jar文件也可以在linux下运行,
这样有利于写shell脚本调用jar程序了。
配置好java环境
环境变量: $CLASS_PATH 和 $JAVA_HOME
然后:
$ja...