PoiNtEr->: July 2011

                             Difference between a dream and an aim. A dream requires soundless sleep, whereas an aim requires sleepless efforts.

Search This Blog

Wednesday, July 13, 2011

Command line Applications to Hide text into images


Ever find yourself with too many passwords to remember and no idea where to keep them so that only you can find the password list? Creating a password.txt file in your root directory is out of the question, as is a password-protected OpenOffice.org file. A piece of paper hidden somewhere is not a good idea, because after you forget where did you put it, someone else will find it and missuse it. Instead of these approaches, consider using steganography, a method for hiding sensitive information inside some other object, typically a JPEG picture or a sound file.


With steganography, a plain text file is merged with a picture or sound file. The resulting file looks and sounds the same -- only the size of the file is slightly changed. For extra security, you can encrypt the text file before you merge it.

Here's a look at some useful tools that you can use to hide and unveil sensitive information inside an object. Most of these programs and tools are available in package repositories for different Linux distributions.

OutGuess

OutGuess is console-based universal steganographic tool that can hide information inside picture objects. OutGuess can be used on Linux, *BSD, Solaris, AIX, HP-UX, Mac OS X, and Windows.

Suppose I want to securely send a coworker a root password for a production server. I can start by putting the password in a pass.txt file, then encrypt it with a secret key ("summer" -- shh, don't tell anyone) and mix the encrypted version with an image called grill.jpg. OutGuess can do that with one command:

~$ outguess -k summer -d pass.txt grill.jpg summer-grill.jpg
output of $outguess -k suffer -d flag.txt 1.jpg suffer-1.jpg:
Reading 1.jpg....
JPEG compression quality set to 75
Extracting usable bits:   46389 bits
Correctable message size: 20587 bits, 44.38%
Encoded 'flag.txt': 368 bits, 46 bytes
Finding best embedding...
    0:   198(49.5%)[53.8%], bias   179(0.90), saved:    -1, total:  0.43%
    4:   183(45.8%)[49.7%], bias   175(0.96), saved:     0, total:  0.39%
   88:   189(47.2%)[51.4%], bias   164(0.87), saved:     0, total:  0.41%
  241:   191(47.8%)[51.9%], bias   159(0.83), saved:     0, total:  0.41%
241, 350: Embedding data: 368 in 46389
Bits embedded: 400, changed: 191(47.8%)[51.9%], bias: 159, tot: 45997, skip: 45597
Foiling statistics: corrections: 85, failed: 0, offset: 22.923077 +- 41.335624
Total bits changed: 350 (change 191 + bias 159)
Storing bitmap into data...
Writing suffer-1.jpg....

You don't need to use the -k option to encrypt the sensitive data with a secret key. If you leave it off, however, anyone who knows there's a file buried in the image can extract the output file.

Now I have an image named summer-grill.jpg that holds my production server's root password, and I can mail it to my coworker. Anyone who sees the picture won't notice anything strange, since the data in the image object is not visible to the human eye.

When my coworker receives the picture, he needs to extract the information from the file. As long as he knows the secret key I used for the encryption, he can run the command:

~$ outguess -k summer -r summer-grill.jpg pass.txt
example:
vishal@Eva:~/research$ outguess -k suffer -r suffer-1.jpg pass.txtReading suffer-1.jpg....
Extracting usable bits:   46389 bits
Steg retrieve: seed: 241, len: 46


If you don't specify the -k option and provide the key, OutGuess will extract the pass.txt file, but it won't be readable.

Steghide

Steghide is another program you can use to hide sensitive data inside image and audio files. The default encryption algorithm is Rijndael with a key size of 128 bits, which is basically AES (Advanced Encryption Standard), but you can choose from many other encryption algorithms as well. Steghide runs under both Linux and Windows.

Let's use the same scenario from our previous example. The equivalent Steghide command is:

~$ steghide embed -cf grill.jpg -sf summer-grill.jpg -ef pass.txt -p summer


example:
vishal@Eva:~/research$ steghide embed -cf 1.jpg -sf 123.jpg -ef flag.txt -p summer
embedding "flag.txt" in "1.jpg"... done
writing stego file "123.jpg"... done


To extract the pass.txt file from the summer-grill.jpg picture, use this Steghide command:

~$ steghide extract -sf summer-grill.jpg
example:
vishal@Eva:~/research$ steghide extract -sf 123.jpg
Enter passphrase:
wrote extracted data to "flag.txt".



You'll be asked for a password, and the utility will extract the pass.txt only if your password (secret key) is correct. Note that when extracting we didn't specify any output file. That's because Steghide automatically knows what the file name was that was inserted and extracts the file with the same name.

  

How to crack PAsSworD protected RAR file

unzip any zipfile   


For Ubuntu, install required lib:

$ sudo apt-get -y install libxml2-dev


Install Rarcrack:

$ tar -xvjf rarcrack-0.2.tar.bz2
$ cd rarcrack-0.2
$ sudo make
$ sudo make install


Crack password compress file:

$ rarcrack  --type rar file.rar
Or

$./rarcrack --type rar file.rar


Your password is locate at:

file.rar.xml

Setup name server for a domain in ubuntu(linux)

Goal setup name server for domain called foo.com.

Step # 1: Install BIND                                              
First you need to install BIND server.
Code:

$ sudo apt-get install bind9

Step # 2: Define foo.com domain:
You need to add foo.com domain to bind configuration file /etc/bind/named.conf.local

Open this file and append following text (zone and reverse zone for foo.com):
Code:

$ sudo gedit /etc/bind/named.conf.local

Add foo.com zone:
Code:

zone "foo.com" {
        type master;
        file "/etc/bind/zones/foo.com.zone";
        };

zone "1.55.202.in-addr.arpa" {
     type master;
     file "/etc/bind/zones/rev.1.55.202.in-addr.arpa";
};

Save the file.

Step # 3: Create a /etc/bind/zones/ directory:
Code:

$ sudo mkdir /etc/bind/zones

Step # 4: Create a zone file for foo.com domain:
Now create a zone file /etc/bind/zones/foo.com.zone
Code:

$ sudo gedit /etc/bind/zones/foo.com.zone

Append following text:
Code:

foo.com. IN      SOA     ns1.foo.com. admin.foo.com. (
          2006071801
          28800      
          3600       
          604800   
          38400 )   
foo.com. IN      NS      ns1.foo.com.
foo.com. IN      MX     10 mta.foo.com.

www           IN      A       202.55.1.2
mta              IN      A       202.55.1.2
ns1               IN       A        202.55.1.2

Create the reverse zone file:
Code:

$ sudo gedit /etc/bind/zones/rev.1.55.202.in-addr.arpa

Append following text
Code:

@ IN SOA ns1.foo.com. admin.foo.com. (
                        2006071801; serial
                        28800; refresh, seconds
                        604800; retry, seconds
                        604800; expire, seconds
                        86400 ); minimum, seconds

                     IN      NS ns1.foot.com.
                     IN      PTR    foo.com

Save the file and restart the BIND server:
Code:

$ sudo /etc/init.d/bind9 restart

Test it:

$ nslookup foo.com

Server: 202.55.1.2
Address: 202.55.1.2#53

Name: foo.com
Address: 202.55.1.2

Sunday, July 10, 2011

Kill unresponsive program in Ubuntu(linux)



Ubuntu is a quite responsive operating system for our daily use. But beyond that,   there could be situations that might fall you into trouble when testing, running heavy-weight programs and facing exceptional situations when changing system settings. Ubuntu has an in built method to handle such situations. But what if it couldn’t? Hence, it’s always quite handy to know the proper ways of killing unresponsive programs to save your time.


With years of experience with Ubuntu I’m going to show you 3 easy ways to achieve this goal.




1. X Kill

Don't kill me Please!!
This is the most easiest way of killing unresponsive programs individually.

Press Alt+F2 and you’ll be presented with the Run Application box. Type xkill in it and press Enter.
Now your mouse pointer will be changed to a cross or a skull.
Click on the program window you want to close.

Xkill in Run


2. The Command Line Way – with ps Command!

Okay, here’s the scenario. Let’s say that you are developing a program or a 3D animation and it uses a heavy amount of resources. Now with the time your UI might get laggy and you want to clear up some unwanted resources which are running in the background (which you normally can’t see!).

It’s pretty simple. Just open up a terminal and enter this command.
ps -A[/bash]

This will show up each and every program that runs on your computer.

Now check the list it shows up to find the program you want to close.

Run this command in the same terminal.


kill -9

Note: replace "" with the process id you found.
 
Kill Command
 

Or if you know the program you want to close and you just want to search for its id you can use the grep command as follows:


ps -A | grep program_name


Replace program name with the program you want to kill.

For an example, let's say we want to find the process IDs of Transmission. The command would be:


ps -A | grep transmission



3. Killing the X Server


This is a handy feature, but for some odd reason they have disabled the key sequence of Ctrl+Alt+Backspace in Ubuntu 10.04/10.10 to kill and restart the X Server.



To enable it, open up a terminal and enter the following command:







gconftool-2 --type Boolean --set /desktop/gnome/interface/menus_have_icons True


   
   
Enabling Ctrl+Alt+Backspace



That's it! Now if somehow your Ubuntu box gets stuck you can always use Ctrl+Alt+Backspace to kill and restart the X Server.


Hope this post will save a lot time of our readers! We would be glad to hear your comments.

Wednesday, July 6, 2011

Nettech Summer Training at BIT KOLKATA




Well soon i am going to join nettech summer program on Network Management.
computer network is one of my favorite subject ,so i thing its going to be really interesting for me.
well before joining the program i tried to take the feedbacks of student who are doing the same course or already done ..and believe me all replys were awesome
I am listing some of them here ::



      Akash Sehgal
  • dude dun wry......even i was worried abt d difficulty level....bt as a matter of fact...the faculty is "A" grade facutly who wud do nything to make ur concepts clear....i ws not able to score in d beggining bt later i cleared all my xams...bt it wud b better if u go for hostel as they provide lab facilities even in d late hours....if i clear all ur doubts u won't njoy d competition and i guarantee u....that u won't b disappointed seeing ur certificate....jst focus in d class nd keep practicing in d lab....nd there'll be more use of linux...for which u'll b trained more than enough....jst go for it...today ws my last day...nd i dun wanna leave...dis is what u too will feel!!:)


       Deepak Agarwal
  • hello vishal...
    well after the completion of prog i just want to tell u that it is the best course i have evr seen......
    nothing is difficult...i am a ec student then too i gained 60 position at end which means that they are so professional that they can make any difficulty very simple..
    practical tests are very awsom....group tasks and individual....based on what they teach.....
    linux is the os which they wil luse...and nthing to worry...these are awsom.....!!!


    Sudeep Gangal u will first if all use linux...
    they will train u there

    next T10 is the craziest and the best exam i have seen ever

    u have 4 type of test here
    Theory test T10 u can get the no of marks on the way how u have performed

    Theory LAB test: 10 questions 10 marks +1 for right ans -1 for wrong answer

    lab indivisual:- u alone has to solve a given problem on the computer placed in front of u
    if ur work is done without any visible error u get 10 or not u get 0

    lab group: ur grp will be made there... in this group task will be there
    ur grup has to perform it
    if error are there then 0 to all and if no errors 10 to all

    the difficulty level is next to 0 si just yr mind which needs to get in action  



  • its simple yu just need to keep yur kool in that time...the task is easy n logical......if yu dont panik its allrite..yu can do well....


    Samrat Roy Chowdhuri <samrat.roychowdhury@gmail.com>
    its going 2 b once in a lifetime
    experience 4 u, i cn guarantee that. they will teach 4m d basics
    starting wd linux n d shell in linux. then they wl move on to apache
    web server n hw to manage ur network using d same. thr wl b hacking
    sessions, n u wl b made knwn abt a couple of ways to hack. its a
    rigorous training n u nd 2 gv ur cent percent 2 achv everythng. thr wl
    b indivdl n group lab test, n indvdl written tests. prepare urslf
    mentally b4 u go thr. n b on time, else u wl suffer. n in tests u wl
    hv 2 b precise n perfect. either u get 10 or 0 dnt mind, m replying
    thru mobile hence using sms lingos.


    Akshat Kumar Arya
    • hi vishal, it was very nice experience of my life.in the test , they asked tricky question. there are some tips if you want to score a lot.
      1. pay attention in class, and prepare all notes which was discussed in class.
      2.do not miss any line
      3.be relax when u are in T10 exam.

      and last thing is practical , you have to know all operating system. Mr. santu (director and program co-ordinator )have 32 OS in his laptop. but we use Linux mostly..




    These are some of those feedbacks which i got from different students who
    joined same program by nettech at different venues.After getting so many affirmative reponses i am really excited about this program and the journey which will take me to a new level of fun and knowledge .

    More on My Experience Nettech soon..!!

Tuesday, July 5, 2011

Determine the Manufacturer of a PCI Device on Ubuntu

How do I determine the manufacturer of a PCI device under Linux operating systems?

To find out or determine the manufacturer of a PCI device from Linux operating system, use the lspci command. Open a command-line terminal (select Applications > Accessories > Terminal), and then type the following command:

lspci 
output:
vishal@Eva:~$ lspci
00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub (rev 0c)
00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (primary) (rev 0c)
00:02.1 Display controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (secondary) (rev 0c)
00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 02)
00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 02)
00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 02)
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 02)
00:1c.4 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 5 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f2)
00:1f.0 ISA bridge: Intel Corporation 82801HEM (ICH8M) LPC Interface Controller (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 02)
02:09.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 05)
02:09.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 22)
02:09.2 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 12)
02:09.3 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 12)
09:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8040 PCI-E Fast Ethernet Controller (rev 12)
0b:00.0 Network controller: Broadcom Corporation BCM4312 802.11b/g LP-PHY (rev 01)





To get detailed output, enter
sudo lscpi -v 
output:
vishal@Eva:~$ sudo lspci -v
[sudo] password for vishal:
00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub (rev 0c)
    Subsystem: Dell Device 022f
    Flags: bus master, fast devsel, latency 0
    Capabilities: [e0] Vendor Specific Information: Len=0a
    Kernel driver in use: agpgart-intel

00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (primary) (rev 0c) (prog-if 00 [VGA controller])
    Subsystem: Dell Device 022f
    Flags: bus master, fast devsel, latency 0, IRQ 44
    Memory at fea00000 (64-bit, non-prefetchable) [size=1M]
    Memory at e0000000 (64-bit, prefetchable) [size=256M]
    I/O ports at efe8 [size=8]
    Expansion ROM at [disabled]
    Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
    Capabilities: [d0] Power Management version 3
    Kernel driver in use: i915
    Kernel modules: intelfb, i915

00:02.1 Display controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (secondary) (rev 0c)
    Subsystem: Dell Device 022f
    Flags: bus master, fast devsel, latency 0
    Memory at feb00000 (64-bit, non-prefetchable) [size=1M]
    Capabilities: [d0] Power Management version 3

00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 02) (prog-if 00 [UHCI])
    Subsystem: Dell Device 022f
    Flags: bus master, medium devsel, latency 0, IRQ 20
    I/O ports at 6f20 [size=32]
    Kernel driver in use: uhci_hcd

00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 02) (prog-if 00 [UHCI])
    Subsystem: Dell Device 022f
    Flags: bus master, medium devsel, latency 0, IRQ 21
    I/O ports at 6f00 [size=32]
    Kernel driver in use: uhci_hcd

00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 02) (prog-if 20 [EHCI])
    Subsystem: Dell Device 022f
    Flags: bus master, medium devsel, latency 0, IRQ 22
    Memory at fed1c400 (32-bit, non-prefetchable) [size=1K]
    Capabilities: [50] Power Management version 2
    Capabilities: [58] Debug port: BAR=1 offset=00a0
    Kernel driver in use: ehci_hcd

00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 02)
    Subsystem: Dell Device 022f
    Flags: bus master, fast devsel, latency 0, IRQ 45
    Memory at fe9fc000 (64-bit, non-prefetchable) [size=16K]
    Capabilities: [50] Power Management version 2
    Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
    Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
    Capabilities: [100] Virtual Channel
    Capabilities: [130] Root Complex Link
    Kernel driver in use: HDA Intel
    Kernel modules: snd-hda-intel

00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 02) (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0
    Bus: primary=00, secondary=09, subordinate=09, sec-latency=0
    I/O behind bridge: 0000d000-0000dfff
    Memory behind bridge: fe800000-fe8fffff
    Prefetchable memory behind bridge: 0000000080000000-00000000801fffff
    Capabilities: [40] Express Root Port (Slot+), MSI 00
    Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
    Capabilities: [90] Subsystem: Dell Device 022f
    Capabilities: [a0] Power Management version 2
    Capabilities: [100] Virtual Channel
    Capabilities: [180] Root Complex Link
    Kernel driver in use: pcieport
    Kernel modules: shpchp

00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 02) (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0
    Bus: primary=00, secondary=0b, subordinate=0b, sec-latency=0
    I/O behind bridge: 00002000-00002fff
    Memory behind bridge: fe700000-fe7fffff
    Prefetchable memory behind bridge: 0000000080200000-00000000803fffff
    Capabilities: [40] Express Root Port (Slot+), MSI 00
    Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
    Capabilities: [90] Subsystem: Dell Device 022f
    Capabilities: [a0] Power Management version 2
    Capabilities: [100] Virtual Channel
    Capabilities: [180] Root Complex Link
    Kernel driver in use: pcieport
    Kernel modules: shpchp

00:1c.4 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 5 (rev 02) (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0
    Bus: primary=00, secondary=0c, subordinate=0d, sec-latency=0
    I/O behind bridge: 0000c000-0000cfff
    Memory behind bridge: fe400000-fe6fffff
    Prefetchable memory behind bridge: 00000000f0000000-00000000f01fffff
    Capabilities: [40] Express Root Port (Slot+), MSI 00
    Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
    Capabilities: [90] Subsystem: Dell Device 022f
    Capabilities: [a0] Power Management version 2
    Capabilities: [100] Virtual Channel
    Capabilities: [180] Root Complex Link
    Kernel driver in use: pcieport
    Kernel modules: shpchp

00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 02) (prog-if 00 [UHCI])
    Subsystem: Dell Device 022f
    Flags: bus master, medium devsel, latency 0, IRQ 20
    I/O ports at 6f80 [size=32]
    Kernel driver in use: uhci_hcd

00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 02) (prog-if 00 [UHCI])
    Subsystem: Dell Device 022f
    Flags: bus master, medium devsel, latency 0, IRQ 21
    I/O ports at 6f60 [size=32]
    Kernel driver in use: uhci_hcd

00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 02) (prog-if 00 [UHCI])
    Subsystem: Dell Device 022f
    Flags: bus master, medium devsel, latency 0, IRQ 22
    I/O ports at 6f40 [size=32]
    Kernel driver in use: uhci_hcd

00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 02) (prog-if 20 [EHCI])
    Subsystem: Dell Device 022f
    Flags: bus master, medium devsel, latency 0, IRQ 20
    Memory at fed1c000 (32-bit, non-prefetchable) [size=1K]
    Capabilities: [50] Power Management version 2
    Capabilities: [58] Debug port: BAR=1 offset=00a0
    Kernel driver in use: ehci_hcd

00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f2) (prog-if 01 [Subtractive decode])
    Flags: bus master, fast devsel, latency 0
    Bus: primary=00, secondary=02, subordinate=02, sec-latency=32
    Memory behind bridge: fe300000-fe3fffff
    Capabilities: [50] Subsystem: Dell Device 022f

00:1f.0 ISA bridge: Intel Corporation 82801HEM (ICH8M) LPC Interface Controller (rev 02)
    Subsystem: Dell Device 022f
    Flags: bus master, medium devsel, latency 0
    Capabilities: [e0] Vendor Specific Information: Len=0c
    Kernel modules: iTCO_wdt

00:1f.1 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE Controller (rev 02) (prog-if 8a [Master SecP PriP])
    Subsystem: Dell Device 022f
    Flags: bus master, medium devsel, latency 0, IRQ 16
    I/O ports at 01f0 [size=8]
    I/O ports at 03f4 [size=1]
    I/O ports at 0170 [size=8]
    I/O ports at 0374 [size=1]
    I/O ports at 6fa0 [size=16]
    Kernel driver in use: ata_piix

00:1f.2 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA IDE Controller (rev 02) (prog-if 8f [Master SecP SecO PriP PriO])
    Subsystem: Dell Device 022f
    Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 17
    I/O ports at 6eb0 [size=8]
    I/O ports at 6eb8 [size=4]
    I/O ports at 6ec0 [size=8]
    I/O ports at 6ec8 [size=4]
    I/O ports at 6ee0 [size=16]
    I/O ports at eff0 [size=16]
    Capabilities: [70] Power Management version 3
    Kernel driver in use: ata_piix

00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 02)
    Subsystem: Dell Device 022f
    Flags: medium devsel, IRQ 10
    Memory at fe9fbf00 (32-bit, non-prefetchable) [size=256]
    I/O ports at 10c0 [size=32]
    Kernel modules: i2c-i801

02:09.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 05) (prog-if 10 [OHCI])
    Subsystem: Dell Device 022f
    Flags: bus master, medium devsel, latency 64, IRQ 16
    Memory at fe3ff800 (32-bit, non-prefetchable) [size=2K]
    Capabilities: [dc] Power Management version 2
    Kernel driver in use: firewire_ohci
    Kernel modules: firewire-ohci

02:09.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 22) (prog-if 01)
    Subsystem: Dell Device 022f
    Flags: bus master, medium devsel, latency 64, IRQ 18
    Memory at fe3ff400 (32-bit, non-prefetchable) [size=256]
    Capabilities: [80] Power Management version 2
    Kernel driver in use: sdhci-pci
    Kernel modules: sdhci-pci

02:09.2 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 12)
    Subsystem: Dell Device 022f
    Flags: bus master, medium devsel, latency 64, IRQ 5
    Memory at fe3ff600 (32-bit, non-prefetchable) [size=256]
    Capabilities: [80] Power Management version 2

02:09.3 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 12)
    Subsystem: Dell Device 022f
    Flags: bus master, medium devsel, latency 64, IRQ 18
    Memory at fe3ff700 (32-bit, non-prefetchable) [size=256]
    Capabilities: [80] Power Management version 2
    Kernel driver in use: r852
    Kernel modules: r852

09:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8040 PCI-E Fast Ethernet Controller (rev 12)
    Subsystem: Dell Device 022f
    Flags: bus master, fast devsel, latency 0, IRQ 43
    Memory at fe8fc000 (64-bit, non-prefetchable) [size=16K]
    I/O ports at de00 [size=256]
    Capabilities: [48] Power Management version 3
    Capabilities: [5c] MSI: Enable+ Count=1/1 Maskable- 64bit+
    Capabilities: [c0] Express Legacy Endpoint, MSI 00
    Capabilities: [100] Advanced Error Reporting
    Capabilities: [130] Device Serial Number 65-01-f2-ff-ff-9b-21-00
    Kernel driver in use: sky2
    Kernel modules: sky2

0b:00.0 Network controller: Broadcom Corporation BCM4312 802.11b/g LP-PHY (rev 01)
    Subsystem: Dell Wireless 1395 WLAN Mini-Card
    Flags: bus master, fast devsel, latency 0, IRQ 17
    Memory at fe7fc000 (64-bit, non-prefetchable) [size=16K]
    Capabilities: [40] Power Management version 3
    Capabilities: [58] Vendor Specific Information: Len=78
    Capabilities: [e8] MSI: Enable- Count=1/1 Maskable- 64bit+
    Capabilities: [d0] Express Endpoint, MSI 00
    Capabilities: [100] Advanced Error Reporting
    Capabilities: [13c] Virtual Channel
    Capabilities: [160] Device Serial Number 44-ee-4d-ff-ff-20-00-23
    Capabilities: [16c] Power Budgeting
    Kernel driver in use: wl
    Kernel modules: wl, ssb



The -t option displays all pci device in a tree-like diagram containing all buses, bridges, devices and connections between them:
             lspci -tv



output:
vishal@Eva:~$ lspci -tv
-[0000:00]-+-00.0  Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub
           +-02.0  Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (primary)
           +-02.1  Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (secondary)
           +-1a.0  Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4
           +-1a.1  Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5
           +-1a.7  Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2
           +-1b.0  Intel Corporation 82801H (ICH8 Family) HD Audio Controller
           +-1c.0-[09]----00.0  Marvell Technology Group Ltd. 88E8040 PCI-E Fast Ethernet Controller
           +-1c.1-[0b]----00.0  Broadcom Corporation BCM4312 802.11b/g LP-PHY
           +-1c.4-[0c-0d]--
           +-1d.0  Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1
           +-1d.1  Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2
           +-1d.2  Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3
           +-1d.7  Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1
           +-1e.0-[02]--+-09.0  Ricoh Co Ltd R5C832 IEEE 1394 Controller
           |            +-09.1  Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter
           |            +-09.2  Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter
           |            \-09.3  Ricoh Co Ltd xD-Picture Card Controller
           +-1f.0  Intel Corporation 82801HEM (ICH8M) LPC Interface Controller
           +-1f.1  Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE Controller
           +-1f.2  Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA IDE Controller
           \-1f.3  Intel Corporation 82801H (ICH8 Family) SMBus Controller

How to find out the service tag of Dell Laptop or computer Running Linux(ubuntu)


You need to use the dmidecode command. It is a tool for dumping a computer's DMI (some say SMBIOS) table contents in a human-readable format. This tool can display serial number or dell service tag without looking on the back of the server. Type the command following command:
sudo dmidecode | grep --color -i serial

output:
vishal@Eva:~$ sudo  dmidecode | grep --color -i serial
    [sudo] password for vishal:
    Serial services are supported (int 14h)
    Serial Number: FNFH2BS
    Serial Number: .FNFH2BS.CN7016689N0HB3.
    Serial Number: FNFH2BS
    Serial Number: Not Specified
    Serial Number: 00002043
    Serial Number: 00003043
    SBDS Serial Number: 1F26


How do I set up the vsftpd daemon to accept connections from another computers?


   To install ftp sever (vsftpd) click here

Configure /etc/vsftpd.conf

The default vsftpd configuration file is /etc/vsftpd.conf. You need to edit this file using text editor such as vi:
$ sudo vi /etc/vsftpd.conf
Add the following line (uncomment line) to the vsftpd configuration file:
local_enable=YES
Above config directive will allow local users to log in via ftp
If you would like to allow users to upload file, add the following to the file:
write_enable=YES
For security you may restrict local users to their home directories. Add the following to the file:
chroot_local_user=YES
Save and close the file.

Next Step: Restart vsftpd

To restart vsftpd type the command :
$ sudo /etc/init.d/vsftpd restart
output:
vishal@Eva:~$ sudo /etc/init.d/vsftpd restart
[sudo] password for vishal:
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service vsftpd restart

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the stop(8) and then start(8) utilities,
e.g. stop vsftpd ; start vsftpd. The restart(8) utility is also available.
vsftpd stop/waiting
vsftpd start/running, process 11351





now test this by going to your browser and typing following address:

ftp://127.0.0.1

output:

How To Install And Configure An FTP Server Under Ubuntu(linux)

To install an FTP server on Ubuntu 11.04/10.10/10.04, launch the Terminal and issue this command:

 sudo apt-get install vsftpd

To configure your FTP server, you need to edit this conf file: /etc/vsftpd.conf. This can be done via the Terminal with this command:
sudo gedit /etc/vsftpd.conf

To enable/disable anonymous FTP, search for the following line in the /etc/vsftpd.conf file:

anonymous_enable=


YES -->  Enabled
NO --> Disabled

To allow users to upload files to your FTP server, edit this line:

write_enable=YES


To allow/disallow local users to connect to your server, search for this line:

local_enable=

YES -->  Allow
NO --> Disallow

For your modifications to be taken into account, you need to restart the FTP server with this command:

sudo /etc/init.d/vsftpd restart 







Now check by typing in terminal following command
telnet 127.0.0.1 21


it will ask you for login 
login with your
user account password ...thats it!!

its working!!!