Jump to content

Help Needed With My New Pineapple!


Recommended Posts

Hello esteemed members of the Hak5 forums :)

I've just got my Pineapple Mk IV and I'm having some trouble getting started, I feel a bit silly really...

So let me start by explaining what I'm working with here:

System: MacBook Air 4,1 (I like Apple's hardware okay...)

OS: elementary Luna, dev builds (Ubuntu 12.04 just transformed with a few different packages)

Pineapple: Mk IV (with whichever firmware it comes with I suppose :P)

I'll go ahead and explain my system's network interfaces. I use the laptop's wireless, which is, as expected, wlan0.

The MacBook Air doesn't actually have an ethernet port, however, it has a ethernet to USB adapter (which when being used is seen as eth0) that works flawlessly.

So here's the deal, I can connect to my Pineapple by way of the pineapple's wifi, however, I wish to be able to communicate with it via ethernet, but maintain my wifi connection.

I've ran the quick start wp4.sh script, however the ping test always fails at the end :(

I feel unbelievably nooby asking for help with this, but oh well :P

Any help on this is greatly appreciated, thanks in advance!

Edited by Phyrne
Link to comment
Share on other sites

I have a similar setup.

internet via en1 (wireless - with dhcp from wap\router)

connected the mark4 to the ethernet (not macair, just macbook pro) via the POE on the mark4 and en0

I MANUALLY set the ip for the en0 interface to be 172.16.42.42.

I then setup sharing (via network settings) to bridge the two.

works great.

en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500

ether 00:16:cb:8b:95:52

inet 192.168.2.1 netmask 0xffffff00 broadcast 192.168.2.255

inet6 fe80::216:cbff:fe8b:9552%en0 prefixlen 64 scopeid 0x4

inet 172.16.42.42 netmask 0xffffff00 broadcast 172.16.42.255

media: autoselect (100baseTX <full-duplex,flow-control>)

status: active

en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500

ether 00:14:51:ed:cf:38

inet6 fe80::214:51ff:feed:cf38%en1 prefixlen 64 scopeid 0x5

inet 192.168.1.104 netmask 0xffffff00 broadcast 192.168.1.255

media: autoselect

status: active

Link to comment
Share on other sites

Thanks for the replies :)

barry99705, how are the settings supposed to be configured?

NotTheFed, are you running OS X?

I've enabled the proprietary drivers for my wireless card, so my wifi interface is now eth1, the wired connection to the Pineapple is eth0.

Could someone please direct me to getting the setup I desire as described above?

Really appreciate the help! :D

Link to comment
Share on other sites

Thanks for the replies :)

barry99705, how are the settings supposed to be configured?

NotTheFed, are you running OS X?

I've enabled the proprietary drivers for my wireless card, so my wifi interface is now eth1, the wired connection to the Pineapple is eth0.

Could someone please direct me to getting the setup I desire as described above?

Really appreciate the help! :D

ifconfig eth0 172.16.42.42

Then run the script. Should work after that.

Edited by barry99705
Link to comment
Share on other sites

  • 2 weeks later...

I assigned eth0 172.16.42.42, then ran the script, however, it still fails the ping requests at the end of the script stating that it couldn't reach the host :(

Any ideas?

I always give it 10 seconds after the wps button stops flashing and all the lights come on, then I execute the script

Link to comment
Share on other sites

This might be a silly question, but which Ethernet port on the pineapple are you plugging in to?

Despite your more custom setup with the mb air, you seem to be doing everything right, If your plugging in to the LAN port instead of the Poe port, that could explain all your troubles here. If you are using the poe port and it's not working, load a bt5 live disk on a friends computer that has a proper Ethernet port on it, as that is the major difference between your setup and the norm. Good luck

telot

Link to comment
Share on other sites

i have the same setup you do and mac is very temperamental with ICS: first thing go over this post in the forums, http://forums.hak5.org/index.php?showtopic=25889

the long and the short is you will have to set your usb adapter to 192.168.2.1 as mac only run ics over that exact ip address - next plug the ethernet cable from the usb dongle into lan/POE port on the pineapple, then you will have to set the lan/poe on the pineapple to ip:(vi /etc/config/network)192.168.2.X (anything except 1) subnet mask of 255.255.255.0 and a gateway of 192.168.2.1 since it is treating your laptop lan as the gateway. once all this is setup you might have to power cycle the pineapple and then disable/enable ICS on the mac, sometimes you have the cycle ICS a couple times - dont ask me why it is just mac's annoyances. do not run the shell scripts for auto setup as they are written for linux and eventhough mac has bash it doesn't mater, ics ONLY works on 192.168.2.1 if i am wrong on any of this info please correct me but this is what i have found with my setup.

