He creado un punto de acceso no autorizado utilizando airbase-ng, pero no puedo conectarme utilizando mis teléfonos Android (nota II, S4). Cuando toco el punto de acceso, obtengo una dirección IP. .. ', que desconecta y lo intenta una y otra vez. Realmente agradecería alguna ayuda, soy bastante nuevo en Linux ... :(
En el terminal veo el mismo resultado:
10:43:58 Created tap interface at0
10:43:58 Trying to set MTU on at0 to 1500
10:43:58 Trying to set MTU on wlan0 to 1800
10:43:58 Access Point with BSSID 7A:44:AF:F6:04:C8 started.
10:46:03 Client 5C:F8:A1:40:5F:F0 associated (unencrypted) to ESSID: "default"
10:46:13 Client 5C:F8:A1:40:5F:F0 associated (unencrypted) to ESSID: "default"
10:46:23 Client 5C:F8:A1:40:5F:F0 associated (unencrypted) to ESSID: "default"
10:46:34 Client 5C:F8:A1:40:5F:F0 associated (unencrypted) to ESSID: "default"
10:46:49 Client 5C:F8:A1:40:5F:F0 associated (unencrypted) to ESSID: "default"
10:46:49 Client 5C:F8:A1:40:5F:F0 associated (unencrypted) to ESSID: "default"
pasos que estoy haciendo:
1.) cree el punto de acceso WiFi falso utilizando airbase-n:
airbase-ng wlan0
2.) asignación de IP y subred:
ifconfig at0 192.168.1.1 netmask 255.255.255.0
ifconfig add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.1
3.) iniciar el servidor DHCP
service isc-dhcp-server start
mi dhcpd.conf contiene lo siguiente:
authoritative;
default-lease-time 600;
max-lease-time 7200;
subnet 192.168.5.0 netmask 255.255.255.0
{
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.5.255;
option routers 192.168.5.1;
option domain-name-servers 8.8.8.8;
range 192.168.5.1 192.168.5.100;
}
el estado de systemctl isc-dhcp-server.service dice lo siguiente:
isc-dhcp-server.service - LSB: DHCP server
Loaded: loaded (/etc/init.d/isc-dhcp-server; bad; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2016-03-03 12:32:51 EET; 5s ago
Docs: man:systemd-sysv-generator(8)
Process: 3803 ExecStart=/etc/init.d/isc-dhcp-server start (code=exited, status=1/FAILURE)
Mar 03 12:32:49 kali dhcpd[3813]: ** Ignoring requests on wlan1. If this is not what
Mar 03 12:32:49 kali dhcpd[3813]: you want, please write a subnet declaration
Mar 03 12:32:49 kali dhcpd[3813]: in your dhcpd.conf file for the network segment
Mar 03 12:32:49 kali dhcpd[3813]: to which interface wlan1 is attached. **
Mar 03 12:32:51 kali isc-dhcp-server[3803]: Starting ISC DHCPv4 server: dhcpdcheck syslog for diagnostics. ... failed!
Mar 03 12:32:51 kali isc-dhcp-server[3803]: failed!
Mar 03 12:32:51 kali systemd[1]: isc-dhcp-server.service: Control process exited, code=exited status=1
Mar 03 12:32:51 kali systemd[1]: Failed to start LSB: DHCP server.
Mar 03 12:32:51 kali systemd[1]: isc-dhcp-server.service: Unit entered failed state.
Mar 03 12:32:51 kali systemd[1]: isc-dhcp-server.service: Failed with result 'exit-code'.
interfaces:
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 10.152.187.1
netmask 255.255.255.0
auto wlan1
iface wlan1 inet static
address 192.168.1.0
netmask 255.255.255.0