Ubuntu view Processes and Port Usage

Written by Administrator on . Posted in Latest News

Ubuntu view Processes and Port Usage

Many times we are confronted with the doubt if a software is working or not. Either the process stopped or crashed, sometimes it's hard to figure out. This is specially true when we are using the command shell and or the software offers no GUI or way to explicitly tell us if it's running or not. Another very important reason, or maybe the most important, security reasons. Any expert IT "guy" needs to know what processes are runing and what ports are being used by it.

Few quick methods / programs that we can use to find out running processes and associated ports

Remember that some of these might require you to run them as root.

Netstat

$ sudo -i

$ netstat -tulpn

netstat

From this output we can see, i.e. "vpn process iked"

Process iked.real is running on PID 1189 and uses 2 UDP ports, port 4500 and 500. Now we can check the PID number 1189 by running proc/

$ ls -l /proc/1189/exe

proc

Now let's filter the output information of netstat command by using grep on port 22 used by ssh:

grep

 

Fuser

Fuser is also easy to use to achieve our goals

$ fuser 4500/udp

$ ls -l /proc/1189/exe

The returned process is named iked... if you don't know this process, just run man command for process description:

$ man iked

fuser

 

Task

This command is useful to discover the working directory of a process, i.e. iked or PID 1189

$ ls -l /proc/1189/cwd

$ pwdx 1189

To discover the owner of the process, i.e. iked or PID 1189

$ ps aux | grep 1189

or using environ

$ cat /proc/1189/environ

cat

 

ldentifying Open Ports

$ grep port /etc/services

grep 2432 /etc/services

services

 

If you are running a public server, obviously connected to the internet. I strongly recommend you to check for rootkit software(s). Rootkit in linux terms illegal or illegitimate "root" access to your system, in windows terms it's called "administrator" access.

Go to your ubuntu center install a scanner that fills your needs:

ubuntu center

Rooted servers are usually used for SPAM / Malware / Proxy or Dos style attacks on other networks or computers. Keep an occasional eye on your bandwidth graphs as a precaution.

New website V5.1

Written by Administrator on . Posted in Latest News

logo

12/11/10

Upgrade website frontpage to Version 5.1

- New layout and skin.

- New Logo

- several apache upgrades

- directory cleaning and organization for better browsing speeds

- Mysql database cleaning and optimization

- general back-end cleaning and updating

- changes to php.ini... can't really say what ;) security and others ... lol

- new Download Area

- New RSS & Newsletter for Blog & Download Area... Remember to subscribe to get the goodies in your inbox

- New subscription system to support the downloads bandwidth.


Make sure to visit My BLOG for linux goddies... enjoy

... the future is open source

************************************************

03/10/10

Upgrade website frontpage to Version 4.5

- New layout and skin.

- SEO optimization with better url rewrite... google is ranking 3... hope to get 6 or more in the next few months

- new sitemap and ror

- several apache upgrades

- directory cleaning and organization for better browsing speeds

- cache is officially off

- Mysql database cleaning and optimization

- general back-end cleaning and updating

-server core upgrades

- changes to php.ini... can't really say what ;) security and others ... lol

- new ajax search engine... wow works like a charm, give it a go and search i.e. ubuntu


Make sure to visit My BLOG for linux goddies... enjoy

... the future is open source

************************************************

08/11/09

Upgrade website frontpage to Version 3.1

Make sure to visit My BLOG for linux goddies

************************************************

Just a release not of my new website.

Version 2.0 patched to 2.2 is up and running fast and furious. There's still a lot I want to implement over time.

Meanwhile hope you enjoy all the goodies in it.

Download Area

Written by Administrator on . Posted in Latest News

PmaBox Download Area

(You need to make a DONATION and support Open Source to be able to download some files)

Joomla (Restricted requires Registration & Donation)

 

Jomsocial (Restricted requires Registration & Donation)

 

PmaBox (Restricted requires Registration & Donation)

 

Linux - Ubuntu (Open for Download requires Registration)

Ubuntu Crack & Hack Win7 User Passwords & Files

Written by Administrator on . Posted in Latest News

Ubuntu Crack & Hack Win7 User Passwords & Files. Also how to prevent this

win7

You can use this how-to for several purposes. The purpose intended here is to simply to recover a forgotten password and or access the user private files. NOT MY INTENT, this tutorial may also be used with the worse of intentions to crack, hack a win7 user password and or have illegitimate access to the user private files. The procedure is really easy and fast. Also included in the purpose of this article is ways to help users avoid these situations.

The fastest way and by far the easiest, is to use a Linux Live CD to access the user private files

In this case we are only going to access private files, access to win7 OS is not required. Download the latest Ubuntu iso file, burn it ti a cd or use the USB creator to make a bootable Ubuntu USB pen "stick".

ubuntu live cd

Insert the live cd or USB pen into the win7 computer you want access to and boot with it. As the above screenshot shows, after booting and selecting the language you want to use, you should select the option "Try Ubuntu without any changes to your computer".

Ubuntu Loaded

After fully loading the live cd, then it's just a matter of going to the top menu "Places". From there, and using Nautilus (file explorer), you will be able to see the win7 drive (NTFS) and or any other drives used by win7. Selecting any of those drives you will be able to see the files inside. THAT EASY.

If you get prompted, "You do not have permission to access this file" then, some of the files require ROOT access. Open a Terminal Window (Applications > Accessories > Terminal) and type gksudo nautilus. Leave the password blank when prompted. Now, a new Nautilus (file explorer) window opens and you have access to everything. THAT EASY.

How can you avoid this:


This can only be avoided by encrypting your private win7 files or just simply encrypting the entire win7 OS. The user trying to get your files will still be able to see them, but this time not even ROOT access will grant him permission to open them.


 

Another way is to use the command line FU. Reset the password with a linux System Rescue cd

Harder to implement but more effective, this way will give you access to win7 OS itself. For this end we will use the Ubuntu System Rescue CD. Most of the work will be done using the command line, please follow all the steps for success.

ubuntu terminal

Again, you have to download the iso file and create a bootable CD or USB pen "stick". While booting with the CD or SUB pen, when the blue screen comes on, press the default option. Allow everything to load until you get presented with a command line interface, type fdisk -l to list all the drives and partitions on the win7 computer. Select the win7 partition, usually the largest partition marked with NTFS and write down it's name, i.e. /dev/sda2

Now let's start to run some commands and remember to replace /dev/sda2 with your correct partition, the one you wrote down:

ntfs-3g /dev/sda2 /mnt/windows –o force

Let's navigate to the win7/System32/config directory by issuing the following command:

cd /mnt/windows/Windows/System32/config

Let's edit the SAM file inside this folder, to list all users type:

chntpw –l SAM

Write down or remember the username you want to access, replace User Name with the correct name.

chnptw -u "User Name" SAM

At the next screen, choose the first option by typing the number 1 and hitting Enter. This will clear the user password, making it blank.

Next it will ask you to write hive files, press Y and then press Enter. The result should say OK.

Then just type reboot in order to restart the computer. Remove the live cd or USB pen.

Now Windows will start normally. Or almost, because this time you will be able to login to win7 with that user's account and without a password.

How can you avoid this:

Again, the above method will not avoid encryption. By changing the user password will disallow access to previous encrypted files, and if the user encrypted the entire win7 OS, this method will be useless.


 

Now let's try Ophcrack brute force methods

This method will grant you full access even to encrypted files. In the brute force method are are not trying to reset the password. We are actually going to recover, rescue the user original password, therefore having access to everything the user had access to... including encrypted files.

ophcrack

This time you need to download and burn the Ophcrack Live CD. Since win7 version is still not available, download and use the Vista version that works also for windows 7.
Boot your computer with it. It will take some time, allow it to fully load. Once it's done and you are presented with a desktop environment, you can start to crack passwords.
The cracking process might take a long time.
While the software is running you can see the passwords appear in the top pane of the window.
Once you have the password, write it down, reboot and remove ophcrack cd.
Let windows 7 boot and login with the users password. This time will will have access to encrypted files. THAT EASY.
 
How can you avoid this:

You can't. But you can surely make it harder or nearly impossible to crack.

The best way is to have complicated passwords. This will give ophcrack a very hard time to figure out your password, with very long execution times.

Password Recommendations "complicated password":

The following recommendations are basic security and apply to many ends, not only for ophcrack purpose:

Complicated password =  (using a combination of letters, numbers and special characters).

The password should be more than 14 characters.

Do not use the same password for different ends.

Always change your password at least every 90 days.

PmaBox RSS Feed

Written by Administrator on . Posted in Latest News

www.pmabox.com upgraded with RSS Feeds

pmabox rss

The BLOG page is currently receiving thousands of visitors per day eager to read all the tutorials, How-to's and "secrets"  about linux ubuntu operating systems and applications.

Why not getting the latest BLOG entires directly in your inbox? Sounds right, all the goodies fresh in your inbox.

You can subscribe your RSS Feeds from feedburner using the link below or by clickink the top RSS icon.

http://feeds.feedburner.com/pmabox