y (id_p)
);
/* ======================================== ===== */
/* Table: Prewikka_Session */
/* ======================================== ===== */table Prewikka_Session
(_ id bigint not null, varchar (32) not null, datetime not null, key (session_id)
);
/* ======================================== ===== */
/* Table: Prewikka_User */
/* ======================================== ===== */table Prewikka_User
(varchar (32) not null, varchar (32) not null, varchar (32) not null, varchar (64) not null, key (login)
);
/* ======================================== ===== */
/* Table: Prewikka_Version */
/* ======================================== ===== */table Prewikka_Version
(varchar (32) not null
);
table Prewikka_Filter add constraint FK_Relationship_1 foreign key (login) Prewikka_User (login) on delete restrict on update restrict;
table Prewikka_Filter_Criterion add constraint FK_Relationship_5 foreign key (id_f) Prewikka_Filter (id_f) on delete restrict on update restrict;
table Prewikka_Permission add constraint FK_Relationship_3 foreign key (login) Prewikka_User (login) on delete restrict on update restrict; table Prewikka_Session add constraint FK_Relationship_2 foreign key (login)
references Prewikka_User (login) on delete restrict on update restrict;
ДОДАТОК В
Вкладка підказка
import re
import timestructsocketurllibprewikka import view, User, utils, resolvebuildProcess (self, process) :. beginTable (). newTableEntry (_ ( Process ), process [ name ]). newTableEntry ( _ ( Process Path ), process [ path ]). newTableEntry (_ ( Process PID ), process [ pid ]). endTable () buildNode (self, node): not node:.newTableEntry (_ ( Node location ), node [ location ]) _ list=None_name=Noneaddr in node [ address ]:=addr [ address ] not address: _name=resolve. AddressResolve (address) addr_list: _list += lt; br/ gt; : _ list= addr [ category ] in ( ipv4-addr raquo ;, ipv6-addr raquo ;, laquo ; ipv4-net raquo ;, ipv6-net ) and self.env.enable_details: _list +=self.getUrlLink (address, % s? host =% s % (self.env.host_details_url, address)):_list +=addressnode [ name ] :. newTableEntry (_ ( Node name ), node [ name ]) node_name.resolveSucceed () :. newTableEntry (_ ( Node name (resolved) ), node_name) .newTableEntry (_ ( Node address ), addr_list) buildAnalyzer (self, analyzer):.beginTable(cl=laquo;message_summary_no_borderraquo;).beginTable().newTableEntry(_(laquo;Modelraquo;), analyzer [ model ], cl= section_alert_ entry_value_emphasis ). newTableEntry (_ ( Name ), analyzer [ name ], cl= section_alert_ entry_value_emphasis ). newTableEntry (_ ( Analyzerid ), analyzer [ analyzerid ]). newTableEntry (_ ( Version ), analyzer [ version ]). newTableEntry (_ ( Class ), analyzer [ class ]).newTableEntry (_ ( Manufacturer ), self.getUrlLink (analyzer [ manufacturer ])). endTable (). newTableRow (). beginTable (). buildNode (analyzer [ node ]) analyzer [ ostype ] or analyzer [ osversion ] :. newTableEntry (_ ( Operating System ), % s % s % (analyzer [ ostype ] or raquo ;, analyzer [ osversion ] or laquo;raquo;)).endTable().newTableRow()analyzer[laquo;processraquo;]:.buildProcess(analyzer[laquo;processraquo;]).newTableRow().endTable()buildAnalyzerList(self, alert):=[] analyzer in alert [ analyzer ] :. insert (0, analyzer) .pop (0) .beginSection (_ ( Analyzer Path (% d not shown) )% len (l ), display= none ). beginTable (cl= message_summary_no_border )=1=len (l) - 1analyzer in l: .newTableCol (i - 1, _ ( Analyzer #% d )% index , None, header=True) .buildAnalyzer (analyzer) .newTableRow () +=1=1.endTable (). endSection ()
... buildClassification (self, alert): not alert [ classification.text ] :. newTableEntry (_ ( Text ), alert [ classification.text ],= laquo ; section_alert_entry_value_emphasis impact_severity_% s % alert [ assessment.impact.severity ]). newTableEntry (_ ( Ident ), alert [ classification.ident ])
... def buildSource (self, alert):=0source in alert [ source ] :. beginSection (_ ( Source (% d) )% i) .buildDirection (source ) .endSection () +=1buildTarget (self, alert):=0target in alert [ target ] :. beginSection (_ ( Target (% d) )% i) .buildDirection (target) f in target [ file ] :. buildFile (f) .endSection () +=1
Вкладка статістікіsystimecopyurllibdatetimeprewikka import User, view, Chart, utils, resolveDistribu...