Test Foro de elhacker.net SMF 2.1

Programación => Scripting => Mensaje iniciado por: moikano→@ en 26 Octubre 2010, 15:57 PM

Título: [Shell script] no me funciona un comando (SOLUCIONADO)
Publicado por: moikano→@ en 26 Octubre 2010, 15:57 PM
Estoy intentando automatizar con un script el programa de aircrack. El asunto es que intento decirle que me entre en modo monitor con la wlan y no me lo hace, es como si se quedara a medio camino. Ahí va el code:
Código (bash) [Seleccionar]
#!/bin/bash
iwconfig
read -p 'introduce el interfaz a usar: ' inter
airmon-ng start 'inter'

me sale esto por pantalla:
Interface   Chipset      Driver

wlan1
Si lo hago sin el script si que funciona sin problemas.

Algún fallo a vistas?
Título: Re: [Shell script] no me funciona un comando
Publicado por: Shell Root en 26 Octubre 2010, 18:36 PM
No me gusta mucho eso de Batch ni de Bash, pero creo que es así,

Código (bash) [Seleccionar]
ifconfig
read -p 'introduce el interfaz a usar: ' sInterfaz
ifconfig $sInterfaz
Título: Re: [Shell script] no me funciona un comando
Publicado por: moikano→@ en 26 Octubre 2010, 19:22 PM
Tenias razón. No leí bien el manual. Gracias =)