ParadoxAlarmInterface / pai

Paradox Magellan, Spectra and EVO, with MQTT, Signal, Pushbullet, Pushover and others
https://gitter.im/paradox-alarm-interface
Eclipse Public License 2.0
351 stars 94 forks source link

Unpacking login response apparently not working for me. #24

Closed DblD closed 5 years ago

DblD commented 5 years ago

2018-12-10 03:52:34,051 - INFO - PAI.paradox.connections.ip_connection - response : Container: login_status = (enum) (unknown) 31 key = b'\xc8x|SYm\x91\r\xc2H+\xf7\xbc\xd2\x14' (total 16) hardware_version = 30545 ip_firmware_major = 205 ip_firmware_minor = 99 ip_module_serial = b'0\x15i\xda' (total 4)

2018-12-10 03:52:33,502 - INFO - PAI.paradox.connections.ip_connection - Connected to Site: OmeDoxSec 2018-12-10 03:52:33,502 - DEBUG - PAI.paradox.connections.ip_connection - Connecting to IP Panel 2018-12-10 03:52:33,503 - DEBUG - PAI.paradox.connections.ip_connection - IP Connection established 2018-12-10 03:52:33,504 - DEBUG - PAI.paradox.connections.ip_connection - PC -> IP b'aa04000309f0000001eeeeeeeeeeeeeef21915305f644ae6b3b649f755930ba7' 2018-12-10 03:52:34,042 - DEBUG - PAI.paradox.connections.ip_connection - IP -> PC b'aa1b000129f0000000eeeeeeeeee8415400351487e01fc6914d317e1291c7df24ce980b5667632b120fdadc9cd43e030' 2018-12-10 03:52:34,044 - INFO - PAI.paradox.connections.ip_connection - #DM message dump : Container: header = Container: sof = 170 length = 27 unknown0 = 1 flags = 41 command = 240 sub_command = 0 unknown1 = 0 encrypt = 0 payload = b'@\x03QH~\x01\xfci\x14\xd3\x17\xe1)\x1c}\xf2'... (truncated, total 32) 2018-12-10 03:52:34,050 - INFO - PAI.paradox.connections.ip_connection - decrypt : 2018-12-10 03:52:34,050 - INFO - PAI.paradox.connections.ip_connection - #DM message dump : b'\x1f\xc8x|SYm\x91\r\xc2H+\xf7\xbc\xd2\x14wQ\xcdc0\x15i\xda\xa1\x12' 2018-12-10 03:52:34,051 - INFO - PAI.paradox.connections.ip_connection - response : Container: login_status = (enum) (unknown) 31 key = b'\xc8x|SYm\x91\r\xc2H+\xf7\xbc\xd2\x14' (total 16) hardware_version = 30545 ip_firmware_major = 205 ip_firmware_minor = 99 ip_module_serial = b'0\x15i\xda' (total 4) 2018-12-10 03:52:34,051 - ERROR - PAI.paradox.connections.ip_connection - Error connecting to IP Module: 31 2018-12-10 03:52:34,051 - ERROR - PAI.paradox.paradox - Failed to connect to interface 2018-12-10 03:52:34,051 - ERROR - PAI - Unable to connect to alarm 2018-12-10 03:52:35,052 - INFO - PAI - Starting... 20

yozik04 commented 5 years ago

What panel is it?

DblD commented 5 years ago

MG5050, with IP150.

jpbarraca commented 5 years ago

Can you send me the full message log? You can enable it by by setting the log level to DEBUG and enabling packet dumps and message dumps.

DblD commented 5 years ago

Yeah.

One thing I omitted on that log was site info. Rest is pretty much as it’s in the issue, with addition of printing out messages and payloads as they returned.

Not sure what is considered sensitive information that should be sanitised?

Sent from secret location by my iPhone

On 11 Dec 2018, at 12:20, João Paulo Barraca notifications@github.com wrote:

Can you send me the full message log? You can enable it by by setting the log level to DEBUG and enabling packet dumps and message dumps.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

jpbarraca commented 5 years ago

Send directly to my email. You may wish to temporarily change your password, but we need it to verify that the messages are being deciphered correctly.

DblD commented 5 years ago

Send directly to my email. You may wish to temporarily change your password, but we need it to verify that the messages are being deciphered correctly.

let me know if you need more info.

REDACTED

DblD commented 5 years ago

not sure if this will be usefull, pcap REDACTED

jpbarraca commented 5 years ago

Thanks. I will take a look at the logs

jpbarraca commented 5 years ago

Is it working now?

DblD commented 5 years ago

Is it working now?

@jpbarraca Sadly I'm still getting issues with logging in there. Looks (en)decryption sill not functioning for me

jpbarraca commented 5 years ago

Please send a log with full debug to my email or through keybase. Use the latest dev branch

DblD commented 5 years ago

bb15b26 -- [bb15b26] #42 EVOHD: PGM label addresses fix. (3 hours ago)

paradox.log.txt gpg

jpbarraca commented 5 years ago

According to the log, the password of the IP150 module was wrong.

yozik04 commented 5 years ago

I guess this one was resolved.