Wireshark

[不指定 2008/02/28 19:58 | by ipaddr ]

About Wireshark

Wireshark is the world's foremost network protocol analyzer, and is the de facto (and often de jure) standard across many industries and educational institutions.

Wireshark development thrives thanks to the contributions of networking experts across the globe. It is the continuation of a project that started in 1998.

Features

Wireshark has a rich feature set which includes the following:

  • Deep inspection of hundreds of protocols, with more being added all the time
  • Live capture and offline analysis
  • Standard three-pane packet browser
  • Multi-platform: Runs on Windows, Linux, OS X, Solaris, FreeBSD, NetBSD, and many others
  • Captured network data can be browsed via a GUI, or via the TTY-mode TShark utility
  • The most powerful display filters in the industry
  • Rich VoIP analysis
  • Read/write many different capture file formats: tcpdump (libpcap), Catapult DCT2000, Cisco Secure IDS iplog, Microsoft Network Monitor, Network General Sniffer® (compressed and uncompressed), Sniffer® Pro, and NetXray®, Network Instruments Observer, Novell LANalyzer, RADCOM WAN/LAN Analyzer, Shomiti/Finisar Surveyor, Tektronix K12xx, Visual Networks Visual UpTime, WildPackets EtherPeek/TokenPeek/AiroPeek, and many others
  • Capture files compressed with gzip can be decompressed on the fly
  • Live data can be read from Ethernet, IEEE 802.11, PPP/HDLC, ATM, Bluetooth, USB, Token Ring, Frame Relay, FDDI, and others (depending on your platfrom)
  • Decryption support for many protocols, including IPsec, ISAKMP, Kerberos, SNMPv3, SSL/TLS, WEP, and WPA/WPA2
  • Coloring rules can be applied to the packet list for quick, intuitive analysis
  • Output can be exported to XML, PostScript®, CSV, or plain text

HttpWatch

[不指定 2008/02/28 19:56 | by ipaddr ]

HttpWatch is an HTTP viewer and debugger that integrates with Internet Explorer to provide seamless HTTP and HTTPS monitoring without leaving the browser window.

HttpWatch is used in a wide variety of companies and industries for tasks such as:

  • Testing a web application to ensure that it is correctly issuing cookies or setting headers that control page expiration
  • Finding out how other sites work and how they implement certain features
  • Checking the information that Internet Explorer is supplying when you visit a site
  • Verifying that a secure web site is not issuing sensitive data in cookies or headers
  • Tuning the performance of a web site by measuring download times, caching or the number of network round trips
  • Learning about how HTTP works (useful for programming and web design classes)
  • Allowing webmasters to fine tune the caching of images and other content
  • Performing regression testing on production servers to verify performance and correct behavior


1.首先,需要安装中文支持,打开“Control Panel”=》“Regional and Language Options”=>“Language”,选择“Install Files for East Asian Languages”。

2.安装完后,Windows应该支持中文显示了,但某些未指定应用程序还可能会乱码,在“Region Options”处,选择Formats和Locations为“China”, 在Advanced,选择默认的语言为“Chinese (PRC)”

3. 经过以上设置后,应该能够正常使用中文了,但Cmd.exe(命令行)下面,仍然是无法显示中文文件名,主要是因为字体的原因,修改注册表:
HKEY_CURRENT_USER\Console\%SystemRoot%_system32_cmd.exe
在此项下面,修改:
FaceName=新宋体
新增:
CodePage=936 (Ipaddr提醒你,这是10进制的936)

此后,Cmd.exe下面也要吧正常的显示中文文件名了。

使用DOS命令批量压缩文件

[不指定 2008/02/28 12:29 | by ipaddr ]

使用Winrar,批量压缩当前目录下,所有的*.txt文件为 *.txt.rar

CD IPADDR/
FOR /R %f in (*.txt) DO RAR a -ow -tk -ep1 -y "%f.rar" "%f"


使用前,需要将WinRAR的安装目录,加到PATH当中。

使用以下命令,批量删除当前目录下的所有*.txt文件:

CD IPADDR/
FOR /R %f in (*.txt) DO DEL "%f"


更多的DOS命令,请参考:http://www.computerhope.com/msdos.htm

用DOS写脚本,实在是太费力了,期待PowerShell。


整个地球都知道rdesktop,有了它,我们可以从Solaris或者Linux使用Windows,当然Windows要开启Windows Terminal Service。虽然也有基于GTK+的tsclient做配置,我还是倾向直接使用命令行,不仅因为自己习惯使用console命令窗口,而且命令行可以加入一些非常有用的选项。

比如:

./rdesktop -u adam -p adam -f -r clipboard:PRIMARYCLIPBOARD -r disk:sunray=/home/yz161846 MachineName

-u 和 -p: 指定用户名和密码
-f : 默认全屏, 需要用Ctrl-Alt-Enter组合键进行全屏模式切换。
-r clipboard:PRIMARYCLIPBOARD : 这个一定要加上,要不然不能在主机Solaris和服务器Windows直接复制粘贴文字了。贴中文也没有问题。
-r disk:sunray=/home/yz16184 : 指定主机Solaris上的一个目录映射到远程Windows上的硬盘,传送文件就不用再靠Samba或者FTP了。

除了这些常用的选项,rdesktop也支持cdrom, floppy软盘的远程映射,详细可以参考rdesktop命令帮助。
./rdesktop -h

rdesktop程序可以自己从www.rdesktop.org上获取代码编译,非常方便。也可以直接从www.sunfreeware.com 下载一份可执行档。

当然如果你不满意这个开源软件,如果花钱选择像Windows的Remote Connection, 或者Citrix这种商业软件。

    rdesktop is an open source client for Windows NT Terminal Server and Windows 2000/2003 Terminal Services, capable of natively speaking Remote Desktop Protocol (RDP) in order to present the user's NT desktop. Unlike Citrix ICA, no server extensions are required.

    rdesktop currently runs on most UNIX based platforms with the X Window System, and other ports should be fairly straightforward.

    rdesktop was initially written by Matthew Chapman based on various scarce documentation, wire sniffs, and trial-and-error. It is released under the GNU Public Licence (GPL). Please send feedback, bug reports and patches to the appropriate mailing list. Patches can also be submitted to the SF patch tracker.

      自从XP问世一来,广大网友一定对远程桌面耳熟能详。远程桌面技术在原来NT/2000终端服务的基础上发展起来的。较之原先的终端服务是一个进步。但有一点不尽人意的是,XP的远程桌面不能实现多用户同时登录,只能一个用户登录,难道Windows XP的远程桌面就此要与多用户登录失之交臂了吗?不是,借由博软软件开发的WinConnect Server,可以让我们突破限制,多用户同时进行Windows XP之旅。  

  下载与安装

  WinConnect Server 当前最新版本是WinConnect Server XP,其开发者博软软件提供了免费试用版供网友们下载,网址是http://www.thinsoftinc.com/download/WinConnect-ServerXP/setup.exe,软件大小为8.40MB。试用版可以全功能使用7天,另外,每个远程工作站只能连接30分钟,30分钟后将自动关闭。

  WinConnect Server的安装很简单,只需要一路单击“下一步”即可完成安装。安装完成后,重新启动系统,WinConnect Server即可开始服务。  

  属性设置

  安装WinConnect Server试用版后,每次启动登录系统时软件都会弹出一个消息框,提醒用户软件的使用期限与工作站的自动关闭时间。此时,你用远程桌面连接来登录该主机,可以发现系统已经不会再像原先那样自动退出登录了。  
  接下来我们来对WinConnect Server进行一些基本的属性设置,双击程序建立于桌面上的“WinConnect Server XP Control Center”快捷方式,登录WinConnect Server XP的控制台。  

  WinConnect Server提供了中英文两种语言界面,你可以单击“选项”/“设置语言”,然后在打开的语言选择框中选择你所喜欢的语言界面,默认为中文。  

  在WinConnect Server控制台中对主机的属性设置极为简单:首先在左侧的主机列表中选择当前主机,如“ZJNU-0000”,单击“动作→属性”,此时程序会将当前主机的服务器信息、服务器设置信息和RDP(远程桌面协议)设置以列表形式显示出来,如图所示。

        经过本人的亲自测试,提供的破解版,连接了10台可以正常连接,而且应用起来的反应较快,按说明是可以支持21个用户的.

