Jump to content

Recommended Posts

Posted

Hello community, I recently purchased a mk7 and I would like to know if it is possible to change the default port 1471 that it has to access the web interface. I searched a lot but I cannot find a web server for the device administration interface. I am looking directly in the file system for port 1471:

"grep -rnw '/' -e '1471' 2>/dev/null"

...but it is taking too long and the device is getting hot, the cpu is working at 86% of its capacity and I am afraid that it will be damaged. If someone could guide me I would be very grateful.

Posted

The port of the web UI can't be changed from what I've heard over the years

The process/executable that is using the port is

/pineapple/pineapple

Run

netstat -tulpn

or

netstat -tulpn | grep 1471

and port 1471 should be in the output, for example

tcp        0      0 :::1471                 :::*                    LISTEN      3610/pineapple

where 3610 is the current PID of the process (might/will be something else)

The above can be "verified" with

ps ax

or

ps ax | grep [/]pineapple/pineapple

sample output

3610 ?        Sl     0:11 /pineapple/pineapple

 

Doing grep on the file system is most likely not being successful, it's not visible in that way in the binary. You might be able to download the binary to a Linux PC and run strings on it, but it won't show anything relevant anyway. You could try to reverse engineer the binary to find any location where the port is stored, but most likely not being able to change anything and get a useful executable. Wouldn't suggest to reverse engineer proprietary code anyway, but it's still an option.

One way would be to run some sort of reverse proxy in the same network as the Pineapple is connected to as a WiFi client, but I haven't tried that option since it hasn't been a relevant use case. Using an external (to the Pineapple) reverse proxy would not really be a valid option if trying to access the Pineapple using USB-C Ethernet or any of the APs of the Pineapple.

The easiest way, however, would probably be to add a (permanent) iptables rule to the Pineapple, such as

iptables -t nat -I PREROUTING --src 0/0 --dst 172.16.42.1 -p tcp --dport 33333 -j REDIRECT --to-ports 1471

then access the web UI on the specified port 33333, i.e.

http://172.16.42.1:33333/

but I have no idea what impact that might have on the functionality of the Pineapple as a whole, it might break things (most likely not in a way that totally bricks the Pineapple though)
 

  • Thanks 1

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