示例#1
0
 def __init__(self, *args, **kwargs):
     TermineterModuleOptical.__init__(self, *args, **kwargs)
     self.version = 1
     self.author = ['Spencer McIntyre']
     self.description = 'Read Data From A C12.19 Table'
     self.detailed_description = 'This module allows individual tables to be read from the smart meter.'
     self.options.add_integer('TABLEID', 'table to read from', True)
示例#2
0
	def __init__(self, *args, **kwargs):
		TermineterModuleOptical.__init__(self, *args, **kwargs)
		self.version = 1
		self.author = ['Spencer McIntyre']
		self.description = 'Set The Meter\'s I.D.'
		self.detailed_description = 'This module will over write the Smart Meter\'s device ID with the new value specified in METERID.'
		self.options.add_string('METERID', 'value to set the meter id to', True)
示例#3
0
	def __init__(self, *args, **kwargs):
		TermineterModuleOptical.__init__(self, *args, **kwargs)
		self.version = 1
		self.author = ['Spencer McIntyre']
		self.description = 'Change the Meter\'s Operating Mode'
		self.detailed_description = 'Change the operating mode of the meter. Accepted values for MODE are METERING, TEST, METERSHOP, and FACTORY.'
		self.options.add_string('MODE', 'the mode to set the meter to', True)
示例#4
0
 def __init__(self, *args, **kwargs):
     TermineterModuleOptical.__init__(self, *args, **kwargs)
     self.version = 1
     self.author = ['Spencer McIntyre']
     self.description = 'Change the Meter\'s Operating Mode'
     self.detailed_description = 'Change the operating mode of the meter. Accepted values for MODE are METERING, TEST, METERSHOP, and FACTORY.'
     self.options.add_string('MODE', 'the mode to set the meter to', True)
示例#5
0
	def __init__(self, *args, **kwargs):
		TermineterModuleOptical.__init__(self, *args, **kwargs)
		self.version = 1
		self.author = ['Spencer McIntyre']
		self.description = 'Read Data From A C12.19 Table'
		self.detailed_description = 'This module allows individual tables to be read from the smart meter.'
		self.options.add_integer('TABLEID', 'table to read from', True)
示例#6
0
 def __init__(self, *args, **kwargs):
     TermineterModuleOptical.__init__(self, *args, **kwargs)
     self.version = 1
     self.author = ['Spencer McIntyre']
     self.description = 'Set The Meter\'s I.D.'
     self.detailed_description = 'This module will over write the Smart Meter\'s device ID with the new value specified in METERID.'
     self.options.add_string('METERID', 'value to set the meter id to',
                             True)
示例#7
0
	def __init__(self, *args, **kwargs):
		TermineterModuleOptical.__init__(self, *args, **kwargs)
		self.version = 1
		self.author = ['Spencer McIntyre']
		self.description = 'Initiate A Reset Procedure'
		self.detailed_description = 'Initiate a remote reset procedure. Despite the name, this module is used locally through the optical interface.'
		self.options.add_boolean('DEMAND', 'perform a demand reset', default=False)
		self.options.add_boolean('SELFREAD', 'perform a self read', default=False)
示例#8
0
	def __init__(self, *args, **kwargs):
		TermineterModuleOptical.__init__(self, *args, **kwargs)
		self.version = 2
		self.author = ['Spencer McIntyre']
		self.description = 'Dump Readable C12.19 Tables From The Device To A CSV File'
		self.detailed_description = 'This module will enumerate the readable tables on the smart meter and write them out to a CSV formated file for analysis. The format is table id, table name, table data length, table data.  The table data is represented in hex.'
		self.options.add_integer('LOWER', 'table id to start reading from', default=0)
		self.options.add_integer('UPPER', 'table id to stop reading from', default=256)
		self.options.add_string('FILE', 'file to write the csv data into', default='smart_meter_tables.csv')
示例#9
0
	def __init__(self, *args, **kwargs):
		TermineterModuleOptical.__init__(self, *args, **kwargs)
		self.version = 1
		self.author = ['Spencer McIntyre']
		self.description = 'Enumerate Valid User IDs From The Device'
		self.detailed_description = 'This module will enumerate existing user IDs from the device.'
		self.options.add_string('USERNAME', 'user name to attempt to log in as', default='0000')
		self.options.add_integer('LOWER', 'user id to start enumerating from', default=0)
		self.options.add_integer('UPPER', 'user id to stop enumerating from', default=50)
		self.advanced_options.add_float('DELAY', 'time in seconds to wait between attempts', default=0.20)
示例#10
0
	def __init__(self, *args, **kwargs):
		TermineterModuleOptical.__init__(self, *args, **kwargs)
		self.version = 2
		self.author = ['Spencer McIntyre']
		self.description = 'Initiate A Custom Procedure'
		self.detailed_description = 'This module executes a user defined procedure and returns the response. This is achieved by writing to the Procedure Initiate Table (#7) and then reading the result from the Procedure Response Table (#8).'
		self.options.add_integer('PROCNBR', 'procedure number to execute')
		self.options.add_string('PARAMS', 'parameters to pass to the executed procedure', default='')
		self.options.add_boolean('USEHEX', 'specifies that the \'PARAMS\' option is represented in hex', default=True)
		self.advanced_options.add_boolean('STDVSMFG', 'if true, specifies that this procedure is defined by the manufacturer', default=False)
示例#11
0
	def __init__(self, *args, **kwargs):
		TermineterModuleOptical.__init__(self, *args, **kwargs)
		self.version = 4
		self.author = ['Spencer McIntyre']
		self.description = 'Enumerate Readable C12.19 Tables From The Device'
		self.detailed_description = """\
		This module will enumerate the readable tables on the smart meter by attempting to transfer each one. Tables are
		grouped into decades.
		"""
		self.options.add_integer('LOWER', 'table id to start reading from', default=0)
		self.options.add_integer('UPPER', 'table id to stop reading from', default=256)
示例#12
0
 def __init__(self, *args, **kwargs):
     TermineterModuleOptical.__init__(self, *args, **kwargs)
     self.version = 1
     self.author = ['Spencer McIntyre']
     self.description = 'Initiate A Reset Procedure'
     self.detailed_description = 'Initiate a remote reset procedure. Despite the name, this module is used locally through the optical interface.'
     self.options.add_boolean('DEMAND',
                              'perform a demand reset',
                              default=False)
     self.options.add_boolean('SELFREAD',
                              'perform a self read',
                              default=False)
示例#13
0
	def __init__(self, *args, **kwargs):
		TermineterModuleOptical.__init__(self, *args, **kwargs)
		self.version = 4
		self.author = ['Spencer McIntyre']
		self.description = 'Brute Force Credentials'
		self.detailed_description = 'This module is used for brute forcing credentials on the smart meter.  Passwords are not limited to ASCII values and in order to test the entire character space the user will have to provide a dictionary of hex strings and set USEHEX to true.'
		self.options.add_boolean('USEHEX', 'values in word list are in hex', default=True)
		self.options.add_rfile('DICTIONARY', 'dictionary of passwords to try', required=False, default='$DATA_PATH smeter_passwords.txt')
		self.options.add_string('USERNAME', 'user name to attempt to log in as', default='0000')
		self.options.add_integer('USERID', 'user id to attempt to log in as', default=1)

		self.advanced_options.add_boolean('PUREBRUTE', 'perform a pure bruteforce', default=False)
		self.advanced_options.add_boolean('STOPONSUCCESS', 'stop after the first successful login', default=True)
		self.advanced_options.add_float('DELAY', 'time in seconds to wait between attempts', default=0.20)
示例#14
0
	def __init__(self, *args, **kwargs):
		TermineterModuleOptical.__init__(self, *args, **kwargs)
		self.version = 2
		self.author = ['Spencer McIntyre']
		self.description = 'Write Data To A C12.19 Table'
		self.detailed_description = '''\
		This will over write the data in a write able table on the smart meter. If USEHEX is set to true then the DATA
		option is expected to be represented as a string of hex characters.
		'''
		self.options.add_integer('TABLEID', 'table to read from', True)
		self.options.add_string('DATA', 'data to write to the table', True)
		self.options.add_boolean('USEHEX', 'specifies that the \'DATA\' option is represented in hex', default=True)
		self.options.add_integer('OFFSET', 'offset to start writing data at', required=False, default=0)
		self.advanced_options.add_boolean('VERIFY', 'verify that the data was written with a read request', default=True)
示例#15
0
    def __init__(self, *args, **kwargs):
        TermineterModuleOptical.__init__(self, *args, **kwargs)
        self.version = 4
        self.author = ['Spencer McIntyre']
        self.description = 'Enumerate Readable C12.19 Tables From The Device'
        self.detailed_description = """\
		This module will enumerate the readable tables on the smart meter by attempting to transfer each one. Tables are
		grouped into decades.
		"""
        self.options.add_integer('LOWER',
                                 'table id to start reading from',
                                 default=0)
        self.options.add_integer('UPPER',
                                 'table id to stop reading from',
                                 default=256)
示例#16
0
 def __init__(self, *args, **kwargs):
     TermineterModuleOptical.__init__(self, *args, **kwargs)
     self.version = 2
     self.author = ['Spencer McIntyre']
     self.description = 'Dump Readable C12.19 Tables From The Device To A CSV File'
     self.detailed_description = 'This module will enumerate the readable tables on the smart meter and write them out to a CSV formated file for analysis. The format is table id, table name, table data length, table data.  The table data is represented in hex.'
     self.options.add_integer('LOWER',
                              'table id to start reading from',
                              default=0)
     self.options.add_integer('UPPER',
                              'table id to stop reading from',
                              default=256)
     self.options.add_string('FILE',
                             'file to write the csv data into',
                             default='smart_meter_tables.csv')
示例#17
0
 def __init__(self, *args, **kwargs):
     TermineterModuleOptical.__init__(self, *args, **kwargs)
     self.version = 2
     self.author = ['Spencer McIntyre']
     self.description = 'Initiate A Custom Procedure'
     self.detailed_description = 'This module executes a user defined procedure and returns the response. This is achieved by writing to the Procedure Initiate Table (#7) and then reading the result from the Procedure Response Table (#8).'
     self.options.add_integer('PROCNBR', 'procedure number to execute')
     self.options.add_string('PARAMS',
                             'parameters to pass to the executed procedure',
                             default='')
     self.options.add_boolean(
         'USEHEX',
         'specifies that the \'PARAMS\' option is represented in hex',
         default=True)
     self.advanced_options.add_boolean(
         'STDVSMFG',
         'if true, specifies that this procedure is defined by the manufacturer',
         default=False)
示例#18
0
    def __init__(self, *args, **kwargs):
        TermineterModuleOptical.__init__(self, *args, **kwargs)
        self.version = 2
        self.author = ['Spencer McIntyre']
        self.description = 'Write Data To A C12.19 Table'
        self.detailed_description = '''\
		This will over write the data in a write able table on the smart meter. If USEHEX is set to true then the DATA
		option is expected to be represented as a string of hex characters.
		'''
        self.options.add_integer('TABLEID', 'table to read from', True)
        self.options.add_string('DATA', 'data to write to the table', True)
        self.options.add_boolean(
            'USEHEX',
            'specifies that the \'DATA\' option is represented in hex',
            default=True)
        self.options.add_integer('OFFSET',
                                 'offset to start writing data at',
                                 required=False,
                                 default=0)
        self.advanced_options.add_boolean(
            'VERIFY',
            'verify that the data was written with a read request',
            default=True)
示例#19
0
 def __init__(self, *args, **kwargs):
     TermineterModuleOptical.__init__(self, *args, **kwargs)
     self.version = 1
     self.author = ['Spencer McIntyre']
     self.description = 'Get Information About The Integrated Modem'
     self.detailed_description = 'This module reads various C1219 tables from decade 90 to gather information about the integrated modem. If successfully parsed, useful information will be displayed.'
示例#20
0
 def __init__(self, *args, **kwargs):
     TermineterModuleOptical.__init__(self, *args, **kwargs)
     self.version = 1
     self.author = ["Spencer McIntyre"]
     self.description = "Get Information About The Meter's Logs"
     self.detailed_description = """\
示例#21
0
	def __init__(self, *args, **kwargs):
		TermineterModuleOptical.__init__(self, *args, **kwargs)
		self.version = 1
		self.author = ['Spencer McIntyre']
		self.description = 'Get Basic Meter Information By Reading Tables'
		self.detailed_description = 'This module retreives some basic meter information and displays it in a human-readable way.'
示例#22
0
 def __init__(self, *args, **kwargs):
     TermineterModuleOptical.__init__(self, *args, **kwargs)
     self.version = 1
     self.author = ['Spencer McIntyre']
     self.description = 'Get Information From The Local Display Tables'
     self.detailed_description = '''\
	def __init__(self, *args, **kwargs):
		TermineterModuleOptical.__init__(self, *args, **kwargs)
		self.version = 1
		self.author = ['Spencer McIntyre']
		self.description = 'Get Information From The Local Display Tables'
		self.detailed_description = '''\
示例#24
0
 def __init__(self, *args, **kwargs):
     TermineterModuleOptical.__init__(self, *args, **kwargs)
     self.version = 1
     self.author = ['Spencer McIntyre']
     self.description = 'Get Information About The Meter\'s Logs'
     self.detailed_description = """\
示例#25
0
 def __init__(self, *args, **kwargs):
     TermineterModuleOptical.__init__(self, *args, **kwargs)
     self.version = 1
     self.author = ["Spencer McIntyre"]
     self.description = "Get Information About The Meter's Access Control"
     self.detailed_description = "This module reads various tables from 40 to gather information regarding access control. Password constraints, and access permissions to procedures and tables can be gathered with this module."
示例#26
0
 def __init__(self, *args, **kwargs):
     TermineterModuleOptical.__init__(self, *args, **kwargs)
     self.version = 1
     self.author = ['Spencer McIntyre']
     self.description = 'Get Information About The Meter\'s Access Control'
     self.detailed_description = 'This module reads various tables from 40 to gather information regarding access control. Password constraints, and access permissions to procedures and tables can be gathered with this module.'
示例#27
0
	def __init__(self, *args, **kwargs):
		TermineterModuleOptical.__init__(self, *args, **kwargs)
		self.version = 1
		self.author = ['Spencer McIntyre']
		self.description = 'Get Information About The Integrated Modem'
		self.detailed_description = 'This module reads various C1219 tables from decade 90 to gather information about the integrated modem. If successfully parsed, useful information will be displayed.'