Jump to content

Questions about wp6.sh


Onus

Recommended Posts

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)

<SNIP>

any help please :huh:

Hi ldf913,

Your settings are all correct except for the Gateway. This is your home routers IP address. From your ifconfig, I can see that you have a 192.168.2.X address. My assumption is that your router is at 192.168.2.1.

If this is correct, make sure to set THAT as your gateway (not 172.16.42.1).

Best Regards,

Sebkinne

Link to comment
Share on other sites

  • Replies 111
  • Created
  • Last Reply

Hi ldf913,

Your settings are all correct except for the Gateway. This is your home routers IP address. From your ifconfig, I can see that you have a 192.168.2.X address. My assumption is that your router is at 192.168.2.1.

If this is correct, make sure to set THAT as your gateway (not 172.16.42.1).

Best Regards,

Sebkinne

ok cool will try..

thank you :-)

Link to comment
Share on other sites

A Chromebook is a very neat device for powering and using the Pineapple because it's lightweight and has a long battery life.

The only problem is I cannot enable Internet connection sharing on it because to my knowledge there are no such options.

Since I have developer mode enabled I have a regular linux shell, but wp6.sh does not work. It outputs the regular "browse to http://172.16.42.1:1471"but kills the Internet on the Chromebook until I reboot.

My settings for wp6.sh are:

Netmask: 255.255.255.0
Network: 172.16.42.0/24
LAN: eth0
WAN: mlan0
Gateway: 192.168.5.1
Host PC: 172.16.42.42
WiFi Pineapple: 172.16.42.1

My output of "route -n" before plugging in the Pineapple is:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.5.1 0.0.0.0 UG 1 0 0 mlan0
192.168.5.0 0.0.0.0 255.255.255.0 U 0 0 0 mlan0

My output of "route -n" after plugging in the Pineapple is:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.5.1 0.0.0.0 UG 1 0 0 mlan0
0.0.0.0 172.16.42.1 0.0.0.0 UG 15 0 0 eth0
172.16.42.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.5.0 0.0.0.0 255.255.255.0 U 0 0 0 mlan0

ifconfig produces (XX is censored):

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.16.42.111 netmask 255.255.255.0 broadcast 172.16.42.255
inet6 fe80::2c0:caff:fe8b:3ccf prefixlen 64 scopeid 0x20<link>
ether XX:XX:XX:XX:XX:XX txqueuelen 1000 (Ethernet)
RX packets 102 bytes 5624 (5.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 4660 (4.5 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 156 bytes 11816 (11.5 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 156 bytes 11816 (11.5 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

mlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.5.11 netmask 255.255.255.0 broadcast 192.168.5.255
inet6 fe80::2ac2:ddff:fe62:ef15 prefixlen 64 scopeid 0x20<link>
ether XX:XX:XX:XX:XX:XX txqueuelen 1000 (Ethernet)
RX packets 2995 bytes 2237403 (2.1 MiB)
RX errors 0 dropped 30 overruns 0 frame 0
TX packets 2618 bytes 556993 (543.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

Thanks for any help!

Link to comment
Share on other sites

Might be able to do what I did for my nexus running nethunter. Connect to the management interface of the nano via wifi, ssh to the nano and run ifconfig. Gives you the lan IP of the pineapple on your device it's connected to. My case it was 192.168.x.x. Then from your device, navigate your browser to that 192.168.x.x:1471. Worked for me.

Link to comment
Share on other sites

Hello all.

I should start off by saying I'm new in the community and an aspiring ethical hacker. So please go easy on me.

I was given the nano as a christmas gift and so far, I've learned so much.

My first issue is bridging the internet connection from my MacBook Pro El Capitan to the nano via the usb Y cable.

I attempted to configure through the terminal on my mac using wp6.sh but can't seem to get it right.

I leave the ip address and subnet the same, but change the lan and wan from eth1 and wan0 to en5 and en1 as those are the right interfaces related. after hitting return, it does nothing.

Now I'm no expert but I believe this is a linux only script and so it probably doesn't work with apple computers. If that is the case, is there a work around?

Second problem I'm having is mounting the sd card.

I will just say that the system log reports that "codepage CP427" is not found.

Tue Jan  5 20:00:20 2016 kern.info kernel: [  365.280000] usb-storage 1-1.2:1.0: USB Mass Storage device detected
Tue Jan  5 20:00:20 2016 kern.info kernel: [  365.290000] scsi host4: usb-storage 1-1.2:1.0
Tue Jan  5 20:00:21 2016 kern.notice kernel: [  366.290000] scsi 4:0:0:0: Direct-Access     Generic  STORAGE DEVICE   0933 PQ: 0 ANSI: 6
Tue Jan  5 20:00:21 2016 kern.notice kernel: [  366.300000] sd 4:0:0:0: Attached scsi generic sg0 type 0
Tue Jan  5 20:00:21 2016 kern.notice kernel: [  366.310000] sd 4:0:0:0: [sda] Attached SCSI removable disk
Tue Jan  5 20:00:21 2016 daemon.err block: Unkown action change
Tue Jan  5 20:00:22 2016 daemon.err block: Unkown action change
Tue Jan  5 20:00:31 2016 user.notice root: SD card has been inserted
Tue Jan  5 20:00:33 2016 kern.info kernel: [  378.160000] usb-storage 1-1.2:1.0: USB Mass Storage device detected
Tue Jan  5 20:00:33 2016 kern.info kernel: [  378.160000] scsi host5: usb-storage 1-1.2:1.0
Tue Jan  5 20:00:34 2016 kern.notice kernel: [  379.170000] scsi 5:0:0:0: Direct-Access     Generic  STORAGE DEVICE   0933 PQ: 0 ANSI: 6
Tue Jan  5 20:00:34 2016 kern.notice kernel: [  379.180000] sd 5:0:0:0: Attached scsi generic sg0 type 0
Tue Jan  5 20:00:34 2016 kern.notice kernel: [  379.390000] sd 5:0:0:0: [sda] 15523840 512-byte logical blocks: (7.94 GB/7.40 GiB)
Tue Jan  5 20:00:34 2016 kern.notice kernel: [  379.400000] sd 5:0:0:0: [sda] Write Protect is off
Tue Jan  5 20:00:34 2016 kern.debug kernel: [  379.410000] sd 5:0:0:0: [sda] Mode Sense: 21 00 00 00
Tue Jan  5 20:00:34 2016 kern.notice kernel: [  379.410000] sd 5:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
Tue Jan  5 20:00:34 2016 kern.info kernel: [  379.430000]  sda: sda1
Tue Jan  5 20:00:34 2016 kern.notice kernel: [  379.450000] sd 5:0:0:0: [sda] Attached SCSI removable disk
Tue Jan  5 20:00:35 2016 daemon.err block: mounting /dev/sda1 (vfat) as /sd failed (-1) - Unknown error -1
Tue Jan  5 20:00:35 2016 kern.err kernel: [  379.670000] FAT-fs (sda1): codepage cp437 not found
Tue Jan  5 20:00:35 2016 kern.err kernel: [  379.810000] FAT-fs (sda1): codepage cp437 not found
Tue Jan  5 20:01:42 2016 user.notice root: SD card has been removed

so...

while I looked as some other posts regarding this issue, I can't seem to pinpoint if this log is related. I have looked at the fstab file but I don't see anything else other than it should be sda1 not sd1. Either way I fixed that but it still gives me that error.

Any help would be appreciated.

Thanks for building an awesome product.

Link to comment
Share on other sites

WP6.sh is for linux there is a known issue with ICS on Macs that is a OS issue unfortunately however many people have had luck using a VM on their Macs running Kali or your flavor of Linux to be able to share that connection.

As for the SDcard it is a known issue in this version of the firmware and Sebkinne is working on fixing it and has hopes that the new firmware will be pushed out sometime this week.

Link to comment
Share on other sites

WP6.sh is for linux there is a known issue with ICS on Macs that is a OS issue unfortunately however many people have had luck using a VM on their Macs running Kali or your flavor of Linux to be able to share that connection.

As for the SDcard it is a known issue in this version of the firmware and Sebkinne is working on fixing it and has hopes that the new firmware will be pushed out sometime this week.

Thanks for the prompt response.

so just to clarify, the wp6.sh is only linux. Mac does not bridge the internet to the nano and I'm assuming neither does windows.

If that's the case, I may just format and install linux on my macbook pro.

Glad to hear the SD mount is being looked over.

Thanks for your help.

Link to comment
Share on other sites

The Kali VM will get it's internet from it's built in vmware ethernet(eth0) connection to the Mac. When you plug the pineapple into your Mac, from vmware tell it to take over the usb connection. This will add a second ethernet to Kali(eth1), from there run the wp6 script, but change the script so it sets up the pineapplewan to eth0, and the pineapplelan is eth1. That should get you going.

The post that I quoted above is one way to just use a VM with Kali so that you don't have to reformat your machine. If you have a Windows machine the following viedo can help you step through the setup of ICS.

Link to comment
Share on other sites

  • 2 weeks later...

Hi,

Will there be a wp6.sh that I can use on my mac?

UPDATE2: Well maybe not it gets to wlan0 but doesn't go anywhere so maybe it doesn't work :B

UPDATE1: Appears to work on OS X El Cap

sJI3LUd.png

As far as I know you can use this the wp6.sh with OS X if im not mistaken however I will try it out myself but it should work the same as using it on linux but I could be wrong.

Link to comment
Share on other sites

UPDATE2: Well maybe not it gets to wlan0 but doesn't go anywhere so maybe it doesn't work :B

UPDATE1: Appears to work on OS X El Cap

sJI3LUd.png

As far as I know you can use this the wp6.sh with OS X if im not mistaken however I will try it out myself but it should work the same as using it on linux but I could be wrong.

Yes, you ran the script, but ICS with that script will not work on OS X. If you want ICS, use Linux.

Link to comment
Share on other sites

I've updated the WiFi Pineapple Linux connection script.

wp6.sh now includes a guided Internet and WiFi Pineapple Interface selection. The default gateway selection is now based on the selected Internet interface and will indicate if no default route is available. The IP address settings are easily skipped, keeping the (172.16.42.0/24) defaults which will suffice for the vast majority of us.

It's available from https://github.com/hak5darren/wp6 and soon from https://www.wifipineapple.com/wp6.sh

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

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

Connect using saved settings     [Y/n]? n

Select WiFi Pineapple Interface:
	0)	eth0	10.73.31.143
	1)	eth18	172.16.42.42
	2)	wlan0	10.73.31.139
> 1

Select Internet Interface:
	0)	eth0	10.73.31.143
	1)	eth18	172.16.42.42
	2)	wlan0	10.73.31.139
> 2

Choose Internet Gateway:
	0)	10.73.31.1
	1)	10.73.31.1
> 0

Keep default IP settings?        [Y/n]? n

WiFi Pineapple Network           [172.16.42.0/24]: 
WiFi Pineapple Netmask           [255.255.255.0]: 
Host IP Address                  [172.16.42.42]: 
WiFi Pineapple IP Address        [172.16.42.1]: 

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

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


Browse to http://172.16.42.1:1471

Cheers!

Link to comment
Share on other sites

Has anyone experienced the following?

I installed Kali Linux on an old laptop. I have both wired and wireless connectivity if I choose to do so but not at the same time.

The same is true when I plug the Nano via the USB. It recognizes it as an interface and I can connect to it but If I try to go to the internet I have to switch the active network from eth1 to eth0.

Then I can't connect to the Nano. On both OS Windows and Mac I can have both (actually 3 if you count wireless) active.

I have a feeling it has to do with network bridging but I can't seem to configure it properly.

Any suggestions?

Link to comment
Share on other sites

Lol The NANO doesn't even appear to work for me using Kali Linux I never even tried to use the NANO with a Laptop till you made this thread

I downloaded the wp6.sh set the wp6.sh to chmod +x wp6.sh

connected the Y Cable to my NANO and connected the two other USB ports to my Laptop picked my home WiFi on Kali to have the NANO use that Internet source ran ./wp6.sh typed N

eth0 has nothing

eth1 shows the pineapple 172.x.x.x

wlan0 shows my IP for the wlan0

press enter and no internet for the NANO or the Laptop yay so not only does the WiFi Pineapple Connector App not work but now the wp6.sh doesn't appear to detecting anything for eth0 im curious if you have to connect a USB to the the other side of the NANO or not I know with like Android you connect the changer cable to that and the other end is for power but im pretty sure the 3 usb ports on the Y cable one is for power the other is for data and the other is to connect to the NANO.

Link to comment
Share on other sites

Lol The NANO doesn't even appear to work for me using Kali Linux I never even tried to use the NANO with a Laptop till you made this thread

I downloaded the wp6.sh set the wp6.sh to chmod +x wp6.sh

connected the Y Cable to my NANO and connected the two other USB ports to my Laptop picked my home WiFi on Kali to have the NANO use that Internet source ran ./wp6.sh typed N

eth0 has nothing

eth1 shows the pineapple 172.x.x.x

wlan0 shows my IP for the wlan0

press enter and no internet for the NANO or the Laptop yay so not only does the WiFi Pineapple Connector App not work but now the wp6.sh doesn't appear to detecting anything for eth0 im curious if you have to connect a USB to the the other side of the NANO or not I know with like Android you connect the changer cable to that and the other end is for power but im pretty sure the 3 usb ports on the Y cable one is for power the other is for data and the other is to connect to the NANO.

Thanks for letting us know thats why i didn't order the Nano like you said is in beta why have people spend 100 plus for something that's is still in beta i just hope that when they get the tetra is working good not with all these problems. I even scare to order hak5 stickers they might not even stick right

Link to comment
Share on other sites

Thanks for letting us know thats why i didn't order the Nano like you said is in beta why have people spend 100 plus for something that's is still in beta i just hope that when they get the tetra is working good not with all these problems. I even scare to order hak5 stickers they might not even stick right

I don't remember ever having to pay for something that was still in development stage I honestly can't believe hak5 would sell a beta hardware. I just hope that just because its a beta hardware that I don't end up having to spend another $100 to get the final product just to get updates in the future.

I'm possibly gonna be hated by a lot of people for what im about to say but I believe hak5 is in this for the money.

I mean how people are willing to spend $100+ on a device like these which has limited support is beyond me. I don't mean to sound like a cry baby but this nano is not something I'd recommend to people right now just because of the fact that it doesn't work but with a select few devices and now it apparently doesn't work with Kali Linux

Link to comment
Share on other sites

You're all doing it wrong then. I have my nano running on Kali 2.0 USB live on my MacBook and Kali 2.0 on my msi laptop. And also Kali nethunter 3.0 on my nexus 7. That's three different installations of Kali all working with my nano.

You don't need all these cables connecting your nano to your Laptop. Either plug the male use port directly into the laptop, or use an extension cable if it's next to an exhaust vent. One cable. One. Run wp6.sh and give it the right parameters. Pineapple interface, Internet interface and gateway ip. If you can't figure this out, then you probably shouldn't be using the nano anyway.

Bashing a working product for your own lack of understanding is childish and ignorant.

Link to comment
Share on other sites

In it for the money? I have no affiliation with HAK5, I've never met or spoken to anyone from Hak5, so I can impartially say that I suspect your talking cobblers.

think about how much time these guys have spent getting this product to Beta release, how much work has gone into the design, sourcing of parts, sourcing of manufacturers, and the countless hours of development work that's gone into the R&D and general development work to get it into our hands.

Now factor in how many units they're likely to sell, the profit margin that isn't going to buy them all a Porsche, and the ongoing support that they are providing.

Stick with learning why you aren't having success, provide as much info as you can here, learn from those that have got their Nano working with the same OS as you.

I'm *very* new to Pineapple, and I've found it frustrating getting up to speed with that and Linux, which I'm really not strong with. Persevere with it, you'll have an epiphany, get something working that then points you to another avenue of investigation, and enjoy the successes that you'll make.

Link to comment
Share on other sites

ZaraByte.......chill a bit...... You have been here for awhile..... You have created a few very informative videos....I go to your website to see any updates.... Come on dude look at your sig....... 99% of everyone is having success..... Let's work through this.

Link to comment
Share on other sites

I don't remember ever having to pay for something that was still in development stage I honestly can't believe hak5 would sell a beta hardware. I just hope that just because its a beta hardware that I don't end up having to spend another $100 to get the final product just to get updates in the future.

I'm possibly gonna be hated by a lot of people for what im about to say but I believe hak5 is in this for the money.

I mean how people are willing to spend $100+ on a device like these which has limited support is beyond me. I don't mean to sound like a cry baby but this nano is not something I'd recommend to people right now just because of the fact that it doesn't work but with a select few devices and now it apparently doesn't work with Kali Linux

I'd just like to take a moment and say that the hardware is not in beta its the software that runs on the hardware this is in beta. Lots of company release beta products that cost money most notably Google Glass. It costs money for companies to make the hardware and they have to pay the developers who make the software so yes they need to sell it. The Nano and the Tetra are the next gen pineapples and they ARE going to be released where as Google sold lots of sets of the Google Glass and then after people bought them abandoned the project. Instead of ranting about it not being fully featured how about contributing to the project and fixing broken things or creating something new instead of complaining.

Link to comment
Share on other sites

I personally don't experience even a quarter of the problems I see on these forums. Most of the time it's not the device that's jacked up but it's a user that simply hasn't yet learned fully what they are trying to accomplish. With that said, be confident that the NANO and TETRA hardware is not going to change. As newbi3 stated the software is in beta, not the hardware.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...