Detection of bitcoin miners

Neat idea! I’ve been playing with this recently so could maybe give you some guiding info. The monitor sends out a UDP broadcast on port 9999 every 2 seconds or so to which all the TP-Links devices respond with their system info and energy usage data.

The payloads are JSON and encrypted (kinda more like obfuscated) using the scheme described in the blogpost @kevin1 linked to. I found and tweaked some code from Github and was able to both query the plugs for their info and also see Sense’s request for info. Here’s the example I started from: https://github.com/iqmeta/tplink-smartplug/blob/master/com.iqmeta.tplink-smartplug/Utils.cs#L59

I haven’t tried responding to requests coming from Sense since I currently have a support ticket in to disable the TP-Link integration (mine is messed up and I’m testing a theory). Could be fun to experiment with though once my support call and tests are finished.

I can share some code and sample requests and responses with you if you wanted to try going this route, but I’m not sure where you would get the info for the energy used for the miners though to include in the response. Also, you might end up on the data science team’s naughty list :laughing:

1 Like