RSS

Tag Archives: Fedora

Tcpdump to capture passwords

To skip straight to capture password click here

TCPdump is a very powerful command line interface packet sniffer. –

1. Install tcpdump
Ubuntu

sudo apt-get install tcpdump 

Fedora/Centos/Red hat

sudo yum install tcpdump

2. TCPDUMP USE
To display the Standard TCPdump output:

tcpdump

tcpdump: verbose output suppressed, use -v or -vv for full protocol decode

Network interfaces available for the capture:

 tcpdump -D

1.eth1
2.any (Pseudo-device that captures on all interfaces)
3.lo

– Capture the traffic of a particular interface:

 tcpdump -i eth0

– To capture the UDP traffic:

tcpdump udp

– To capture the TCP port 80 traffic:

 tcpdump port http

– To capture the traffic from a filter stored in a file:

 tcpdump -F file_name

To create a file where the filter is configured (here the TCP 80 port)

vim file_name

port 80

– To send the capture output in a file instead of directly on the screen:

tcpdump -w capture.log

– To read a capture file:

tcpdump -r capture.log

– To display the packets having “wordpress.com” as their source or destination address:

tcpdump host wordpress.com

– To display the FTP packets coming from 192.168.1.100 to 192.168.1.2:

tcpdump src 192.168.1.100 and dst 192.168.1.2 and port ftp

-And Finally to capture the password click here
Packets capture during a FTP connection. The FTP password can be easily intercepted because it is sent in clear text to the server.
We see in this capture the FTP username (amateur) and password (hosting).
You can use this incase you forget your ftp password and have stored it in your ftp client

Please note that this should not be used for any illegal and this blog will not be responsible for any actions that lead to illegal use

Advertisements
 
4 Comments

Posted by on November 8, 2010 in Centos, Fedora, Linux, Red hat, tools, Ubuntu

 

Tags: , , , , ,

Yum package manger Useful command options

# yum check-update
This allows you to check to see if there is any update available for your installed packages.

# yum update
This will update all packages to the latest version.

# yum update
Use this to just update one package at a time.

# yum search
You can use this command to search for any packages containing specific keyword. Pretty useful to locate the full name of a particular package.

# yum install
This allows you to install the latest version of a package. Yum will automatically install all dependencies.

# yum remove
Used to delete/remove a package, along with its dependencies if any.

# yum localinstall
With “yum install”, yum automatically downloads the package for you. In case you already downloaded the package yourself, you can use this command to install it. Make sure to state the full path to the package you downloaded. i.e. yum localinstall /home/test.tar.gz

# yum info
Lists information about a package.

 
Leave a comment

Posted by on April 24, 2010 in Centos, Fedora, Linux, Red hat

 

Tags: ,

Fedora Things to do after install

Now you have installed fedora, what next?
Well you can install the below packages to make more interesting and fun.

Yum
Yum is an interactive tool or automated update program which can be used for maintaining systems using rpm (read as RedHat and friends).

Fastest mirror plugin. This will look for the fastest mirror when updating yum.

yum install yum-fastestmirror

Presto Plugin. This will save you downloading a full upgrade of 551mb down to 100mb.

yum install yum-presto

Enable Additional repositories (rpm fusion).

rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm

rpm -Uvh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm

Enable Yakuake ,mc,pavucontrol, htop, unrar, checkgmail
* Yakuake – is a KDE terminal emulator. Its design was inspired from consoles in computer games such as Quake which slide down from the top. I like it.
* mc – GNU Midnight Commander is a visual file manager used in terminal/yakuake.
* Pavucontrol – PulseAudio Volume Control (pavucontrol) is a simple GTK based volume control tool (“mixer”) for the PulseAudio sound server. Skype mic refused to work and I had to use this tool.
* htop – an interactive process viewer for Linux.
* unrar – unpack RAR archives
* checkgmail – says it all. Alerts you when you have mail in your gmail account.

yum install yakuake mc pavucontrol htop unrar checkgmail

To play mp3’s and videos type

yum install mplayer smplayer vlc mencoder gstreamer-plugins-ugly gstreamer-plugins-bad gstreamer-ffmpeg xine-lib-extras xine-lib-extras-freeworld

Install the Adobe repository for yum:

rpm -Uvh http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm
Type:

yum install flash-plugin nspluginwrapper.{i386,x86_64} pulseaudio-libs.i386 alsa-plugins-pulseaudio.i386 libcurl.i386

Java
yum install java-1.6.0-openjdk-plugin

To downgrade from a current version of the package
yum install yum-allowdowngrade

To use it type:

su -c ‘yum update –allow-downgrade’

You can disable this plugin by changing the option enabled in the file:

su -c ‘gedit /etc/yum/pluginconf.d/allowdowngrade.conf’

Wine to run windows apps
yum install wine

Developer tools
It allows you to install single package or group of package. For example let us say you are running a web server with PHP+MySQL. Now you need complete development environment i.e gcc C/C++ compilers, subversion cvs, perl and related libraries. You can install them in one shot with the following command:
yum groupinstall 'Development Tools'

You can remove all developer tools with the following command:
yum groupremove 'Development Tools'

Or better update all tools to latest version:
yum groupupdate 'Development Tools'

You can obtain list of all groups with the following command:
yum grouplist | less

Install the below groups if you are a developer
yum groupinstall "Development Libraries" "Development Tools" Java "Fedora Eclipse" "Java Development" "KDE (K Desktop Environment)"

 
2 Comments

Posted by on April 5, 2010 in Fedora, Linux

 

Tags: ,

 
%d bloggers like this: