def VirTot(self,e): self.virresult=wx.BoxSizer(wx.VERTICAL) self.virbox=wx.TextCtrl(self,style=wx.TE_MULTILINE|wx.TE_READONLY) self.virresult.Add(self.virbox,1,wx.EXPAND) self.SetSizer(self.virresult) self.Layout() self.virbox.SetValue(avcheck.check(analysis.hashes(self.contents)[0],self.filename))
def VirTot(self, e): self.virresult = wx.BoxSizer(wx.VERTICAL) self.virbox = wx.TextCtrl(self, style=wx.TE_MULTILINE | wx.TE_READONLY) self.virresult.Add(self.virbox, 1, wx.EXPAND) self.SetSizer(self.virresult) self.Layout() self.virbox.SetValue( avcheck.check(analysis.hashes(self.contents)[0], self.filename))
def RunAn(self,e): self.box=wx.BoxSizer(wx.VERTICAL) self.control=[] self.panels=[] for i in range(3): self.panels.append(wx.Panel(self)) self.box.Add(self.panels[i],.5,wx.EXPAND) self.control.append(wx.TextCtrl(self,style=wx.TE_MULTILINE|wx.TE_READONLY)) self.box.Add(self.control[i],1,wx.EXPAND) self.SetAutoLayout(True) wx.StaticText(self.panels[0],-1,"Filetype",style=wx.ALIGN_CENTER_HORIZONTAL) self.control[0].SetValue(analysis.filetype(self.contents)) wx.StaticText(self.panels[1],-1,"Hashes") self.control[1].SetValue("MD5:"+analysis.hashes(self.contents)[0]+"\nSHA1:"+analysis.hashes(self.contents)[1]) wx.StaticText(self.panels[2],-1,"PE Sections") self.control[2].SetValue("\n".join((analysis.peinfo(self.contents)))) self.SetSizer(self.box) self.Layout()
def RunAn(self, e): self.box = wx.BoxSizer(wx.VERTICAL) self.control = [] self.panels = [] for i in range(3): self.panels.append(wx.Panel(self)) self.box.Add(self.panels[i], .5, wx.EXPAND) self.control.append( wx.TextCtrl(self, style=wx.TE_MULTILINE | wx.TE_READONLY)) self.box.Add(self.control[i], 1, wx.EXPAND) self.SetAutoLayout(True) wx.StaticText(self.panels[0], -1, "Filetype", style=wx.ALIGN_CENTER_HORIZONTAL) self.control[0].SetValue(analysis.filetype(self.contents)) wx.StaticText(self.panels[1], -1, "Hashes") self.control[1].SetValue("MD5:" + analysis.hashes(self.contents)[0] + "\nSHA1:" + analysis.hashes(self.contents)[1]) wx.StaticText(self.panels[2], -1, "PE Sections") self.control[2].SetValue("\n".join((analysis.peinfo(self.contents)))) self.SetSizer(self.box) self.Layout()