Thursday, May 5, 2011

DHCP Server RHEL 5

Hello Friends ,

For RHEL5 setting up DHCP server is very easy , just you need to follow steps given in below link.

http://oob.freeshell.org/nzwireless/dhcpd.html

Thank You!

Sudo Users With No Password!

How it will be if you get root access for 2 minutes somewhere and afterwards you want to get root access for FULL TIME! If admin is not watching sudo ! (Real Scenario)

Attackers somehow gets 2 minutes access to ROOT!

Step 1 : Add user with your favorite Name mine is cracker

Step 2 : visudo

Step 3 : Scroll down till "Allow root to run any command"

Add Line :

cracker       ALL=NOPASSWD:       ALL


Thats it!

Now save and exit!

Log in with your new user cracker directly without password!!!

Thank You!

 

Friday, April 15, 2011

Desktop Screen Recorder for RHEL 5

Hi ,

Many times we need to record our desktop so that we can later view and share same videos with others.
Here is a little tutorial on how to do it..

1) Need to have setup RHEL repository
2) Download  recordmydesktop

Installing recordmydesktop on RHEL5
---------------------------------------
step 1 :  unzip recordmydesktop.tar.gz using --> tar -xvf recordmydesktop.tar.gz

step 2 : go to extracted folder.

step 3 : ./configure

step 4 : make

make: *** No Rules to make target `install` . Stop.

HERE THE PROBLEMS STARTS!

This is what i didn't expected basically in my case i followed below steps :

./configure | grep "error"

Now you will get list of dependencies thats what we need to install.

in case of RHEL5 all these dependencies are available in  RHEL5 repositories.

just install it like : 


yum install -y (PACKAGE NAME SPECIFIED IN ERROR)  


Again type : ./configure | grep "error"

Repeat above steps till above command gives no output.

Thats how you solved dependencies for recordmydesktop software

Now simply fireup command : recordmydesktop


Your screen recording gets started!

Thats It!...Enjoy Recording

- Girish







Thursday, April 14, 2011

RHEL 5 Ethernet Driver problem on Intel Motherboard


Issue Details :
----------------

Intel based pc ,
Ethernet Driver problem



ifup eth0 --> "device eth0 does not seem to be present, delaying initialization."


System-config-network --> select any driver but it wont work same message as above


lspci --> Realtek semiconductor co. ltd RTL8101E Express Fast Ethernet controller


This clearly shows that we have above device installed as H/W


Uname -r --> 2.6.18.8.el5 (Our Kernel Version)


Lets find Drivers for this device from internet


Download RTL8101E for Linux kernel (2.6.X)


----------------------
Installation of Driver
----------------------

tar -xvf

make clean modules

make install

depmod -a

insmod ./src/r8101.ko

reboot

service network restart



Thats It ! Now assign Ip address and enjoy.


Thank You,



Tuesday, April 5, 2011

Sniff Wireless Broadband USB Connection

Hi,

Here is our one of the smart tool for capturing network traffic through USB Drive

Tool Name : SmartSniff

Download it from : http://www.pendriveapps.com/

Thank you,

Happy Hacking

Sunday, January 23, 2011

Samba Server

Hi Friends , if you want to access linux shares from windows and add files into linux share you are at right place.

Scenario :

1 Desktop pc --> Windows vista
1 Desktop pc --> Windows 2000
1 Desktop pc -->  Redhat 5 (RHEL 5)

we will setup samba server on RHEL 5 and then we will access that share from windows 2000 and windows vista.


RHEL 5 :
----------
1)  yum -y install samba*
2)  yum -y install system-config-samba   ( For Samba GUI Configuration )
3)  vim /etc/samba/smb.conf
4)  Look for  hosts allow =  add IP subnets here Ex .     192.168.1.  127.  10.47.0.   NO COMMAS
5)  At the end of File add :
  
     [SHARE NAME]
           comment = root
           path = /                    --> to share
           writeable = yes        --> Connected user can read write
           

6) This information is enough in smb.conf
7)  system-config-samba 
8)  preferences > server setting > security > authentication mode "Share"
9)  preferences > samba users > add user > unix username and enter password for samba 
10) Click on share , click on properties , ACCESS > Allow access to everyone

How to access Shared Folders from windows 2000 and windows vista

1) Run > \\RHEL server ip\

Thats It! Now you can even insert files into share so that it can be visible in RHEL 5! 
Aree ooo Sambaa! Tu to kamal ka software hai!