Skip to main content

Posts

Showing posts from April, 2010

Wget: Mirroring Website

WGET is Ultimate Downloader . While you can use it simply to retrieve a single file from a server, it is much more powerful than that and offers many more features.One of its features is mirroring website. Mirroring simply means downloading the entire contents of a Web site and uploading it somewhere else. So, we can make local copy of a website using wget. The basic command to mirror website is $ wget -m http://www.example.com This command will allow you to download website but it can't make a complete local copy of a website. This command only download the page but the links still point to the real URLs including the images and stylesheets. We have to add another option to make links not point to real URLs. Add option -k after -m $ wget -m -k http://www.example.com Now, the links will point to next page in our local copy website. To delay your download, you can add option -w and how much time that you want to delay it. Because if we delay the mirroring, it can reduce the load

Vi Editor : Search and Replace

Vi as a text editor can search and replace like another text editor. Here’s vi editor’s syntax to add a “ # ” in front of every line. It is useful when coding and reusing an old script or editing file configuration: :1,$ s/^/#/g To “ undo ” this command (i.e. the inverse): :1,$ s/^#//g Useful variant. If you just want the lines below your cursor to have a “#”: :.,$ s/^/#/g Another Example (replace) Replace first match on current line :s/OLD/NEW Replace all matches on current line :s/OLD/NEW/g Replace matches between lines 10 and 20 :10,20s/OLD/NEW/g Replace matches from line 10 to the end of file :10,$s/OLD/NEW/g Replace matches from cursor to end of file :.,$s/OLD/NEW/g Add the word “ NEW ” in front of every line :1,$s/^/NEW/g Source : http://technotes.twosmallcoins.com/?p=18

WGET Ultimate Free Downloader

GNU WGET derived from World Wide Web and get, is a free software package for retrieving files or downloader. It can using many protocols like HTTP, FTP, and HTTPS. GNU Wget or Wget is a non-interactive commandline tool. Written in a highly portable style of C with minimal dependencies on third-party libraries, Wget requires little more than a C compiler and a BSD-like interface to TCP/IP networking. Designed as a Unix program invoked from the Unix shell, the program has been ported to numerous Unix-like environments and systems, including Microsoft Windows via Cygwin, and Mac OS X. Wget can resume aborted downloads. It also can use filename wild cards and recursively mirror directories. For you connected behind proxy, you still can use wget, because it support HTTP Proxies. And also it supports HTTP cookies and persistent HTTP connections. And there are many other features from Wget. Basic usage this Wget is $ wget http://www.example.com/files.to.download Now, it has been used as

Nessus Vulnerability Scanner

Tenable Network Security released Nessus 4.0.2. This version fix all bug from the last released. New version of nessus support newest operating system from Apple, Windows and Linux . Nessus can be used to audit: * credentialed and un-credentialed port scanning * network based vulnerability scanning * credentialed based patch audits for Windows and most UNIX platforms * credentialed configuration auditing of most Windows and UNIX platforms * robust and comprehensive credentialed security testing of 3rd party applications * custom and embedded web application vulnerability testing * SQL database configuration auditing * software enumeration on Unix and Windows * testing anti-virus installs for out-of date signatures and configuration errors New updates from Nessus 4.0.2 * Support for Windows 7 – Changes in the TCP/IP stack required updates for the NessusClient and Nessus server to run on this platform. * Support for Mac OS X “Snow Leopard” – Apple also introduced changes on the latest v