Skip to content

Instantly share code, notes, and snippets.

@dideler
Created June 20, 2012 23:25
Show Gist options
  • Select an option

  • Save dideler/2962890 to your computer and use it in GitHub Desktop.

Select an option

Save dideler/2962890 to your computer and use it in GitHub Desktop.
A better e-Pass for your WIB@Home account.
#!/usr/bin/env python
from sys import argv
class Epass(object):
def __init__(self):
self.table = {'A1':'?', 'B1':'?', 'C1':'?', 'D1':'?', 'E1':'?', 'F1':'?', 'G1':'?', 'H1':'?', 'I1':'?', 'J1':'?',
'A2':'?', 'B2':'?', 'C2':'?', 'D2':'?', 'E2':'?', 'F2':'?', 'G2':'?', 'H2':'?', 'I2':'?', 'J2':'?',
'A3':'?', 'B3':'?', 'C3':'?', 'D3':'?', 'E3':'?', 'F3':'?', 'G3':'?', 'H3':'?', 'I3':'?', 'J3':'?',
'A4':'?', 'B4':'?', 'C4':'?', 'D4':'?', 'E4':'?', 'F4':'?', 'G4':'?', 'H4':'?', 'I4':'?', 'J4':'?',
'A5':'?', 'B5':'?', 'C5':'?', 'D5':'?', 'E5':'?', 'F5':'?', 'G5':'?', 'H5':'?', 'I5':'?', 'J5':'?'}
self.serialnum = 123456
def get_val(self, key):
return self.table[key]
try:
index = []
if len(argv) > 3:
index.append(argv[1])
index.append(argv[2])
index.append(argv[3])
else:
index.append(raw_input('index 1: '))
index.append(raw_input('index 2: '))
index.append(raw_input('index 3: '))
epass = Epass()
for i in range(3):
print epass.get_val(index[i].upper()),
except:
print ("Oops, couldn't finish!\n"
"Did you enter valid input? Use 3 values in the range [A-J][1-5].")
@dideler

dideler commented Jun 20, 2012

Copy link
Copy Markdown
Author

WIB@Home's new e-Pass security feature is really just security theatre and offers more annoyance than protection. This script makes it a bit more bearable.

Just replace all ?s in the table dictionary with the matrix values from your own e-Pass, and update the serialnum variable with your own serial number.

You can pass the index values on startup (e.g. python epass.py c1 c3 h2), or you'll be prompted to enter them otherwise. It's case insensitive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment