Jul 3, 2014

Druknet PPoE VPI/VCI

If you are using Druknet broadband, following are the VPI and VCI value you need to know when you configure in your Wireless Access Point.

VPI (Virtual Path Identifier) = 0
VCI (Virtual Channel Identifier) = 35

Jun 22, 2014

Update Kali Linux from ISO image with no network

Mount the ISO to /mnt directory
sudo mount -t iso9660 -o loop /path/to/iso /mnt/

Modify the /etc/apt/sources.list
Add:
deb file:///mnt kali main contrib non-free

Comment:
Comment out all other repository locations from the file except the about one.

Update the system
sudo apt-get update
sudo apt-get dist-upgrade

Un-comment
We have now updated the system from the ISO, now we need to un-comment back the official repository locations and comment our newly added ISO repository.

Un-mount the ISO
sudo umount /mnt

Apr 30, 2014

How to connect to remote desktop using linux

Remmina has now been moved to FreeRDP. To connect to remote desktop using freerdp command

sudo  xfreerdp /size:800x600 /u:administrator /v:192.168.1.1:3389

with the above command I am connecting to 192.168.1.1 windows server where remote desktop is enabled with the screen resolution 800x600. By default remote desktop works on tcp port 3389.

Jan 21, 2014

Clear Zimbra Mail Queue

If you want to clear mail queue from specific email address run the following command in your terminal.

Below will remove mail queues, by checking FROM sender. eg. remove all mail queues sent by info@example.com

/opt/zimbra/postfix/sbin/mailq | tail -n +2 | grep -v '^ *(' | awk 'BEGIN { RS = "" } { if ($7 == "info@example.comt") print $1 } ' | tr -d '*!' | xargs -rn1 /opt/zimbra/postfix/sbin/postsuper -d

Below will remove mail queues, by checking TO sender. eg. remove all mail queues sent to info@example.com

/opt/zimbra/postfix/sbin/mailq | tail -n +2 | grep -v '^ *(' | awk 'BEGIN { RS = "" } { if ($8 == "info@example.comt") print $1 } ' | tr -d '*!' | xargs -rn1 /opt/zimbra/postfix/sbin/postsuper -d


Nov 24, 2013

Things to do after install Kali Linux

Kali Linux basically come with pen testing packages, but you still need some day to day utilities packages. Here are the list of things that I do after installing Kali Linux.

1. Installing Archiving package
sudo apt-get install unrar unace rar unrar p7zip zip unzip p7zip-full p7zip-rar file-roller

2. Installing Gimp
sudo apt-get install gimp

3. Installing Virtual Box
sudo apt-get install virtualbox

4. Installing Remote Desktop Client
sudo apt-get install remmina

5. Installing FTP Client
sudo apt-get install filezilla filezilla-common

6. Installing Adobe Flash Player
sudo apt-get install flashplugin-nonfree

7. Installing PlayonLinux
sudo apt-get install playonlinux

Finally adding deb-multimedia.org repository . So that you can install additional multimedia packages on you Debian box.

8. Installing video editing package
sudo apt-get install avidemux

Oct 16, 2013

Disable Ubuntu Guest Session

Follow the following steps in the terminal

sudo -i
gedit /etc/lightdm/lightdm.conf

Add the following line and save
allow-guest=false

restart lightdm


Oct 4, 2013

Remove Log files from Checkpoint

Here is how you can delete checkpoint old log files

1. Go to Gaia Terminal
2. Enter expert mode
3. echo $FWDIR to get the log file location
4. Go to the Log directory cd $FWDIR/log
5. rm 2013-10-01* to remove 1st Oct 2013 logs

Jul 20, 2013

Install Latest LibreOffice in Linux

Download the latest version on LibreOffice from its website.

1. Uncompress the file
tar zvxf LibreOfficeXXXX.tar.gz

2. Go to respective folder
cd DEBS or cd RPMS

3. Installation
dpkg -i *.deb or yum localinstall *.rpm

4. Desktop Integration
cd desktop-integration

5. Install Desktop Integration
dpkg -i *.deb or yum localinstall *.rpm

*This procedure will work on RedHat & Debian Linux

Jul 18, 2013

Install Flash Player in Debian Linux

How to install Adobe Flash Player  under Debian Linux.

1. Install
apt-get install flashplugin-nonfree

2. Update/Upgrade
update-flashplugin-nonfree --install

Jun 10, 2013

Unable to start armitage in Kali Linux

If you are getting error message like "could not connect to database", when you run armitage. Please make sure that postgresql service is running and also if you encounter "database.yml" error then make sure metasploit service is running.

Simple tips is the start following services and then run armitage.

1. service postgresql start
2. service metasploit start