Skip to content

info about port 80 in device #2

Open

Description

@anxdroid

Hi,

I own a mitsubishi AC with Wifi connectivity that already works with melcloud. I would like to further understand about its functioning and I started messing around with wireshark and nmap.

Before discovering your great page, I already managed to intercept the traffic using wireshark (on a mac) but the only useful infos I could extract were a communication between the device and the host "production.receiver.melcloud.com" on port 80 (a POST request) and a sequence of calls on port 443 that I couldn't decrypt. For that, I'll give a try to your proxy

As I can see, the workflow always starts from the device, that regularly polls the server for commands and this sucks ! I would like to call the device and send commands to be executed immediately !.. Do you think that's possibile to use port 80 for that ?

I doscovered through nmap that the port is open and responding but the webserver replies with 401 (it needs a password). Have you tried to investigate on that side ?

many thanks

Activity

  1. ncaunt commented on May 9, 2020

    @ncaunt
    Owner

    Hi anxdroid,

    production.receiver.melcloud.com resolves to the same IP address as leswifidata.meuk.mee.com so it should work fine with the code in this repo.

    You're correct that the wifi device makes HTTP requests and sends device status, approximately every minute. Mitsubishi's server can respond with codes that the wifi device will send to the heat pump/AC, for example in response to you making changes on the MELCloud site/app. This is the only way I know to send commands using the wifi adapter and I haven't explored sending HTTP requests to it directly but maybe this was left open for an engineer to use or for debugging purposes.

    To make changes immediately you will need to connect something to the serial port of the AC and send commands. Have you seen this repo https://github.com/SwiCago/HeatPump? It is more focussed on air conditioning units (hopefully like yours).

    Cheers!

  2. veso266 commented on Aug 2, 2021

    @veso266

    I also own Mitsubishi MAC-577IF2-E

    and my also sends something to production.receiver.melcloud.com

    but as its https I can not decrypt it, so now I don't know how to get my own server up then (I don't have Mitsubishi private key so I could setup my own server)

    and my also has http page up on port 80 but it requires http basic auth which I don't have username/password for

    Is there any firmware update for this device floating around which I could open in binwalk to see whats going on in this MAC-577IF2-E thing?

    Thanks for Anwsering and Best Regards

  3. niobos commented on May 31, 2022

    @niobos

    Hi @veso266,

    I wanted to check if you made any progress on your search? I'm in the same situation as you: looking to control a MAC-577IF2-E connected A/C unit locally via WiFi.

  4. veso266 commented on May 31, 2022

    @veso266

    Not yet, I guess we need to find a firmware first so we can get to its http server

    There is even a firmware upgrade for mine that I am suggested to install but dont want to because probably even if I capture update process using wireshark, its using https so I couldnt get to the update file anyway

  5. niobos commented on May 31, 2022

    @niobos

    Thanks for you reply. I have some idea's to try to intercept the traffic, but I don't know if they'll work. I'll keep you posted

    On second thought; maybe this GitHub-issue isn't the ideal place to discuss this... but I don't have a better idea at the moment. Sorry ncaunt...

  6. ncaunt commented on May 31, 2022

    @ncaunt
    Owner

    Hi @niobos , don't worry about discussing it here - this is an interesting conversation :) Have a look at the README where I mention the HTTP proxy mode and it might give you ideas about how to redirect the HTTP request from the wireless interface using the dsniff toolkit. You might struggle unless it accepts insecure (self-signed) TLS certificates but this is probably worth a try.

  7. niobos commented on May 31, 2022

    @niobos

    I already tried intercepting the traffic. The MELcloud-server uses a custom root CA (/CN=MELCloud Root Authority), with a leaf certificate for /CN=production.receiver.melcloud.com. I tried presenting my own similar chain, but I get an "Unknown CA" error from the client (MAC-577IF2-E) during the TLS handshake phase. Seems like the CA is pinned in the firmware. I'll have to come up with some more creative ideas...

    For the HTTP-server: it looks like not all paths are protected by the authentication challenge: /license seems to work unauthenticated.

  8. ehliar commented on Jun 17, 2022

    @ehliar

    I would also like to control the MAC-577IF2-E locally. If anyone is interested, in addition to /license, the MAC-577IF2-E accepts the following URLs and asks for a username/password:

    • /
    • /analyze
    • /config
    • /default
    • /network
    • /server
    • /service
    • /update

    Found by writing a script that tried a list of common English words as URLs. (During this process the MAC-577IF2-E seemed to crash or hang repeatedly as well.)

    Note: I know that /network is accepted without a password when setting up the device, perhaps the other URLs might work in that case as well? Something I might test later.

  9. thxer commented on Jul 20, 2022

    @thxer

    APP.zip

    This is the firmware for MAC-577IF2-E.
    The HTTP server needs password for these URLs, even when the module was new.
    I don't found the password in it, maybe it's stored in the nvram, like MAC, Serial, etc.

  10. veso266 commented on Jul 20, 2022

    @veso266

    Wow, thats great, how did you get the FW from it?

    Did you try binwalk on app.bin?

  11. thxer commented on Jul 20, 2022

    @thxer

    I tried binwalk and strings.
    I found some URL-s, and maybe some valid usernames (root, admin, suser, user)
    I found that /config accepts "user" as username and the KEY on the module label for password.

  12. veso266 commented on Jul 20, 2022

    @veso266

    Neat, works like a charm, although config endpoint isnt realy usefull (only some select list with yes/no that asks you about current internet) and I guess other endpoints need a diferent user/password combo

    Its a nice step forward

    Not sure if this fw runs some sort of linux with busybox, maybe try cracking the password with john the ripper (if you managed to find some etc/shadow or etc/passwd file)

    No I have to take a look at binwalk myself (or you could maybe post content of it and strings here for easier acsess)

    I am still puzled on how did you manage to get the fw? (did u open the device up and read the flash? Or did you manage to capture it somehow)?

  13. niobos commented on Jul 21, 2022

    @niobos

    From the looks of it [1], the firmware seems to be FreeRTOS, not linux.
    And based on a reference to C:\sdk-ameba-v4.0c\component\common\mbed\targets\hal\rtl8195a\gpio_api.c, We may have a hint to what hardware is used.

    [1]: I see reference to xTaskCreate, vTaskPrioritySet

  14. niobos commented on Jul 30, 2022

    @niobos

    I've explored the firmware posted above. I found nothing useful yet, but I documented my findings on my blog. Will keep you posted.

  15. TRIROG commented on Sep 9, 2022

    @TRIROG

    Great progress, hope we get the ability for local control!

  16. 134 remaining items

  17. veso266 commented on Aug 4, 2025

    @veso266

    Finaly got a change to play with my unit

    Image

    on mine telnet also returns what I type and I cant seam to invoke any command, even with @mafredri script (also tried @twignet script)
    although, maybe the problem is I rewrote his (@mafredri ) script in python

    #!/usr/bin/env python
    # -*- coding: utf-8 -*-
    
    from __future__ import print_function
    import os
    import sys
    import socket
    import signal
    import argparse
    import threading
    try:
        import readline
    except ImportError:
        try:
            import pyreadline as readline
        except ImportError:
            try:
                import pyreadline3 as readline
            except ImportError:
                readline = None
    import atexit
    
    # Python 2/3 compatibility for input()
    try:
        input = raw_input
    except NameError:
        pass
    
    HISTORY_FILE = os.path.join(os.path.expanduser("~"), ".meltelnet_history")
    
    
    def load_history():
        try:
            readline.read_history_file(HISTORY_FILE)
        except IOError:
            pass
    
    
    def save_history():
        try:
            readline.write_history_file(HISTORY_FILE)
        except IOError:
            pass
    
    
    def receiver(sock, outputs):
        """Receive data from the server and print/log it."""
        while True:
            try:
                data = sock.recv(4096)
                if not data:
                    break
                # Python 3: decode, Python 2: keep as str
                try:
                    text = data.decode("utf-8", errors="replace")
                except AttributeError:
                    text = data
                for out in outputs:
                    out.write(text)
                    out.flush()
            except socket.error:
                break
    
    
    def main():
        parser = argparse.ArgumentParser(description="Minimal Telnet-like client")
        parser.add_argument("host", help="Host to connect to")
        parser.add_argument("--log", dest="log_path", default="", help="Path to log file")
        args = parser.parse_args()
    
        address = (args.host, 23)
    
        # Connect to server
        try:
            sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
            sock.connect(address)
        except socket.error as e:
            print("Failed to connect: %s" % e, file=sys.stderr)
            sys.exit(1)
    
        print("Connected to %s:%d" % address, file=sys.stderr)
    
        outputs = [sys.stdout]
        log_file = None
        if args.log_path:
            try:
                log_file = open(args.log_path, "a")
                outputs.append(log_file)
            except IOError as e:
                print("Failed to open log file: %s" % e, file=sys.stderr)
                sys.exit(1)
    
        if readline:
            load_history()
            atexit.register(save_history)
        else:
            print("Warning: No readline support — history and line editing disabled. (pip install pyreadline3 if on windows)")
    
        stop_event = threading.Event()
    
        def handle_sigint(signum, frame):
            print("\nReceived SIGINT...", file=sys.stderr)
            stop_event.set()
            try:
                sock.shutdown(socket.SHUT_RDWR)
            except socket.error:
                pass
            sock.close()
    
        signal.signal(signal.SIGINT, handle_sigint)
    
        # Start receiver thread
        t = threading.Thread(target=receiver, args=(sock, outputs))
        t.daemon = True
        t.start()
    
        try:
            while not stop_event.is_set():
                try:
                    line = input("")
                except (EOFError, KeyboardInterrupt):
                    break
    
                if line.strip().lower() == "exit":
                    break
    
                if line.strip():
                    if readline:
                        readline.add_history(line)
    
                try:
                    # Python 3 needs bytes
                    if not isinstance(line, bytes):
                        line_to_send = (line + "\r").encode("utf-8")
                    else:
                        line_to_send = line + "\r"
                    sock.sendall(line_to_send)
                except socket.error as e:
                    print("Write error: %s" % e, file=sys.stderr)
                    break
        finally:
            stop_event.set()
            try:
                sock.close()
            except socket.error:
                pass
            if log_file:
                log_file.close()
    
        print("Connection closed", file=sys.stderr)
    
    
    if __name__ == "__main__":
        main()

    and I am on windows

    @mafredri How do I dump my adapter? Is there any dumper script uvailable?

    Eventualy I would like to utilize /update endpoint to update my adapter to something more recent

  18. uvNikita commented on Aug 4, 2025

    @uvNikita

    I published a HACS component for the library I've been working on: https://github.com/pymitsubishi/homeassistant-mitsubishi. I've tested very basic controls and I don't think the vane mapping is working properly. I will try to do some proper testing a bit later. For now it seems to work for the basic use cases (changing setpoint, fan speed, mode, etc)

    I packaged pymitsubishi and home assistant component for NixOS (NixOS/nixpkgs#429868)

    Everything is working pretty good, thank you! I could finally disconnect my module from the internet.

    One thing that would be nice to improve is to send a state update request when changing settings via home assistant, because now it might take up to 30 seconds to reflect the changed state.

    But I can also create an issue in the repository with the improvement ideas.

  19. niobos commented on Aug 4, 2025

    @niobos

    Has anyone found a way to remotely reboot the unit? I had one device that didn't act on requests (but it did respond to the HTTP calls). I ended up power cycling the whole A/C system, but it would be easier to just reboot a single MAC-577IF unit.

  20. dragonbane0 commented on Aug 4, 2025

    @dragonbane0

    Has anyone found a way to remotely reboot the unit? I had one device that didn't act on requests (but it did respond to the HTTP calls). I ended up power cycling the whole A/C system, but it would be easier to just reboot a single MAC-577IF unit.

    Include a <RESET></RESET> block in /smart and it will reboot

  21. veso266 commented on Aug 9, 2025

    @veso266

    @niobos you think you could open issues on your https://github.com/niobos/pymitsubishi
    it seams to get updates faster and at least was deAIfied (a word I invented that means when a program was written by AI and then a human came, fixed it up and made it better)

  22. niobos commented on Aug 11, 2025

    @niobos

    @niobos you think you could open issues on your https://github.com/niobos/pymitsubishi it seams to get updates faster and at least was deAIfied (a word I invented that means when a program was written by AI and then a human came, fixed it up and made it better)

    I would prefer to get my changes merged into the original repo, but if that doesn't work, I might indeed create a "full" fork and open issues/PRs.

    I've just received notification that my first PRs were accepted, so I'll try to create another batch.

  23. codyc1515 commented on Aug 12, 2025

    @codyc1515

    Did anyone find a way to enable ECHONET for Lossnay units?

  24. MacrosorcH commented on Sep 13, 2025

    @MacrosorcH

    @ashleigh-hopkins What's the status of the HA integration https://github.com/pymitsubishi/homeassistant-mitsubishi? I noticed that there have been quite a few improvements since last release 0.1.8. Are you planning to release 0.2.0 anytime soon? Will you submit it to HACS (to avoid adding the custom repository)? Is everything working or is anything missing in particular at this point?

    Thanks a lot for all your efforts in putting this HA integration together!

    PS: the integration (at least version 0.1.8) appears to have no icon in HA, although I remember from your past changelogs that you had mentioned adding it. Is it just me?

  25. dragonbane0 commented on Sep 18, 2025

    @dragonbane0

    Just as a side note: I tested version 40 setup mode and even during the initial provision the only route that works is /network. So the server is completely locked down, glad we still have /smart :P

  26. fstarkenberg commented on Sep 18, 2025

    @fstarkenberg

    Just as a side note: I tested version 40 setup mode and even during the initial provision the only route that works is /network. So the server is completely locked down, glad we still have /smart :P

    Ha I tested the same thing yesterday and came to the same conclusion :)
    By the way where do you see which version number you are on without unitinfo?

  27. dragonbane0 commented on Sep 18, 2025

    @dragonbane0

    Just as a side note: I tested version 40 setup mode and even during the initial provision the only route that works is /network. So the server is completely locked down, glad we still have /smart :P

    Ha I tested the same thing yesterday and came to the same conclusion :) By the way where do you see which version number you are on without unitinfo?

    Polling /smart will contain an xml field with the version thankfully

  28. domy86 commented on Jan 23, 2026

    @domy86

    Does anyone know if there is a way to set these options locally?

    Image

    It's from MELCloud unit settings.

  29. dragonbane0 commented on Jan 23, 2026

    @dragonbane0

    Does anyone know if there is a way to set these options locally?

    Image It's from MELCloud unit settings.

    Cross link for visibility: pymitsubishi/homeassistant-mitsubishi#23 (comment)

  30. encryptix commented on Jun 27, 2026

    @encryptix

    PSA to recent and future buyers out there. Pretty much everyone with a MAC-577IF2-E adapter reported having app version 37. Well, the unit I bought just 2 months ago (June 25) comes pre-installed with app version 40. Which apparently is not offered to existing owners as a firmware upgrade. This version, at least when no longer in factory reset setup mode, will lock down the webserver entirely, so no more /analyze debug/telnet mode. Thankfully the "unregistered" AES key still works, as does /smart (and echonet), so I blocked Melcloud immediately in my router. Be aware that without that block Mitsubishi can update this key at any time and without webserver access you will have a hard time reading out the new key.

    The main goal of app version 40 was presumably to allow the AC remote to trigger the pairing mode of the wifi adapter which is a fairly new feature. But it comes with this rather undesirable side effect of being one step away from being locally inaccessible again. There is a chance the full webserver is accessible still while in setup mode after a factory reset, but I haven't tried that yet. So be careful out there if you just bought your A/C

    I tried the "There is a chance the full webserver is accessible still while in setup mode after a factory reset, but I haven't tried that yet." on my unit today and it no additional pages were accessible during the setup phase. I had been hoping to get to the config endpoint.

  31. codyc1515 commented on Jun 27, 2026

    @codyc1515

    Yep, I also cannot access the other end points now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions