MCPcopy
hub / github.com/knownsec/pocsuite3 / write_conf

Method write_conf

pocsuite3/modules/seebug/__init__.py:52–59  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

50 logger.error('The Seebug api token is incorrect, Please enter the correct api token.')
51
52 def write_conf(self):
53 if not self.parser.has_section('Seebug'):
54 self.parser.add_section('Seebug')
55 try:
56 self.parser.set('Seebug', 'token', self.token)
57 self.parser.write(open(self.conf_path, 'w'))
58 except Exception as ex:
59 logger.error(str(ex))
60
61 def get_available_pocs(self):
62 return self.pocs

Callers 1

check_tokenMethod · 0.95

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected