Jump to content
Hak5 Forums
Sign in to follow this  
tld75

Nano will not connect to internet

Recommended Posts

I am on linux Xubuntu on a chromebook and all is configured fine, but in the end i get an error from teh script about iptable ( ./wp6.sh: line 282: iptables: command not found)

The shared connection does not want to work, gutted, i thought it would be easier, anyone has similar config and had made it run ? keep on trying ...

Network Config after wp6.sh:

(xenial)toor@localhost:~$ ./wp6.sh
This WiFi Pineapple Connection script requires root.
[sudo] password for toor:

    _       ___ _______    ____  _                              __    
   | |     / (_) ____(_)  / __ \(_)___  ___  ____ _____  ____  / /__
   | | /| / / / /_  / /  / /_/ / / __ \/ _ \/ __ '/ __ \/ __ \/ / _ \
   | |/ |/ / / __/ / /  / ____/ / / / /  __/ /_/ / /_/ / /_/ / /  __/
   |__/|__/_/_/   /_/  /_/   /_/_/ /_/\___/\__,_/ .___/ .___/_/\___/  
                                               /_/   /_/       v6.5

    Saved Settings: Share Internet connection from wlan0
    to WiFi Pineapple at eth0 through default gateway 192.168.0.1

    [C]onnect using saved settings
    [G]uided setup (recommended)
    [M]anual setup
    [A]dvanced IP settings
    [Q]uit

    Detecting WiFi Pineapple......found.

         _ .           ___          \||/
       (  _ )_  <-->  [___]  <-->  ,<><>,
     (_  _(_ ,)       \___\        '<><>'
./wp6.sh: line 282: iptables: command not found
./wp6.sh: line 283: iptables: command not found
./wp6.sh: line 284: iptables: command not found
./wp6.sh: line 285: iptables: command not found
./wp6.sh: line 286: iptables: command not found

    Browse to http://172.16.42.1:1471


Network:

 

(xenial)toor@localhost:~$ /sbin/ifconfig
eth0      Link encap:Ethernet  HWaddr 00:c0:ca:91:b9:d0  
          inet addr:172.16.42.42  Bcast:172.16.42.255  Mask:255.255.255.0
          inet6 addr: fe80::2c0:caff:fe91:b9d0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1643 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1410 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:557653 (557.6 KB)  TX bytes:411311 (411.3 KB)

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:148 errors:0 dropped:0 overruns:0 frame:0
          TX packets:148 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:10948 (10.9 KB)  TX bytes:10948 (10.9 KB)

wlan0     Link encap:Ethernet  HWaddr 90:2e:1c:57:df:4b  
          inet addr:192.168.0.14  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::922e:1cff:fe57:df4b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:611232 errors:0 dropped:0 overruns:0 frame:0
          TX packets:131110 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:838063398 (838.0 MB)  TX bytes:18508899 (18.5 MB)

(xenial)toor@localhost:~$

 

Share this post


Link to post
Share on other sites

the routes look correct:

(xenial)toor@localhost:~$ ip route
default via 192.168.0.1 dev wlan0
172.16.42.0/24 dev eth0  proto kernel  scope link  src 172.16.42.236
192.168.0.0/24 dev wlan0  proto kernel  scope link  src 192.168.0.14
(xenial)toor@localhost:~$

 

I am baffled by why its not working .....

ANyone can shed lights here ? thanks a lot.

T.

 

Share this post


Link to post
Share on other sites

The issue is apparent, you do not have IPTables installed on your system or you are not running as root (or both).

On some distributions the binary is not available to users other than root, hence it not showing as available despite potentially being installed.

Share this post


Link to post
Share on other sites

THanks @Foxtrot, forcing the root mode did the trick but then i run into another another issue, no internet traffic at all on either interfaces.

that's the whole process i follow when launching the script, the running ifconfig, ....

Any ideas ? thanks a lot.

(xenial)toor@localhost:~$ sudo passwd -u root
[sudo] password for toor:
passwd: password expiry information changed.
(xenial)toor@localhost:~$ sudo ./wp6.sh

           ___       __          ___       __   __        ___
   |  | | |__  |    |__) | |\ | |__   /\  |__) |__) |    |__  
   |/\| | |    |    |    | | \| |___ /~~\ |    |    |___ |___
                                                       v6.5

    Saved Settings: Share Internet connection from wlan0
    to WiFi Pineapple at eth0 through default gateway 192.168.0.1

    [C]onnect using saved settings
    [G]uided setup (recommended)
    [M]anual setup
    [A]dvanced IP settings
    [Q]uit

    
    Step 1 of 3: Select Default Gateway
    Default gateway reported as 192.168.0.1
    Use the above reported default gateway?             [Y/n]? y

    Step 2 of 3: Select Internet Interface
    Internet interface reported as wlan0
    Use the above reported Internet interface?          [Y/n]? y

    Step 3 of 3: Select WiFi Pineapple Interface
    Please connect the WiFi Pineapple to this computer.
    .........[Checking]
    Detected WiFi Pineapple on interface eth0
    Use the above detected WiFi Pineapple interface?    [Y/n]? y

    Settings saved.

    Saved Settings: Share Internet connection from wlan0
    to WiFi Pineapple at eth0 through default gateway 192.168.0.1

    [C]onnect using saved settings
    [G]uided setup (recommended)
    [M]anual setup
    [A]dvanced IP settings
    [Q]uit

    Detecting WiFi Pineapple...........found.

         _ .           ___          \||/
       (  _ )_  <-->  [___]  <-->  ,<><>,
     (_  _(_ ,)       \___\        '<><>'

    Browse to http://172.16.42.1:1471

(xenial)toor@localhost:~$ /sbin/ifconfig
eth0      Link encap:Ethernet  HWaddr 00:c0:ca:91:b9:d0  
          inet addr:172.16.42.236  Bcast:172.16.42.255  Mask:255.255.255.0
          inet6 addr: fe80::2c0:caff:fe91:b9d0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:20 errors:0 dropped:0 overruns:0 frame:0
          TX packets:30 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1978 (1.9 KB)  TX bytes:4624 (4.6 KB)

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:48 errors:0 dropped:0 overruns:0 frame:0
          TX packets:48 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:3764 (3.7 KB)  TX bytes:3764 (3.7 KB)

wlan0     Link encap:Ethernet  HWaddr 90:2e:1c:57:df:4b  
          inet addr:192.168.0.14  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::922e:1cff:fe57:df4b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:20446 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11199 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:23703561 (23.7 MB)  TX bytes:2050182 (2.0 MB)

(xenial)toor@localhost:~$ /sbin/ifconfig | grep eth0
eth0      Link encap:Ethernet  HWaddr 00:c0:ca:91:b9:d0  
(xenial)toor@localhost:~$ /sbin/ifconfig | grep wlan0
wlan0     Link encap:Ethernet  HWaddr 90:2e:1c:57:df:4b  
(xenial)toor@localhost:~$ ping  yahoo.com
ping: unknown host yahoo.

 

Share this post


Link to post
Share on other sites

...So once i restart the machine all services are up again and i can connect to web and the nano, see below. But the bulletin stil do not load .....

 

xenial)toor@localhost:~$
(xenial)toor@localhost:~$ /sbin/ifconfig
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:40 errors:0 dropped:0 overruns:0 frame:0
          TX packets:40 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:3016 (3.0 KB)  TX bytes:3016 (3.0 KB)

