Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get a Token and Timestamp out of Wireshark #2

Closed
cajoma opened this issue Dec 28, 2020 · 2 comments
Closed

How to get a Token and Timestamp out of Wireshark #2

cajoma opened this issue Dec 28, 2020 · 2 comments
Assignees
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed question Further information is requested

Comments

@cajoma
Copy link

cajoma commented Dec 28, 2020

No description provided.

@cajoma cajoma changed the title get eToken and timestamp How to get a Token and Timestamp out of Wireshark Dec 28, 2020
@cajoma
Copy link
Author

cajoma commented Dec 28, 2020

Can someone provide a description how to: "It's requiring a Merross token and a corresponding timestamp to be provided by you. You should get this data via network sniffer or traffic interception between your Meross app and your Smart Plug."

Thank you

@dehsgr dehsgr self-assigned this Dec 28, 2020
@dehsgr dehsgr added documentation Improvements or additions to documentation help wanted Extra attention is needed question Further information is requested labels Dec 28, 2020
@dehsgr
Copy link
Owner

dehsgr commented Dec 28, 2020

  1. You might download Fiddler.
  2. Configure it to capture HTTPS traffic.
  3. Transfer Fiddlers HTTPS certificate to your phone and trust it there.
  4. Configure your phone to use Fiddler as proxy according to your configuration.
  5. Capture traffic while changing your smart plug state with Meross app.

Now you should see a request in Fiddle like "http://yourip/config" with type "POST".

  1. Select that request and switch over to "request" body tab.
  2. Change format for the request body to "JSON".

This should look like:

{
  "payload": {},
  "header": {
    "messageId": "1234567890abcdef1234567890abcdef",
    "method": "GET",
    "from": "http://yourip/config",
    "sign": "567890abcdef1234567890abcdef12345678",
    "namespace": "Appliance.System.Ability",
    "triggerSrc": "iOSLocal",
    "timestamp": 1609232320,
    "payloadVersion": 1
  }
}

The token is the value from „sign“. The corresponding timestamp is the value from „timestamp“. The message id is the value from „messageid“.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants