2008年1月4日 星期五

bios/disk information in windows

dmidecode 可以取得一些 bios 的 information, 但似乎並不是每一個系統的 相關資訊都有填入.

Retriving Hard Disk Serial Number Using VB 6.0 - 使用 DeviceIoControl() 取得 IDE 的 harddisk serial number etc.

sdparm 也有 windows 版, 但取不到 serial number.

有討論到如何透過 java 取得 CPUID, 最後 reference 到一個 i2p 的軟體. (jcpuid)

有討論到一些概念, 用 freepascal 寫的.

code project 的 get Physical HDD serial number with no WMI 有引用到 diskid32.dll.

DiskId32 A Win32 Application and Source Code for Reading Hard Drive Manufacturing Information. 根據網頁說明, 應該有人讀到 scsi/sata device 的 disk id.
這個網頁有相關 reference

2008年1月2日 星期三

User Agent ID 列表 (Browser ID strings)

原文出處

某人build cross compile tool 的經驗

原文出處

automatically discover all shares

原文出處

在 Linux 中, 如何設定 Squid, iptable 提供 transparent proxy

文章來源

In transparent squid, it is not necessary to configure browser to particular port like 8080 and 3128.

First, edit your squid.conf file by typing in terminal

# vim /etc/squid/squid.conf

edit line may be 89 in 2.6 version

http_port 192.168.0.1:3128 transparent

( where 192.168.0.1 is your local interface address )

and set visible_hostname to localhost

and insert below lines under tag
# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS

acl our_networks src 192.168.0.0/24 192.168.2.0/24
http_access allow our_networks

(use gedit if not familiar with vim )

now start squid by typing

# /usr/sbin/squid -z

now flush all rules of iptables for transparent mode

# iptables -F
# iptables -t nat -F
# iptables -t mangle -F

now delete this chains by

# iptables -X
# iptables -t nat -X
# iptables -t mangle -X

now time to save iptables, so type

# service iptables save
# service iptables restart

now all rules and chains will clear !

check it by /etc/sysconfig/iptables which has all defaults rules set to accept.

now /etc/rc.d/rc.local

and insert line

echo 1 > /proc/sys/net/ipv4/ip_forward

and then save and close.

now asuming that your internet interface is eth0 then type :

# iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT --to-port 3128
# iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
# service iptables save
# service iptables restart

note:- check your service of iptables is set to start during boot up .

or check status of your iptables service

# chkconfig –list iptables

if level 5 is on then its ok othewise start service at level 5 or level 2345.

2007年12月24日 星期一

qmail goes public domain

qmail goes public domain
"...I hereby place the qmail package (in particular, qmail-1.03.tar.gz, with MD5 checksum 622f65f982e380dbe86e6574f3abcb7c) into the public domain. You are free to modify the package, distribute modified versions, etc....."

The latest published qmail package is qmail-1.03.tar.gz, available from

Related packages:
  • djbdns,the DNS software strongly recommended for use with qmail;
  • ezmlm,an easy-to-use, high-speed mailing list manager;
  • ucspi-tcp,which includes a high-speed inetd replacement for your SMTP server, and a generic tool to reject mail from RBL-listed sites;
  • serialmail, a collection of tools for passing mail across serial links, including AutoTURN support;
  • qmailanalog, a collection of tools to help you analyze qmail's activity record;
  • dot-forward, a .forward clone for qmail;
  • fastforward, a table-based forwarding utility for qmail, including an /etc/aliases clone;
  • mess822, which includes centralized From rewriting for SMTP clients;
  • a patch for majordomo 1.93 to work with qmail; and
  • the checkpasswordprogram, which you need if you want to run qmail-pop3d.

If you're interested in what qmail can do for you, read on. See www.qmail.org for more qmail-related utilities and information about commercial support.

There are quite a few books on qmail. Out of those I've read, the best is The qmail handbook by Dave Sill. The newest book is Qmail Quickstarter by Kyle Wheeler.