wlan0     Link encap:Ethernet  HWaddr 90:2e:1c:57:df:4b  
          inet addr:192.168.0.14  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::922e:1cff:fe57:df4b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:7728 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6121 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:6408070 (6.4 MB)  TX bytes:1101455 (1.1 MB)

(xenial)toor@localhost:~$ /sbin/ifconfig | grep wlan0
wlan0     Link encap:Ethernet  HWaddr 90:2e:1c:57:df:4b  
(xenial)toor@localhost:~$ /sbin/ifconfig | grep eth0
eth0      Link encap:Ethernet  HWaddr 00:c0:ca:91:b9:d0  
(xenial)toor@localhost:~$ /sbin/ifconfig             
eth0      Link encap:Ethernet  HWaddr 00:c0:ca:91:b9:d0  
          inet6 addr: fe80::2c0:caff:fe91:b9d0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3 errors:0 dropped:0 overruns:0 frame:0
          TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:138 (138.0 B)  TX bytes:2804 (2.8 KB)

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:40 errors:0 dropped:0 overruns:0 frame:0
          TX packets:40 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:3016 (3.0 KB)  TX bytes:3016 (3.0 KB)

wlan0     Link encap:Ethernet  HWaddr 90:2e:1c:57:df:4b  
          inet addr:192.168.0.14  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::922e:1cff:fe57:df4b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:7919 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6358 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:6432703 (6.4 MB)  TX bytes:1138088 (1.1 MB)

