Skip to content

Instantly share code, notes, and snippets.

@Professor-plum
Professor-plum / 14.png
Last active February 11, 2023 04:58
Bsides2023 Clue
14.png
def installer_pass(serial_num):
a = hashlib.md5('[e]installer@enphaseenergy.com#' + serial_num + ' EnPhAsE eNeRgY ').hexdigest()
c0 = a.count('0')
c1 = a.count('1')
p1 = a[::-1][:8]
e=''
for c in p1:
if (c0<10) and ((1<<c0) & 0x248):
c0-=1
if (c1 == 15) or (c1==9):
// check if its not end of data and is the start get the file name and if its data return isData true
else if (mainData.substring(0, 6).toUpperCase() === ('COCTab'.toUpperCase()) && (mainData.substring(6, 10).toUpperCase() !== ('COCT'.toUpperCase()))) {
receivedAck = 3;
var meaningful = mainData.substring(6);
var result = new Array();
if(meaningful.length % 2 == 0) {
var j = meaningful.length/2;
for (var i = 0; i < (meaningful.length/2); i++,j++) {
var key = meaningful[i] +""+ meaningful[j];
result[i] = parseInt(key, 16);
import ssl
import urllib.request
import base64
ctx = ssl.create_default_context()
ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_NONE
def lambda_handler(event, context):
url = 'https://x.x.x.x/aws/gateway/'

Keybase proof

I hereby claim:

  • I am professor-plum on github.
  • I am professor_plum (https://keybase.io/professor_plum) on keybase.
  • I have a public key ASCuT3OGk66J2zjmWUD1epBnUYR4m64xG3U_oMNOI1Qb4Qo

To claim this, I am signing this object: