-
Notifications
You must be signed in to change notification settings - Fork 19
Creating Modules
Joshua Porter edited this page May 18, 2017
·
1 revision
All modules are located in /modules
and are automatically loaded when starting the server. Included in /modules
is a file called template.py
. This file contains the class that all modules must extend in order to display correctly and communicate with the webpage.
Use this template to build a custom module
from template import Template
class IPv6Module(Template):
def __init__(self, socketio, namespace):
super(IPv6Module, self).__init__(socketio, namespace)
self.modname = "CVE-2016-1879"
self.menu_text = "FreeBSD IPv6 DoS"
self.actions = [
{
"title": "FreeBSD IPv6 DoS", #name that's displayed on the buttons/menu
"action": "action", #method name to call
"target": True #set this to true to display it in the right-click menu
}
]
def action(self, target=None):
self.socket_log('Running DoS on '+target['ip'])