> Tous les forumsAutres langages

 aide pour fichier .bat
Statut du sujet : NON RESOLU Imprimer
 pacorabano2
  Posté le 21/06/2008 @ 06:33  
 Petit astucien

38 Messages

bonjour,

j'utilisais il y a quelque temps 2 fichiers.bat avec le logiciel TST10.exe pour changer l'ip de ma livebox SAGEM et c'etait bien pratique pour télécharger sur rapidshare puisque le temps d'attente etait supprimé.Je rappelle que ca ne cache pas l'ip,ce n'est pas du spoofing.

Voila le fichier bat 1 à executer en 1er :

192.168.1.1

WAIT "login"
SEND "root\m"
WAIT "Password"
SEND "1234\m"
WAIT "[root @ home]$"
SEND "sndcp"
WAIT "[root @ sndcp]$"
SEND "pppoestop 0"
WAIT "[root @ sndcp]$"
SEND "home"
WAIT "[root @ home]$"
SEND "exit"
WAIT "[root @ h"

le fichier bat à execute en 2eme:

192.168.1.1

WAIT "login"
SEND "root\m"
WAIT "Password"
SEND "1234\m"
WAIT "[root @ home]$"
SEND "sndcp"
WAIT "[root @ sndcp]$"
SEND "pppoestart 0"
WAIT "[root @ sndcp]$"
SEND "home"
WAIT "[root @ home]$"
SEND "exit"
WAIT "[root @ home]$"

le TST10.exe:

Usage Syntax:

tst10.exe /r:script.txt [options]

/r:script.txt run script.txt
[options] any of these:

/o:output.txt send session output to output.txt
/m run script in minimized window

Usage Example:

tst10.exe /r:script.txt /o:output.txt /m

Scripting Syntax:

HOSTNAME PORT port number optional, default: 23
WAIT "string" string to wait for
SEND "string" string to send
\" represents the a quote character
\m represents a <CR/LF>
\\ represents the backslash character

Scripting Example:

hostname.com 23
WAIT "login"
SEND "root\m"
WAIT "password"
SEND "mypassword\m"
WAIT ">"
SEND "dip internet.dip\m"
WAIT ">"

Scripting Note:

You can start with either WAIT or SEND commands,
but you *must* alternate them. ie: you can't use two
or more WAIT or SEND in a row.

Note:

TST will disconnect and close as soon
as its done with the last entry of the script.

If you need to, you can type in the terminal
window while the script is running.

Le probleme c'est qu'apres la foudre j'ai été obligé de changer de livebox et maintenant j'ai la mini livebox thomson et ces fichiers ne fonctionnent plus et je ne peux plus changer mon ip.

Quelque aurait-il la solution à mon probleme?

merci

 Afficher le profil de pacorabano2Envoyer un message privé à pacorabano2
 
 
Publicité
 stimorol  Posté le 23/06/2008 à 14:10  
  Astucienne


5879 Messages
Afficher le profil de stimorol Voir la configuration de stimorolEnvoyer un message privé à stimorol
  Revenir en haut de la page
 stimorol  Posté le 23/06/2008 à 14:24  
  Astucienne


5879 Messages

En surfant... je viens de trouver Ça

et un mode d'emploi Ici

ou encore

Afficher le profil de stimorol Voir la configuration de stimorolEnvoyer un message privé à stimorol
  Revenir en haut de la page
Haut de la page 
Inscrivez-vous !
- Posez vos questions

- Résolvez vos problèmes

- Aidez les autres

- Participez et créez vos discussions

- Dialoguez en privé avec d'autres membres

- Suivez vos sujets préférés

- Affichez les signatures des membres

TOUT EST GRATUIT !

Je crée mon compte



Les sujets pertinents liés
[RESOLU] Améliration d'un batch - liste de fichier
Execution de fichier de commande
Fichier pour couper ou rétablir le son du pc ?
Ouvrir un fichier MySQL
Supression fichier
Imprimer une feuil en pdf
aide pour une fonction
Excel pdf
Comment déclarer une variable date en V.B.E. ?
Oracle
Commande DIR sous DOS +cacher l'extension fichier?
message de securité sur easyphp...Help !
demande aide prog vb.net
Réaliser un projet à plusieurs
Renommer la corbeille avec un fichier bat et VBS
Bloc note => fichier Bat ou Exe
help du C++
 
Vous avez besoin d'aide ?
Des centaines d'experts sont à votre disposition sur les forums PC Astuces pour vous aider gratuitement, 24h/24, 7j/7.

Les derniers sujets résolus !



 > Tous les forumsAutres langages

 
Forum PC Astuces© 1997-2008 WebastucesAller en haut de la page
Comme PC Astuces, mettez-vous au vert avec Ikoula !
Faites le choix d'un hébergeur acteur de l'environnement !