silvio.olyver
(usa Slackware)
Enviado em 28/06/2008 - 14:32h
Amigo faça a configuração de internet # pppoe-setup
depois use esse script:
#!/bin/bash
##################################################
## Script para conexão com a internet -V 1.0 ##
## Conexão Adsl + SpeedTouch ##
## Escrito por: Silvio Olyver 22/06/2008 ##
## Sistema Operacional: BackTrack 3 ##
## E-mail: silvio.olyver@hotmail.com ##
##################################################
#Reset the machine's IP#
ifconfig eth0 0.0.0
echo 'IP successfully reset'
#Stop the network card#
ifconfig eth0 down
echo 'Card network successfully stopped'
#Card network reset#
ifconfig eth0 up
echo 'initializing the card up'
#Repairing the plate#
mii-tool
echo 'Repair happened'
#connecting to the Internet#
pppoe-start
echo 'Sign up'
#Do not accept pings in Backtrack#
echo '1> /proc/sys/net/ipv4/icmp_echo_ignore_all'
#Opening the Browser#
#iceweasel &
clear
#IP Internet#
lynx -dump -accept_all_cookies
www.showip.com/> /tmp/meuip$$
sed -n 's/ Your IP address is //p' /tmp/meuip$$
rm -f /tmp/meuip$$
#Mac's card network#
echo "MAC address: `ip addr | cut -c16-32 | egrep \"[0-9a-z]{2}[:][0-9a-z]{2}[:][0-9a-z]{2}[:][0-9a-z]{2}[:][0-9a-z]{2}[:][0-9a-z]{2}$\"`"
#echo My IP: lynx -dump -accept_all_cookies
www.showip.com/> /tmp/meuip$$
#sed -n 's/ Your IP address is //p' /tmp/meuip$$
#rm -f /tmp/meuip$$
#IP Linux and Mac of the Machine#
#ctrl+c
#End of algorithm#