khtml2png2

[不指定 2008/02/26 10:42 | by ipaddr ]

khtml2png2
==========

khtml2png is a command line program to create screenshots of webpages. It uses
libkhtml (the library that is used in the KDE webbrowser Konqueror) and
"convert" from the ImageMagick graphic conversion toolkit.


Requirements
============
For running and compiling you need some libraries and tools. You can find the
Debian package names in braces.

 * g++
 * KDE 3.x
 * kdelibs for KDE 3.x (kdelibs4-dev)
 * zlib (zlib1g-dev)
 * cmake


Introducing informations
========================
Extract the archive with: tar xfvz <file name>

Afterwards check the requirements and install missing development packages.


Compiling and installation
==========================
This is done with the usual three steps

 1. ./configure
 2. make
 3. make install


Static file
===========
If you have chosen the precompiled statically linked file you don't need to
install KDE or KDE librariers. Just extract the file with

 bunzip2 <file name>

and place it in a directory used for binaries (e.g. /usr/bin or /usr/local/bin).
If you like you can rename the executable.
!!! Make sure the khtml2png2 file is executable (e.g. chmod +x <file name>). !!!


Running
=======

khtml2png2 [options] url outfile

Options:
  -w, --width <width>       Width of canvas on which to render html [800]
  -h, --height <height>     Height of canvas on which to render html [1000]
  -t, --time <time>         Maximum time in seconds to spend loading page [30]
  --auto <id>               Use this option if you to autodetect the bottom/right border []
  --disable-js              Enable/Disable javascript (enabled by default)
  --disable-java            Enable/Disable java (enabled by default)
  --disable-plugins         Enable/Disable KHTML plugins (like Flash player, enabled by default)
  --disable-redirect        Enable/Disable auto-redirect by header <meta > (enabled by default)
  --disable-popupkiller     Enable/Disable popup auto-kill (enabled by default)

Example:

 khtml2png2 --width 800 --height 1000 http://www.kde.org/ kde-org.png

or

 khtml2png --auto ID_border http://www.kde.org/ kde-org.png

====安装====
1.将PHP5解压到C:\PHP目录
2.修改Apache的配置文件,加入:
LoadModule php5_module "C:/php/php5apache2_2.dll"
AddType application/x-httpd-php .php
修改:
DirectoryIndex index.php index.htm index.html default.htm

====配置====
1.将C:\PHP\php.ini-dist改为php.ini并移动到C:\Windows\目录
2.修改php.ini里面的extension_dir = "C:\php\ext\"
3.打开需要使用的extension,比如php_mbstring.dll, php_mysql.dll
Ipaddr特别提醒:某些extension需要使用其它的DLL,你可能需要将C:\php目录下的相关Dll复制到C:\Windows目录(比如,php_mysql.dll需要将C:\php下的libmysql.dll复制到C:\Windows)
4.重新启动Apache,并检查Apache的error.log是否有PHP的错误信息

====测试====
在Apache的DocumentRoot目录下,创建一个php.php,使用phpinfo()函数,检查PHP是否安装正确,以及所需的extension是否加载.

DRBD (网络磁盘镜像)

[不指定 2008/01/19 17:10 | by ipaddr ]
一、什么是DRBD?
    DRBD 是由内核模块和相关脚本而构成,用以构建高可用性的集群。其实现方式是通过网络来镜像整个设备。您可以把它看作是一种网络RAID。
二、drbd 的应用范围是什么?除此之外,创建高可用性集群还需要什么?
        Drbd 负责接收数据,把数据写到本地磁盘,然后发送给另一个主机。另一个主机再将数据存到自己的磁盘中。其他所需的组件有集群成员服    务,如TurboHA 或 心跳连接,以及一些能在块设备上运行的应用程序。
    例如:
     --裸I/O
     --文件系统及fsck
     --具有恢复能力的数据库。
三、它是如何工作的?
分页: 27/57 第一页 上页 22 23 24 25 26 27 28 29 30 31 下页 最后页 [ 显示模式: 摘要 | 列表 ]