The Assimilation Project  based on Assimilation version 1.1.7.1474836767
cma.drawwithdot Namespace Reference

Data Structures

class  DictObj
 
class  DotGraph
 
class  FancyDictObj
 

Functions

def validate_drawing_types (dtypes=None, skins=None)
 
def construct_dot_formats (drawingtype='network', skintype='default')
 
def drawing_type_help ()
 

Variables

string ip_format = r''
 
string drone_format = r''
 
string switch_format = r''
 
string MAC_format = r''
 
string processnode_format = r''
 
string iptcpportnode_format = r''
 
string monitoraction_format = r''
 
string default_relfmt = r''
 
string ipowner_format = r''
 
string nicowner_format = r''
 
string wiredto_format = r''
 
dictionary skin_formats
 
dictionary drawing_types
 
string desc = 'Create illustration from Assimilation graph database'
 
string usage = 'usage: drawwithdot [options] '
 
string delimiter = '('
 
 opts
 
 action
 
 dest
 
 type
 
 choices
 
 help
 
 drawingtype
 
 nargs
 
 cmdoptions
 
 args
 
 skin
 
 file
 
dictionary graphoptions = {}
 
 dot
 

Function Documentation

def cma.drawwithdot.construct_dot_formats (   drawingtype = 'network',
  skintype = 'default' 
)
Construct 'dot' formats from our skins and this drawing type

Definition at line 543 of file drawwithdot.py.

def cma.drawwithdot.drawing_type_help ( )

Definition at line 554 of file drawwithdot.py.

References cma.drawwithdot.validate_drawing_types().

Here is the call graph for this function:

def cma.drawwithdot.validate_drawing_types (   dtypes = None,
  skins = None 
)
We make sure that all the drawing types we have available
are well-defined in each of the skins...
This is really just for debugging, but it's quick enough to do
each time...

Definition at line 518 of file drawwithdot.py.

Referenced by cma.drawwithdot.drawing_type_help().

Here is the caller graph for this function:

Variable Documentation

cma.drawwithdot.action

Definition at line 582 of file drawwithdot.py.

Referenced by _authlistener_got_frameset(), and _fsprotocol_fsa().

cma.drawwithdot.args

Definition at line 603 of file drawwithdot.py.

cma.drawwithdot.choices

Definition at line 585 of file drawwithdot.py.

cma.drawwithdot.cmdoptions

Definition at line 603 of file drawwithdot.py.

string cma.drawwithdot.default_relfmt = r''

Definition at line 446 of file drawwithdot.py.

string cma.drawwithdot.delimiter = '('

Definition at line 572 of file drawwithdot.py.

string cma.drawwithdot.desc = 'Create illustration from Assimilation graph database'

Definition at line 569 of file drawwithdot.py.

cma.drawwithdot.dest

Definition at line 583 of file drawwithdot.py.

Referenced by _arpdiscovery_dispatch(), _switchdiscovery_dispatch(), and fsqueue_new().

cma.drawwithdot.dot
Initial value:
1 = DotGraph(construct_dot_formats(cmdoptions.drawingtype,
2  skintype=cmdoptions.skin),
3  options=graphoptions)
def construct_dot_formats(drawingtype='network', skintype='default')
Definition: drawwithdot.py:543

Definition at line 623 of file drawwithdot.py.

dictionary cma.drawwithdot.drawing_types
Initial value:
1 = {
2  'everything': {
3  'description': 'everything and the kitchen sink',
4  'nodes': skin_formats['default']['nodes'].keys(),
5  'relationships': skin_formats['default']['relationships'].keys()
6  },
7  'network': {
8  'description': 'network diagram',
9  'nodes': ['IPaddrNode', 'NICNode', 'Drone', 'SystemNode'],
10  'relationships': ['ipowner', 'nicowner', 'wiredto'],
11  },
12  'service': {
13  'description': 'attack surface (services) diagram',
14  'nodes': ['Drone', 'ProcessNode', 'IPtcpportNode'],
15  'relationships': [ 'ipowner', 'baseip', 'hosting', 'tcpservice',
16  'tcpclient'],
17  },
18  'monitoring': {
19  'description': 'monitoring diagram',
20  'nodes': ['Drone', 'MonitorAction', 'ProcessNode'],
21  'relationships': ['monitoring', 'hosting', 'tcpservice']
22  },
23  'monring': {
24  'description': 'neighbor monitoring ring diagram',
25  'nodes': ['Drone'],
26  'relationships': ['RingNext_The_One_Ring'],
27  }
28 }

Definition at line 489 of file drawwithdot.py.

cma.drawwithdot.drawingtype

Definition at line 588 of file drawwithdot.py.

string cma.drawwithdot.drone_format = r''

Definition at line 423 of file drawwithdot.py.

cma.drawwithdot.file

Definition at line 608 of file drawwithdot.py.

dictionary cma.drawwithdot.graphoptions = {}

Definition at line 619 of file drawwithdot.py.

cma.drawwithdot.help

Definition at line 586 of file drawwithdot.py.

string cma.drawwithdot.ip_format = r''

Definition at line 421 of file drawwithdot.py.

string cma.drawwithdot.ipowner_format = r''

Definition at line 447 of file drawwithdot.py.

string cma.drawwithdot.iptcpportnode_format = r''

Definition at line 441 of file drawwithdot.py.

string cma.drawwithdot.MAC_format = r''

Definition at line 436 of file drawwithdot.py.

string cma.drawwithdot.monitoraction_format = r''

Definition at line 443 of file drawwithdot.py.

cma.drawwithdot.nargs

Definition at line 599 of file drawwithdot.py.

string cma.drawwithdot.nicowner_format = r''

Definition at line 448 of file drawwithdot.py.

cma.drawwithdot.opts
Initial value:
1 = optparse.OptionParser(description=desc, usage=usage,
2  version=VERSION_STRING + ' (License: %s)' % SHORT_LICENSE_STRING)

Definition at line 579 of file drawwithdot.py.

string cma.drawwithdot.processnode_format = r''

Definition at line 439 of file drawwithdot.py.

cma.drawwithdot.skin

Definition at line 604 of file drawwithdot.py.

dictionary cma.drawwithdot.skin_formats
Initial value:
1 = {
2  'default': { # The default drawing 'skin'
3  'nodes': {
4  'IPaddrNode': ip_format,
5  'NICNode': MAC_format,
6  'Drone': drone_format,
7  'SystemNode': switch_format,
8  'ProcessNode': processnode_format,
9  'IPtcpportNode': iptcpportnode_format,
10  'MonitorAction': monitoraction_format,
11  },
12  'relationships': {
13  'baseip': default_relfmt,
14  'hosting': default_relfmt,
15  'ipowner': ipowner_format,
16  'monitoring': default_relfmt,
17  'nicowner': nicowner_format,
18  'tcpservice': default_relfmt,
19  'tcpclient': default_relfmt,
20  'wiredto': wiredto_format,
21  'RingNext_The_One_Ring': default_relfmt,
22  }
23  }
24 }

Definition at line 457 of file drawwithdot.py.

string cma.drawwithdot.switch_format = r''

Definition at line 429 of file drawwithdot.py.

string cma.drawwithdot.usage = 'usage: drawwithdot [options] '

Definition at line 571 of file drawwithdot.py.

string cma.drawwithdot.wiredto_format = r''

Definition at line 449 of file drawwithdot.py.