Link to comment
Share on other sites

i have the same setup you do and mac is very temperamental with ICS: first thing go over this post in the forums, http://forums.hak5.org/index.php?showtopic=25889

the long and the short is you will have to set your usb adapter to 192.168.2.1 as mac only run ics over that exact ip address - next plug the ethernet cable from the usb dongle into lan/POE port on the pineapple, then you will have to set the lan/poe on the pineapple to ip:(vi /etc/config/network)192.168.2.X (anything except 1) subnet mask of 255.255.255.0 and a gateway of 192.168.2.1 since it is treating your laptop lan as the gateway. once all this is setup you might have to power cycle the pineapple and then disable/enable ICS on the mac, sometimes you have the cycle ICS a couple times - dont ask me why it is just mac's annoyances. do not run the shell scripts for auto setup as they are written for linux and eventhough mac has bash it doesn't mater, ics ONLY works on 192.168.2.1 if i am wrong on any of this info please correct me but this is what i have found with my setup.

All fine advice for someone with Mac OSX, but the OP is running a flavor of Ubuntu :)

telot

Edited by telot
Link to comment
Share on other sites

Thanks for the replies guys! The help is greatly appreciated :)

I am indeed plugging it onto the PoE port. Unfortunately I won't have a chance to test another PC with an actual ethernet port for a while.

I disabled the proprietary driver for my wireless card as that sets the interfaces to how they would usually appear. So now the link between my Pineapple and MacBook is eth0 and the wifi is wlan0 :) (used to be eth1)

I'm still getting the same issue unfortunately, I do make sure to wait a while after the WPS button has stopped flashing before trying any of this.

Here's the steps I take below (including my ifconfig):

First I set the ip on eth0 manually:

┌─[phyrne@MacBookAir][Documents]
└─→ » sudo ifconfig eth0 172.16.42.42

Here's my ifconfig:

┌─[phyrne@MacBookAir][Documents]
└─→ » ifconfig 
eth0      Link encap:Ethernet  HWaddr b8:8d:12:56:b0:0b  
          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:16436  Metric:1
          RX packets:365 errors:0 dropped:0 overruns:0 frame:0
          TX packets:365 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:28784 (28.7 KB)  TX bytes:28784 (28.7 KB)

wlan0     Link encap:Ethernet  HWaddr 10:40:f3:89:c2:e2  
          inet addr:192.168.0.110  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::1240:f3ff:fe89:c2e2/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:267 errors:0 dropped:0 overruns:0 frame:0
          TX packets:418 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:30045 (30.0 KB)  TX bytes:58388 (58.3 KB)

Then I run the script and leave all the options as default, here's the results:

┌─[phyrne@MacBookAir][Documents]
└─→ » sudo ./wp4.sh 
Input Pineapple Netmask [or ENTER for 255.255.255.0]: 
Input Pineapple Network [or ENTER for 172.16.42.0/24]: 
Input Interface between PC and Pineapple [or ENTER for eth0]: 
Input Interface between PC and Internet [or ENTER for wlan0]: 
Input Internet Gateway [or ENTER for 192.168.0.1]: 
Input IP Address of Host PC [or ENTER for 172.16.42.42]: 
Input IP Address of Pineapple [or ENTER for 172.16.42.1]: 
Pineapple connected to: eth0
Internet connection from: wlan0
Internet connection gateway: 192.168.0.1
Host Computer IP: 172.16.42.42
Pineapple IP: 172.16.42.1
Network: 172.16.42.0/24
Netmask: 255.255.255.0
IP Forwarding enabled. /proc/sys/net/ipv4/ip_forward set to 1
iptables chains and rules cleared
IP Forwarding Enabled
Default route removed
Pineapple Default Gateway Configured
PING 172.16.42.1 (172.16.42.1) 56(84) bytes of data.
From 172.16.42.42 icmp_seq=1 Destination Host Unreachable
From 172.16.42.42 icmp_seq=2 Destination Host Unreachable
From 172.16.42.42 icmp_seq=3 Destination Host Unreachable

--- 172.16.42.1 ping statistics ---
3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2017ms
pipe 3

Browse to http://172.16.42.1/pineapple  --  Happy Hacking!

Perhaps it's something really simple I'm missing?

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.

  • Recently Browsing   0 members

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