Ir para conteúdo
Fórum Script Brasil
  • 0

Autenticação Automatica no Velox


FelipeMartins

Pergunta

Autenticação Automatica no Velox

#!/bin/sh

# velox-auth.sh - autentica no serviço velox da telemar

#

# Copyright © 2001 Marcelo Dias de Toledo <mtole@ig.com.br>

# Um pouquinho bagunçado por Fábio Berbert de Paula <fabio@vivaolinux.com.br>

#

# This program is free software; you can redistribute it and/or

# modify it under the terms of the GNU General Public License

# as published by the Free Software Foundation; either version 2

# of the License, or (at your option) any later version.

#

# This program is distributed in the hope that it will be useful,

# but WITHOUT ANY WARRANTY; without even the implied warranty of

# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the

# GNU General Public License for more details.

#

# You should have received a copy of the GNU General Public License

# along with this program; if not, write to the Free Software

# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA

# 02111-1307, USA.

# diretorio do lynx

LYNX=/usr/bin/lynx

# seu login

LOGIN='seu login'

# sua senha

SENHA='sua senha'

# escolha o seu provedor, descomente a linha adequada

#

# A Tarde

#PROVEDOR='_ATARDE'

# iG

#PROVEDOR='_IG'

# Internett

#PROVEDOR='_INTERNETT'

# Terra

PROVEDOR='_TERRA' # neste caso, escolhi terra smile.gif

# Empresarial

#PROVEDOR='_AARJ'

#

# não modifique

#

HOST='www.veloxzone.com.br'

COOKIE='$RANDOM$RANDOM'

# sim, é verdade, temos que caminhar por várias páginas antes de enviar

# a autenticação

$LYNX -source "http://$HOST" 1>/dev/null 2>/dev/null

$LYNX -source "http://$HOST/dashboard?fcn=accountLogonPrompt"'>http://$HOST/dashboard?fcn=accountLogonPrompt"

1>/dev/null 2>/dev/null

$LYNX -source "http://$HOST/dashboard?

fcn=viewToolbar&JSESSID=$COOKIE" 1>/dev/null 2>/dev/null

$LYNX -source "http://$HOST/dashboard?fcn=viewServiceList&

JSESSID=$COOKIE" 1>/dev/null 2>/dev/null

$LYNX -source "http://$HOST/dashboard?

fcn=viewDashBoardFrame&serviceViewFcn=viewService&

service=internet$PROVEDOR&JSESSID=$COOKIE"

1>/dev/null 2>/dev/null

$LYNX -source "http://$HOST/dashboard?

fcn=viewService&service=internet$PROVEDOR&

JSESSID=$COOKIE" 1>/dev/null 2>/dev/null

$LYNX -source "http://$HOST/dashboard?&

fcn=serviceLogon&service=internet_TERRA&

SESSID=$COOKIE&username=$LOGIN&password=$SENHA"

1>/dev/null 2>/dev/null

echo "velox-auth: Autenticação enviada."

================================

É isso aee!! falou

Link para o comentário
Compartilhar em outros sites

0 respostass a esta questão

Posts Recomendados

Até agora não há respostas para essa pergunta

Participe da discussão

Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emoticons são permitidos.

×   Seu link foi incorporado automaticamente.   Exibir como um link em vez disso

×   Seu conteúdo anterior foi restaurado.   Limpar Editor

×   Você não pode colar imagens diretamente. Carregar ou inserir imagens do URL.



  • Estatísticas dos Fóruns

    • Tópicos
      152,1k
    • Posts
      651,8k
×
×
  • Criar Novo...