Jump to content
Onus

Questions about wp6.sh

Recommended Posts

When i set up my pineapple nano i did the following withthe wP6.sh

Connect using saved settings     [Y/n]? n

WiFi Pineapple Netmask           [255.255.255.0]: 
WiFi Pineapple Network           [172.16.42.0/24]: 
Host Interface to WiFi Pineapple [eth0]: eth1
Host Interface to Internet       [wlan0]:      
Internet Gateway                 [10.0.0.1]: 
IP Address of Host               [172.16.42.42]: 
IP Address of WiFi Pineapple     [172.16.42.1]: 

Save settings for next session   [Y/n]? Y

Settings saved.


     _ .           ___          \||/   Internet: 10.0.0.1 - wlan0
   (  _ )_  <-->  [___]  <-->  ,<><>,  Computer: 172.16.42.42
 (_  _(_ ,)       \___\        '<><>' Pineapple: 172.16.42.0/24 - eth1

sweet all good, right? no.. when i plugg my nano back in and say use saved settings this happens:

root@kali:~# ./wp6.sh 
  _       ___ _______    ____  _                              __   
 | |     / (_) ____(_)  / __ \(_)___  ___  ____ _____  ____  / /__ 
 | | /| / / / /_  / /  / /_/ / / __ \/ _ \/ __ '/ __ \/ __ \/ / _ \
 | |/ |/ / / __/ / /  / ____/ / / / /  __/ /_/ / /_/ / /_/ / /  __/
 |__/|__/_/_/   /_/  /_/   /_/_/ /_/\___/\__,_/ .___/ .___/_/\___/ 
                                             /_/   /_/       v6.0

Netmask:        255.255.255.0
Network:        172.16.42.0/24
LAN:            eth1
WAN:            wlan0
Gateway:        10.0.0.1
Host PC:        172.16.42.42
WiFi Pineapple: 172.16.42.1

Connect using saved settings     [Y/n]? Y

     _ .           ___          \||/   Internet: 10.0.0.1 - wlan0
   (  _ )_  <-->  [___]  <-->  ,<><>,  Computer: 172.16.42.42
 (_  _(_ ,)       \___\        '<><>' Pineapple: 172.16.42.0/24 - eth1

Browse to http://:1471

it only seems to work if i say no everytime.. please help

Share this post


Link to post
Share on other sites

Hi Guys,

First off i should start by saying i am new to hak5 and this is my first pinapple so go easy,

Ordered the kit and arrived very quick, due to the festive season and all that only got a chance to look at it now.

When i tried downloading the wp6.sh and runnig ./wp6.sh i got below error. has anyone got this?

I tried manually adding default gw but got noting at all the pinapple stopped working... untill i did a reboot.

Ive also had issues connecting it to my HTC m8 just keeps asking me to configure thertheing even when i do, i seen someone had this same issue, (not really worried about this yet) also incase it matters im using Kali Linux 2.0 .

any ideas?

Thanks

post-51803-0-04481200-1451334653_thumb.p

Share this post


Link to post
Share on other sites

Simply put, you don't seem to be downloading the file correctly. As you can see in the error, there is html there.

How are you downloading the script? Can you go to the url in your browser?

Best regards,

Sebkinne

Share this post


Link to post
Share on other sites

hi Seb,

Thanks for the quick reply, i simply followed Darrens how to set up Linux version video. i ran wget wifipinapple.com/wp6.sh downloads file fine when search the dir i see it there, so then run chomd +x wp6.sh thats fine then get that error, i looked in the file and taught something was wrong i downloaded afew times in diff location etc but same everytime.

when i browse to the address i get attached website,

What is the script that should actually be in the file should i manually copy it in? or is there another wget link i should use.

post-51803-0-84453300-1451336495_thumb.p

Share this post


Link to post
Share on other sites

hi Seb,

Thanks for the quick reply, i simply followed Darrens how to set up Linux version video. i ran wget wifipinapple.com/wp6.sh downloads file fine when search the dir i see it there, so then run chomd +x wp6.sh thats fine then get that error, i looked in the file and taught something was wrong i downloaded afew times in diff location etc but same everytime.

when i browse to the address i get attached website,

What is the script that should actually be in the file should i manually copy it in? or is there another wget link i should use.

Hi M1c40wav3,

You seem to have typed wifipinapple.com/wp6.sh instead of wifipineapple.com/wp6.sh.

Best Regards,

Sebkinne

Share this post


Link to post
Share on other sites

Seb,

Totally embarssed here....

Really appreciate that. keep up the good work guys,

Merry christmas and happy new year to all at hak5.

Regards,

M

Share this post


Link to post
Share on other sites

Thanks for the heads up!

The bug is in my code where the ASCII art displays the interfaces and IP addresses. It displayed the previously saved IP/Interface instead of the newly set ones. I've fixed it and added a confirmation before connection. I'll push the fix to wifipineapple.com and toss this up on github in case more bugs are found (or if anyone wants to add features).

dk@zv13:~$ sudo ./wp6.sh 
  _       ___ _______    ____  _                              __   
 | |     / (_) ____(_)  / __ \(_)___  ___  ____ _____  ____  / /__ 
 | | /| / / / /_  / /  / /_/ / / __ \/ _ \/ __ '/ __ \/ __ \/ / _ \
 | |/ |/ / / __/ / /  / ____/ / / / /  __/ /_/ / /_/ / /_/ / /  __/
 |__/|__/_/_/   /_/  /_/   /_/_/ /_/\___/\__,_/ .___/ .___/_/\___/ 
                                             /_/   /_/       v6.0

Netmask:        255.255.255.0
Network:        172.16.42.0/24
LAN:            eth1
WAN:            wlan0
Gateway:        10.73.31.1
Host PC:        172.16.42.42
WiFi Pineapple: 172.16.42.1

Connect using saved settings     [Y/n]? n

WiFi Pineapple Netmask           [255.255.255.0]: 
WiFi Pineapple Network           [172.16.42.0/24]: 
Host Interface to WiFi Pineapple [eth0]: eth18
Host Interface to Internet       [wlan0]: 
Internet Gateway                 [10.73.31.1]: 
IP Address of Host               [172.16.42.42]: 
IP Address of WiFi Pineapple     [172.16.42.1]: 

Save settings for next session   [Y/n]? y

Settings saved. Connect now            [Y/n]? y

     _ .           ___          \||/   Internet: 10.73.31.1 - wlan0
   (  _ )_  <-->  [___]  <-->  ,<><>,  Computer: 172.16.42.42
 (_  _(_ ,)       \___\        '<><>' Pineapple: 172.16.42.0/24 - eth18

Browse to http://172.16.42.1:1471

Share this post


Link to post
Share on other sites

Cool, let me know when it is up, and the proper get request.. You are the best kitchen

Share this post


Link to post
Share on other sites

I will, thank you again sir.. might want to improve your tertiary ascii banner.. i still don't know what all three things are..

a cloud or a pile of poo?, some sort of laptop? oh.. a pineapple.. yay! ( i kid )

Share this post


Link to post
Share on other sites

\|/

/X\

XX

_\|/_

/XXX\

\XXX/

Edited by cooper

Share this post


Link to post
Share on other sites

Damn it, I can do this...

 \V/
/XXX\
\XXX/

Share this post


Link to post
Share on other sites

Hi all,

After downloading and starting wp6.sh I can get onto the WifiPineapple screen which gives me the details of how it wants to connect to the wifi pineapple. These are wrong as I do not connect to it via eth18 so I go to change them and as soon as I reach the Wlan phase to press enter it just stops and I can no longer input anything?

Any ideas would be much appreciated.

Share this post


Link to post
Share on other sites

Hi all,

After downloading and starting wp6.sh I can get onto the WifiPineapple screen which gives me the details of how it wants to connect to the wifi pineapple. These are wrong as I do not connect to it via eth18 so I go to change them and as soon as I reach the Wlan phase to press enter it just stops and I can no longer input anything?

Any ideas would be much appreciated.

This issue seems to be related to the way the Internet gateway is determined on the Linux box. Currently I'm looking through netstat -nr and using the second column where the first column is 0.0.0.0. This is usually correct and is exactly what wp5.sh did for the Mark V.

Do you mind providing the output of netstat -nr on your system?

I'm thinking it might be better to determine the default gateway using route. Thanks for the heads up.

  • Upvote 1

Share this post


Link to post
Share on other sites

With the new sh I too noticed that it originally said eth18 but I changed it and it saved properly.. I just assumed it had Mr kitchen's settings baked in as in the nano Linux setup video he states he has been experimenting with eth.. I'm more curious as to why Darren apparently went to the desert with a nano.. @darren where is that video.. So so so curious.

Share this post


Link to post
Share on other sites

This issue seems to be related to the way the Internet gateway is determined on the Linux box. Currently I'm looking through netstat -nr and using the second column where the first column is 0.0.0.0. This is usually correct and is exactly what wp5.sh did for the Mark V.

Do you mind providing the output of netstat -nr on your system?

I'm thinking it might be better to determine the default gateway using route. Thanks for the heads up.

Is this what you're after?

2cpywzo.jpg

Share this post


Link to post
Share on other sites

I am getting this error, is it because it's trying to print the pineapple?

Connect using saved settings [Y/n]? Y

./wp6.sh: line 94: tput: command not found
./wp6.sh: line 94: tput: command not found
./wp6.sh: line 94: tput: command not found
./wp6.sh: line 94: tput: command not found
./wp6.sh: line 94: tput: command not found
./wp6.sh: line 94: tput: command not found
_ . ___ \||/ Internet: 192.168.43.1 - wlan0
./wp6.sh: line 95: tput: command not found
./wp6.sh: line 95: tput: command not found
./wp6.sh: line 95: tput: command not found
./wp6.sh: line 95: tput: command not found
./wp6.sh: line 95: tput: command not found
./wp6.sh: line 95: tput: command not found
./wp6.sh: line 95: tput: command not found
./wp6.sh: line 95: tput: command not found
./wp6.sh: line 95: tput: command not found
./wp6.sh: line 95: tput: command not found
( _ )_ <--> [___] <--> ,<><>, Computer: 172.16.42.42
./wp6.sh: line 96: tput: command not found
./wp6.sh: line 96: tput: command not found
./wp6.sh: line 96: tput: command not found
./wp6.sh: line 96: tput: command not found
./wp6.sh: line 96: tput: command not found
./wp6.sh: line 96: tput: command not found
(_ _(_ ,) \___\ '<><>' Pineapple: 172.16.42.0/24 - eth0
route: SIOCDELRT: No such process
route: SIOCADDRT: Network is unreachable

Browse to http://172.16.42.1:1471

Share this post


Link to post
Share on other sites

ok what am i doing wrong, cant get the wifi conection sharing working... what is supposed to the gateway etc.. what from ipconfig should i copy and paste to the wp6 script?

Netmask: 255.255.255.0 (i know should be that)
Network: 172.16.42.0/24 (dont know if this is correct)
LAN: eth1 ()
WAN: wlan0 (pretty sure this is correct)
Gateway: 172.16.42.1 (not clue)
Host PC: 172.16.42.42 (no clue)
WiFi Pineapple: 172.16.42.1 (pretty sure that supposed to be that)

my ifconfig

eth0      Link encap:Ethernet  HWaddr 1c:b7:2c:1c:b5:84  
          inet addr:172.16.42.42  Bcast:172.16.42.255  Mask:255.255.255.0
          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)

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:26 errors:0 dropped:0 overruns:0 frame:0
          TX packets:26 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1905 (1.8 KiB)  TX bytes:1905 (1.8 KiB)

wlan0     Link encap:Ethernet  HWaddr d0:53:49:f4:ee:d5  
          inet addr:192.168.2.249  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::d253:49ff:fef4:eed5/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5431 errors:0 dropped:0 overruns:0 frame:262197
          TX packets:5285 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4306015 (4.1 MiB)  TX bytes:638881 (623.9 KiB)
          Interrupt:17

any help please :huh:

Share this post


Link to post
Share on other sites

ok what am i doing wrong, cant get the wifi conection sharing working... what is supposed to the gateway etc.. what from ipconfig should i copy and paste to the wp6 script?

Netmask: 255.255.255.0 (i know should be that)

Network: 172.16.42.0/24 (dont know if this is correct)

LAN: eth1 ()

WAN: wlan0 (pretty sure this is correct)

Gateway: 172.16.42.1 (not clue)

Host PC: 172.16.42.42 (no clue)

WiFi Pineapple: 172.16.42.1 (pretty sure that supposed to be that)

my ifconfig

eth0      Link encap:Ethernet  HWaddr 1c:b7:2c:1c:b5:84  
          inet addr:172.16.42.42  Bcast:172.16.42.255  Mask:255.255.255.0
          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)

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:26 errors:0 dropped:0 overruns:0 frame:0
          TX packets:26 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1905 (1.8 KiB)  TX bytes:1905 (1.8 KiB)

wlan0     Link encap:Ethernet  HWaddr d0:53:49:f4:ee:d5  
          inet addr:192.168.2.249  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::d253:49ff:fef4:eed5/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5431 errors:0 dropped:0 overruns:0 frame:262197
          TX packets:5285 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4306015 (4.1 MiB)  TX bytes:638881 (623.9 KiB)
          Interrupt:17
any help please :huh:

What's the output of the "route" command on your Linux box? Looks like the default gateway is misconstrued.

Share this post


Link to post
Share on other sites

What's the output of the "route" command on your Linux box? Looks like the default gateway is misconstrued.

root@kali:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         L-Net           0.0.0.0         UG    1024   0        0 wlan0
192.168.2.0     *               255.255.255.0   U     0      0        0 wlan0

hey Darren this is what it says when wifi pineapple is connected

root@kali:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         Pineapple.lan   0.0.0.0         UG    1024   0        0 eth1
172.16.42.0     *               255.255.255.0   U     0      0        0 eth1
192.168.2.0     *               255.255.255.0   U     0      0        0 wlan0

Edited by ldf913

Share this post


Link to post
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.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...