You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am currently to to implement this with php instead but I have been unable to do it. I have a feeling the encrypted message sent is wrong. Below is my encryption method.
I have also tried sniffing the TCP packets from my router however I am unable to get any packets sent during the "on/off" function of the switch when using the mobile application. I am only able to capture periodic packets send, probably the packets that are sent to the server which you mentioned.
Any help would be appreciated.
Thanks.
The text was updated successfully, but these errors were encountered:
After troubleshooting abit more, I managed to get everything working correctly, both tcpdump and the script for the switch. Thanks!
Based on your reply on the previous issues, I am guessing, after sniffing the packets, you decompiled the "HF smart home" apk and got the encryption key and IV from there?
@suborb
Hi, I am currently to to implement this with php instead but I have been unable to do it. I have a feeling the encrypted message sent is wrong. Below is my encryption method.
function encrypt($msg){ define('AES_128_CBC', 'aes-128-cbc'); $encryption_key = "9521314528002574"; $iv = "4528453102574529"; $encrypted = openssl_encrypt($msg, AES_128_CBC, $encryption_key, 0, $iv); //$encrypted = $encrypted . ':' . base64_encode($iv); return $encrypted; }
I have also tried sniffing the TCP packets from my router however I am unable to get any packets sent during the "on/off" function of the switch when using the mobile application. I am only able to capture periodic packets send, probably the packets that are sent to the server which you mentioned.
Any help would be appreciated.
Thanks.
The text was updated successfully, but these errors were encountered: