Jump to content

Setup for Wifi Pineapple Nano on Ubuntu 18.04


jeff03038

Recommended Posts

Upgraded to Ubuntu 18.04, ran the wp6.sh script. The pineapple would work after I disconnected and reconnected and reset Network Manager but it would work sometimes. The Route Table was also messed up, it had dual entries for 172.16.42.0 as an example.

Instead I came up with procedures that work really well. 

Take a look

----------------------------------------------------------------------------

prior to plugging Pineapple in

#Ensure /etc/resolv.conf has DNS entries if not add DNS, ignore warnings

nano /etc/resolvconf/resolv.conf.d

#If nothing there add

nameserver 8.8.8.8
nameserver 1.1.1.1

#Ensure ufw is disabled

ufw disable

#Make sure routing is enabled

cat /proc/sys/net/ipv4/ip_forward

#Set to 1 if 0

nano /proc/sys/net/ipv4/ip_forward

#Plug-in Pineapple

Route Table will look soemething like this:

root@redsox1:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         _gateway        0.0.0.0         UG    0      0        0 wlo1
default         _gateway        0.0.0.0         UG    20100  0        0 enx00c0ca914973
10.0.0.0        0.0.0.0         255.255.255.0   U     600    0        0 wlo1
link-local      0.0.0.0         255.255.0.0     U     1000   0        0 enx00c0ca914973
172.16.42.0     0.0.0.0         255.255.255.0   U     100    0        0 enx00c0ca914973

#Delete the additonal route added by the Pineapple
route del -net 0.0.0.0/0 dev enx00c0ca914973

Table should look like this 

root@redsox1:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         _gateway        0.0.0.0         UG    0      0        0 wlo1
10.0.0.0        0.0.0.0         255.255.255.0   U     600    0        0 wlo1
link-local      0.0.0.0         255.255.0.0     U     1000   0        0 enx00c0ca914973
172.16.42.0     0.0.0.0         255.255.255.0   U     100    0        0 enx00c0ca914973

#http into the pineapple http://172.16.42.1:1471 and change the default route to 172.16.42.201

#Web into 172.16.42.1:1417 and make sure you can update bulletins

#Now you have internet sharing with the Pineapple!!!

Link to comment
Share on other sites

Just_a_user,  I have followed your post mentioned above for both Ubuntu 18.04 and Kali 2018.3 with no success.  I created an ethernet connection named nano and assigned it an ip of 172.16.42.42/24.  When testing the connection it will still not connect to receive bulletins.

 

 

Link to comment
Share on other sites

1 minute ago, olsenwc said:

When testing the connection it will still not connect to receive bulletins.

did you follow the nm-connection-editor part?

Specifically the "Browse to ipv4 settings tab and use the drop down menu to select "Shared to other computers" "

Link to comment
Share on other sites

Just now, olsenwc said:

I did.  Though I did the nm-connection-editor with the pineapple connected.

 

shouldn't make a difference, but once the changes are made and saved/closed you will need to either disable then re-enable the connection using network manager switch. or unplug and re-plug the nano to take effect.

Im using this method now for ICS all my hak5 gear so i know the method is solid.

Link to comment
Share on other sites

this after you have run the wp6 script right?

maybe that's borked your iptables. i haven't run that script and ONLY set up manually.

Try flushing the rules (backing up any others you have entered/need).

That's the only difference i can think of.

Link to comment
Share on other sites

1 minute ago, olsenwc said:

I have not run the script and this is a fresh install

Then i don't know what to suggest. If i get time tomorrow i will try and download Kali (I'm using Ubuntu 18) and see if I get the same issues. For now i sleep.

Link to comment
Share on other sites

  • 7 months later...
  • 5 months later...

You should install net-tools. However, the issue with the wp6 script lies with how it sets up iptables.

I've used the commit approved by H4xl0r on May 27, 2018. I dont know how this fix has been pending approval for so long whilst the forums are littered by repeat topics about ICS linux issues revolving around the wp6 script. Below is a link to the raw file with the changes:
https://github.com/hak5darren/wp6/blob/ac2484b551f9f22d41b0b51df0c98ecb8b22d789/wp6.sh

Create a wp6.sh file with the raw content from that pull request. I can confirm it works and you dont need to manually set ipv4 ip's or deal with nm-connection-editor

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...