(xenial)toor@localhost:~$ ping yahoo.com
PING yahoo.com (98.139.180.149) 56(84) bytes of data.
64 bytes from ir1.fp.vip.bf1.yahoo.com (98.139.180.149): icmp_seq=1 ttl=52 time=93.8 ms
64 bytes from ir1.fp.vip.bf1.yahoo.com (98.139.180.149): icmp_seq=2 ttl=52 time=90.7 ms
64 bytes from ir1.fp.vip.bf1.yahoo.com (98.139.180.149): icmp_seq=3 ttl=52 time=98.6 ms
64 bytes from ir1.fp.vip.bf1.yahoo.com (98.139.180.149): icmp_seq=4 ttl=52 time=91.2 ms
64 bytes from ir1.fp.vip.bf1.yahoo.com (98.139.180.149): icmp_seq=5 ttl=52 time=92.8 ms
64 bytes from ir1.fp.vip.bf1.yahoo.com (98.139.180.149): icmp_seq=6 ttl=52 time=215 ms
64 bytes from ir1.fp.vip.bf1.yahoo.com (98.139.180.149): icmp_seq=7 ttl=52 time=238 ms
64 bytes from ir1.fp.vip.bf1.yahoo.com (98.139.180.149): icmp_seq=8 ttl=52 time=98.3 ms
64 bytes from ir1.fp.vip.bf1.yahoo.com (98.139.180.149): icmp_seq=9 ttl=52 time=180 ms
64 bytes from ir1.fp.vip.bf1.yahoo.com (98.139.180.149): icmp_seq=10 ttl=52 time=203 ms
^C
--- yahoo.com ping statistics ---
10 packets transmitted, 10 received, 0% packet loss, time 9013ms
rtt min/avg/max/mdev = 90.735/140.488/238.854/58.189 ms

(xenial)toor@localhost:~$ wget wifipineapple.com/nano
URL transformed to HTTPS due to an HSTS policy
--2017-10-01 01:40:42--  https://wifipineapple.com/nano
Resolving wifipineapple.com (wifipineapple.com)... 216.239.38.21, 216.239.32.21, 216.239.34.21, ...
Connecting to wifipineapple.com (wifipineapple.com)|216.239.38.21|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: /pages/setup#nano [following]
URL transformed to HTTPS due to an HSTS policy
--2017-10-01 01:40:43--  https://wifipineapple.com/pages/setup
Connecting to wifipineapple.com (wifipineapple.com)|216.239.38.21|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 25448 (25K) [text/html]
Saving to: 'nano'

nano                              100%[============================================================>]  24.85K  --.-KB/s    in 0.02s   

2017-10-01 01:40:43 (1.40 MB/s) - 'nano' saved [25448/25448]

(xenial)toor@localhost:~$

 

Share this post


Link to post
Share on other sites

I have tried this device on:

- a Macbook with VirtualBox + Kali VM (running on the USB-C/eth interface, tried with one usb connected, 2, no changes)= fail 

- Ubuntu VM, worked better, script running but not internet connection with nano, no bulletins loading = fail

- 1 yo chromebook and installed Crouton / Xubuntu - xfce, wp6 works and connects but then shuts down all internet interfaces and i have to restart machine = fail

Will try and find a PC tomorrow at work and run another test but slowly starting to loose patience ... 

any one can give a hand here ? 

 

thanks

 

Share this post


Link to post
Share on other sites

Could you restart your machine (I would recommend using Ubuntu), plug in your WiFi Pineapple and wait for it to boot fully, then execute "ifconfig -a", "route" and "iwconfig". Please use https://pastebin.com and create a separate paste for each command. Then run the wp6.sh with the options you input and make three more pastes with each command, and then the output of the wp6.sh script in a seventh.

 

Share this post


Link to post
Share on other sites

Thanks so much for your help @Foxtrot.

ifconfig -a

https://pastebin.com/JXvwVdi3

route

https://pastebin.com/J83i5VaJ

iwonfig

https://pastebin.com/GBUti9Cm

After running script.

https://pastebin.com/KQdbz6ph

https://pastebin.com/ZG3jRL8m

https://pastebin.com/RafVvdW5

the line saying no wireless extensions doesn't seem good, let me know what you thinkmit links back to (driver for the NIC ? config ? ...)

Thanks

 

Share this post


Link to post
Share on other sites

Only wireless interfaces should have wireless extensions under the output of iwconfig, which is correct with your output.

As of writing this I am on the train and don't have access to a pineapple, but I will go through your setup when I get home. For now, ensure you are providing all the correct details in the most up-to-date wp6.sh script, such as the correct  IP address.

 

  • Like 1

Share this post


Link to post
Share on other sites
  1. Hey so i managed to make it work on a fresh VM install of UBUNTU . What has strike me is that the order in which you connect the nano, there is a way for each OS.
  2. For my settings, i need to launch the vm with nano already connected, Ubuntu will default to this as main net card and wifi won't work, then run the script, unplug the nano on step 3, plug back in, wait until its stable then finalize wp6 script and all is back to normal and connection sharing works. all bulletins loading and all running smoothly.
  3. What's next :) ?!?!?
  4. Thanks

Share this post


Link to post
Share on other sites

Well, the script is made so that you can't complete the set-up if its already inserted. One of the steps is to plug the device into the computer. However, I am happy that you've solved your issue.

Share this post


Link to post
Share on other sites
On 9/30/2017 at 4:58 PM, tld75 said:

anyone has similar

No promises but this might help, if it does please let me know.

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×