VNC is considered to be an insecure protocol. The password is sent using fairly weak encryption, and the rest of the session is not encrypted at all. For that reason, when using VNC over an untrusted network or internet, I recommend you tunnel it over SSH.
To forward VNC port 5900 on localhost to remote host port 5900
ssh -L 5900:localhost:5900 vncserver
If your ssh server is listening on other port like: 222
ssh -L 5900:localhost:5900 vncserver -p 222
The same procedure can be done on a window$ machine using putty Read the rest of this entry »
tar is a compression utility that allows you to compress files and backup up your system.
Here are some useful tar commands to backup and restore files.
if you want to backup the content of /home and /etc:
tar cvpf /mnt/backup/tarball_bakup /home /etc
Once you have a full backup of your system you could do incremental backups using the –newer option, which backs up everything that has changed since the specified date
tar cvpf /mnt/backup/tarball_backup --newer 19Aug09 /home /etc
when things go wrong and you want to restore the content of backup
tar xvpf /mnt/backup/tarball_backup home/user
Sometimes you accidentally deleted a file; therefore, you only need to restore a single file. Remember when restoring from a tar archive, there’s no absolute path, in other words, tar removes all the leading slash “/” so /home/user/file1 becomes home/user/file1. And you should be in the / “root” directory.
tar xvpf /mnt/backup/tarball_backup home/user/shell1.sh
What about if you don’t know the exact name of the file but only part of the file name
tar tvpf /mnt/backup/tarball_backup | grep shell*
or
tar tvpf /mnt/backup/tarball_backup | more
to page trhough the backup file.
Here’s a good shell script that performs monthly, weekly, and daily backus to a tgz file. Read the rest of this entry »
I’ve been meaning to do a tutorial on cracking WPA wireless for quite a while, but I found this video that explains the methodology really simple. Let me say that cracking WPA is not like cracking WEP, in WEP you’re exploiting a vulnerability in the way the encryption algorithm is implemented, but in WPA the only vulnerability will be in the strength of the user passphrase. Yes you’ve guessed it, when cracking WPA basically what you’re doing is brute-forcing the user password, in other words the success of your attack will depend on your dictionary or password list. If the user’s passphrase is not in your dictionary, you will never crack the WPA key. There are several types of WPA dictionary list out there, but I highly recommend using rainbow-tables which can be several Gigs in size. How to find them?… Google is your friend! Read the rest of this entry »
Recently I had to install ubuntu on a machine with a bad cdrom drive, which made me look for alternative ways of installing ubuntu. This article describes two ways of how to install Ubuntu by copying the content of the installation CD to an USB drive such as a memory stick (or flash drive) and making the USB stick bootable. This is handy for machines like ultra portable notebooks that do not have a CD drive but can boot from USB media. On a side note, I have to point out that booting from USB stick can be very handy, but there is no guarantee that it will work with your particular combination of computer and USB stick. Even if you are able to boot from your USB stick on one computer, this does not mean that it is going to work with the next one. You can try experimenting with different settings in your PC’s BIOS to make it work.
Read the rest of this entry »
Not too long ago, I decided to install my bartpe onto a usb flash drive, as most modern pc today are capable of booting from usb devices, and in the process I thought of making it a dual boot with one of my favorite distros (Backtrack3) so for this tutorial we will go over the process of installing UBCD4win and Backtrack3 onto a usb flash drive in this case I use a 2Gb Sandisk. What is UBCD4win? well, is an application that is used for installing bartpe(bart preinstalled environment) on to a cd or usb flash drive from a windows xp install cd, very useful for repair and maintenance task. It will give you a complete Win32 environment with network support, a graphical user interface (800×600) and FAT/NTFS/CDFS filesystem support. Very handy for burn-in testing systems with no OS, rescuing files to a network share, virus scan and so on. Here you can find a complete list of tools that will be already built in your bartpe install . You can think of bartpe as a cut down version of windows xp. Read the rest of this entry »
I recently decided to upgrade my laptop to windows Vista, which was in a dual boot configuration between windows XP and Ubuntu, after the upgrade I was no longer able to boot into Ubuntu, and that is because the last OS installed usually overwrites the MBR (Master Boot Record), so in this tutorial we will go over the process of bringing your pc back to dual boot after upgrading your XP installation to Vista, on a side note, don’t forget that this method described here puts GRUB back in the MBR (Master Boot Record) of the hard drive instead of the root partition, this is usually fine, unless you have an alternative boot manager like Boot Read the rest of this entry »
After having to reset my Ubuntu box password, I decided to come up with this tutorial on how to reset linux password, in this case we will be taking two different methods…