Jump to content

Evil twins method on kali Linux got Error with isc-dhcp-server


nick.pott
 Share

Recommended Posts

I got an error when trying to clone a AP :


root@kali:~# airbase-ng -e "TEST" -c 11 mon0
02:54:20 Created tap interface at0
02:54:20 Trying to set MTU on at0 to 1500
02:54:20 Trying to set MTU on mon0 to 1800
02:54:20 Access Point with BSSID 00:0F:12:79:11:8A started.
02:55:05 Client 70:1A:04:B7:AC:08 associated (unencrypted) to ESSID: "TEST"
02:55:05 Client 70:1A:04:B7:AC:08 associated (unencrypted) to ESSID: "TEST"
02:55:05 Client 70:1A:04:B7:AC:08 associated (unencrypted) to ESSID: "TEST"
Error: Got channel -1, expected a value > 0

And the dhcp-server

root@kali:~# sudo dhcpd -d -f -cf /etc/dhcp/dhcpd.conf at0
Internet Systems Consortium DHCP Server 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Wrote 0 leases to leases file.
Listening on LPF/at0/00:0f:12:79:11:8a/192.168.1.0/24
Sending on   LPF/at0/00:0f:12:79:11:8a/192.168.1.0/24
Sending on   Socket/fallback/fallback-net
receive_packet failed on at0: Network is down

Other log :

root@kali:~# tail /var/log/messages 
Aug 16 02:49:50 kali kernel: [ 1939.520822] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Aug 16 02:49:54 kali kernel: [ 1943.535416] pcnet32 0000:02:01.0 eth0: link up
Aug 16 02:49:54 kali vmsvc[2132]: [ warning] [guestinfo] Failed to get nic info.
Aug 16 02:49:54 kali kernel: [ 1943.537014] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Aug 16 02:50:00 kali kernel: [ 1949.532063] pcnet32 0000:02:01.0 eth0: link down
Aug 16 02:50:12 kali kernel: [ 1961.534223] pcnet32 0000:02:01.0 eth0: link up
Aug 16 02:50:24 kali vmsvc[2132]: [ warning] [guestinfo] Failed to get nic info.
Aug 16 02:50:54 kali vmsvc[2132]: [ warning] [guestinfo] Failed to get nic info.
Aug 16 02:50:56 kali kernel: [ 2005.543727] pcnet32 0000:02:01.0 eth0: link down
Aug 16 02:51:08 kali kernel: [ 2017.545563] pcnet32 0000:02:01.0 eth0: link up

Could somebody please help me ?

Link to comment
Share on other sites

oot@kali:~# iwconfig 
wlan0     IEEE 802.11bgn  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=20 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:on
          
lo        no wireless extensions.

mon0      IEEE 802.11bgn  Mode:Monitor  Tx-Power=20 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:on
          
eth0      no wireless extensions.

at0       no wireless extensions.

And

root@kali:~# ifconfig 
at0       Link encap:Ethernet  HWaddr 00:0f:12:79:11:8a  
          inet addr:192.168.1.254  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::20f:12ff:fe79:118a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:99873 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1040 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:8034280 (7.6 MiB)  TX bytes:85902 (83.8 KiB)

eth0      Link encap:Ethernet  HWaddr 00:0c:29:34:e5:a3  
          inet addr:192.168.40.139  Bcast:192.168.40.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fe34:e5a3/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4597 errors:0 dropped:0 overruns:0 frame:0
          TX packets:95122 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:410593 (400.9 KiB)  TX bytes:7318771 (6.9 MiB)
          Interrupt:19 Base address:0x2000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:68 errors:0 dropped:0 overruns:0 frame:0
          TX packets:68 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:4080 (3.9 KiB)  TX bytes:4080 (3.9 KiB)

mon0      Link encap:UNSPEC  HWaddr 00-0F-12-79-11-8A-00-00-00-00-00-00-00-00-00-00  
          UP BROADCAST NOTRAILERS RUNNING PROMISC ALLMULTI  MTU:1800  Metric:1
          RX packets:238586 errors:0 dropped:1190 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:29846585 (28.4 MiB)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr 00:0f:12:79:11:8a  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

Link to comment
Share on other sites

You need to run "ifconfig <device> down" on the wireless device you want to monitor on. Once down, use iwconfig to set the channel for mon0 and then try again.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...