MAC Spoofing

9 July 2007

How to MAC Spoofing

By. EFRIEL ELYASA, efriel_e@yahoo.co.id 

1. # ifconfig eth0 hw ether MA:CA:DD:RR:BA:RU 


2. # ifconfig eth0 


3. # ifconfig eth0 down 


4. # ifconfig eth0 192.168.1.1 hw ether MA:CA:DD:RR:BA:RU up 


5. # ifconfig eth0 



/etc/sysconfig/network-scripts/ifcfg-eth0


1. to Avoid failed message when "service network restart


  Shutting down interface eth0:


  Device eth0 has different MAC address than expected, ignoring.


  [FAILED]


try:


2. set BOOTPROTO=static di ifcfg-eth0 change to BOOTPROTO=none


 


file /etc/sysconfig/network-scripts/ifcfg-eth0 containing:

DEVICE=eth0

BOOTPROTO=static

BROADCAST=192.168.0.255

IPADDR=192.168.2.185


NETMASK=255.255.255.0

NETWORK=192.168.0.0

ONBOOT=yes


HWADDR=MA:CA:DD:RR:BA:RU


 


3.edit file rc.local di /etc/rc.d/rc.local

  ifconfig eth0 hw ether MA:CA:DD:RR:BA:RU

Startup Command

How to execute command when system start

By. Efriel Elyasa, efriel_e@yahoo.co.id 

1.     create file inside  /etc/init.d/ directory

a.     or using konsol command

# vi /etc/init.d/file-startup.sh

write inside:

/bin/bash

…executable command…

ketik :wq for save and exit from VI

 

setup access setup

# chmod +x /etc/init.d/ file-startup.sh

 

run this command for allway executing when computer boot

# update-rc.d file-startup.sh defaults

                       type this command to see another sturtup

# ls –l /etc/rc3.d/

Get free blog up and running in minutes with Blogsome | Theme designs available here