Monday, May 30, 2005
HTML Tutorial
Sunday, May 29, 2005
Notepad sections, tutorials, discussions, reference sheets, articles, papers and reviews
Tuesday, May 24, 2005
WinXP SP2 = security placebo? | The Register
Thursday, May 19, 2005
CIO Jury: When is the right time to kill an IT project? - Enterprise - CNETAsia
Wednesday, May 18, 2005
用PHP连mysql和oracle数据库性能比较 - - PHP技术 - 数据库操作- 中国论坛网 - 网络学院 [www.51one.net]
PHP: Oracle 8 functions - Manual
PHP 故障诊断常见问题解答
PHP+Oracle(OCI) 初步 - - PHP技术 - 数据库操作- 中国论坛网 - 网络学院 [www.51one.net]
Installing Oracle, PHP, and Apache on Windows
Tuesday, May 17, 2005
Learn the many uses of netcat
Often referred to as the "Swiss Army Knife of networking," netcat is a tool that administrators can use to read and write TCP or UDP data across the network.
In addition, it's extremely useful for network debugging and testing.
Netcat offers several interesting uses. For example, you can make it listen to a particular port and run a program. To do so, use the following:
$ netcat -v -l -p 10111 -e "/bin/cat /etc/motd"
This tells netcat to listen to port 10111. When there's a connection, it tells netcat to execute "/bin/cat /etc/motd," which essentially displays the contents of /etc/motd and exits.
You can also set up netcat on a machine to listen for incoming connections and run it on a remote machine to connect to the local machine and serve up a bash shell. For example, on a local machine with an IP address of 192.168.5.10, you would use the following:
$ netcat -v -l -p 10111
On the remote machine, you would use:
$ netcat 192.168.5.10 10111 -e /bin/bash
This tells the netcat instance on the remote machine to connect to the netcat instance listening on 192.168.5.10 and serve up a bash shell from the remote machine, which will then be available on the local machine. Using the netcat instance on 192.168.5.10, you can execute shell commands on the remote host.
To perform some Web debugging, you could use something like the following:
$ netcat www.website.com 80
Then, enter typical HTTP commands to get the unaltered output (e.g., "GET / HTTP 1.0").
As you can see, netcat is both an extremely versatile and very powerful utility. You can download this useful tool, based on the original netcat program, from the GNU Netcat Project Web site. http://netcat.sourceforge.net/
In addition, it's extremely useful for network debugging and testing.
Netcat offers several interesting uses. For example, you can make it listen to a particular port and run a program. To do so, use the following:
$ netcat -v -l -p 10111 -e "/bin/cat /etc/motd"
This tells netcat to listen to port 10111. When there's a connection, it tells netcat to execute "/bin/cat /etc/motd," which essentially displays the contents of /etc/motd and exits.
You can also set up netcat on a machine to listen for incoming connections and run it on a remote machine to connect to the local machine and serve up a bash shell. For example, on a local machine with an IP address of 192.168.5.10, you would use the following:
$ netcat -v -l -p 10111
On the remote machine, you would use:
$ netcat 192.168.5.10 10111 -e /bin/bash
This tells the netcat instance on the remote machine to connect to the netcat instance listening on 192.168.5.10 and serve up a bash shell from the remote machine, which will then be available on the local machine. Using the netcat instance on 192.168.5.10, you can execute shell commands on the remote host.
To perform some Web debugging, you could use something like the following:
$ netcat www.website.com 80
Then, enter typical HTTP commands to get the unaltered output (e.g., "GET / HTTP 1.0").
As you can see, netcat is both an extremely versatile and very powerful utility. You can download this useful tool, based on the original netcat program, from the GNU Netcat Project Web site. http://netcat.sourceforge.net/