def __init__(self, parent, dirPath): self._init_ctrls(parent) self.SetIcon(images.getMAKE2Icon()) #self.InitThrober() self.Bind(EVT_UPDATE_LABEL, self.OnUpdate) #self.dirName = dirName #print rootDrive #print imageFileName self.dirPath = dirPath #self.SetupNSRLDatabase() #self.db = SqliteDatabase(Globals.MACFileName) #self.db.OpenConnection() self.StartTime = time.time() self.scanStarted = False #self.ReadFilePropertiesToGet() self.jobID = 0 #self.StartScan() self.Bind(wx.EVT_TIMER, self.TimerHandler) self.timer = wx.Timer(self) self.timer.Start(100) #q = Queue.Queue() self.scanThread = NSRLScanThread(self, self.StartTime, self.dirPath) #self.ScanFinished = False self.scanThread.Start() """
def __init__(self, parent, rootDrive, listImageNames, SourceType=Constants.LogicalDrive, verifyImages=True): self._init_ctrls(parent) self.SetIcon(images.getMAKE2Icon()) #self.InitThrober() self.Bind(EVT_UPDATE_LABEL, self.OnUpdate) #self.dirName = dirName #print rootDrive #print listImageNames self.rootDrive = rootDrive self.SourceType = SourceType self.listImageNames = listImageNames self.lblScanStatus.SetLabel("Creating Image...") #self.db = SqliteDatabase(Globals.MACFileName) #self.db.OpenConnection() self.StartTime = time.time() self.scanStarted = False #self.ReadFilePropertiesToGet() self.jobID = 0 #self.StartScan() self.Bind(wx.EVT_TIMER, self.TimerHandler) self.timer = wx.Timer(self) self.timer.Start(100) self.scanThread = MACScanThread(self, self.StartTime, self.rootDrive, self.listImageNames, self.SourceType, verifyImages) #self.ScanFinished = False self.scanThread.Start()
def __init__(self, parent): self._init_ctrls(parent) self.SetIcon(images.getMAKE2Icon()) self.FileName = "" self.Keywords = set([]) self.KeywordsValue = "" self.DirPath = "" self.CategoryList = "" #self.KeywordsFromDB = True self.LoadSettingsTable() #DBFunctions.CreateKeywordsFrequencyTable(Globals.KeywordsFileName, False) """ if len(Globals.Keywords) == 0: self.ReadKeyWordsFromDatabase() else: self.MakeKeywordsList() if self.KeywordsFromDB: self.lblKeywords.SetLabel("Keywords found in Project database:") else: self.lblKeywords.SetLabel("No keyword is found:") self.txtKeywords.SetValue(self.KeywordsValue) """ self.InitCategoryCheckView()
def __init__(self, parent, imagePath, listDriveNames, verifyImages=False): self._init_ctrls(parent) self.SetIcon(images.getMAKE2Icon()) self.Bind(EVT_UPDATE_LABEL, self.OnUpdate) self.imagePath = imagePath self.listDriveNames = listDriveNames self.lblScanStatus.SetLabel("Writing image to disk...") self.StartTime = time.time() self.scanStarted = False #self.ReadFilePropertiesToGet() self.jobID = 0 #self.StartScan() self.Bind(wx.EVT_TIMER, self.TimerHandler) self.timer = wx.Timer(self) self.timer.Start(100) #self.ddToDiskThread = DDToDiskThread(self, self.StartTime, self.imagePath, self.listDriveNames) #self.ScanFinished = False #self.ddToDiskThread.Start() global writeThread global readThread #sched = Scheduler() writeThread = WriteThread(self, self.StartTime, listDriveNames, verifyImages) self.ScanFinished = False writeThread.start() readThread = ReadThread(self, self.StartTime, imagePath, listDriveNames, verifyImages) readThread.start()
def __init__(self, parent, AddressBookPath, EmailsPath, AttachmentsPath, CheckedMimeTypes, IndexMessages, IndexAttachments): self._init_ctrls(parent) self.SetIcon(images.getMAKE2Icon()) #self.InitThrober() self.InitAnimatedImage() self.Bind(EVT_UPDATE_LABEL, self.OnUpdate) self.lblScanStatus.SetLabel( "Preprocessing Emails and Attachments in Progress...") #self.CheckedMimeTypes = CheckedMimeTypes self.StartTime = 0 self.scanStarted = False #self.ReadFilePropertiesToGet() self.jobID = 0 self.StartTimer() #return self.scanThread = FileScanThread(self, self.StartTime, AddressBookPath, EmailsPath, AttachmentsPath, CheckedMimeTypes, IndexMessages, IndexAttachments) self.ScanFinished = False self.scanThread.Start()
def __init__(self, parent): self._init_ctrls(parent) self.SetIcon(images.getMAKE2Icon()) self.InitCategoryCheckView() if len(Globals.EmailsStopwords) == 0: try: self.ReadStopwordsFromDB() except: pass
def __init__(self, parent, evidenceID): self._init_ctrls(parent) self.SetIcon(images.getMAKE2Icon()) self.evidenceID = evidenceID self.lblEvidenceID.SetLabel(str(evidenceID)) self.lblEvidenceName.SetLabel( Globals.EvidencesDict[evidenceID]['DisplayName']) self.txtRootPath.SetValue( Globals.EvidencesDict[evidenceID]['Location'])
def __init__(self, parent): __InitWx__() self._init_ctrls(parent) self.SetIcon(images.getMAKE2Icon()) self.timerMain.Start(1000) self.AddToolbarTools() self.CreateTopButtonPanel() self.SetStatuBarTime() #self.fldrImg = wx.ArtProvider.GetBitmap(wx.ART_FOLDER, wx.ART_OTHER, (16,16)) #self.InitDynamicControls(self.panHome) self.Maximize(True) self.treeDirView = True self.menuViews.Check(wxID_FRMMAINFRAMEMENUVIEWSVIEWDETAILS, True)
def __init__(self, parent, Case): self._init_ctrls(parent) self.SetIcon(images.getMAKE2Icon()) self.Case = Case self.addingNewCase = True if self.Case: self.addingNewCase = False self.LoadCurrentCase() self.lblCaseName.SetLabel("Edit Case - " + self.Case.DisplayName + " ") else: self.Case = Globals.CurrentCase = Classes.CFICase() self.lblCaseName.SetLabel("New Case ")
def __init__(self, parent): self._init_ctrls(parent) self.SetIcon(images.getMAKE2Icon()) self.imageFileName = "" self.choiceSource = None self.IDLogicalDriveSource = wx.NewId() self.choiceSource = wx.Choice(choices=[], id=self.IDLogicalDriveSource, name='choiceSource', parent=self.panEvidence, pos=wx.Point(24, 112), size=wx.Size(192, 21), style=0) #self.choiceSource.SetSelection(0) self.choiceSource.Show(False) self.listDriveNames = []
def __init__(self, parent): self._init_ctrls(parent) self.SetIcon(images.getMAKE2Icon()) self.DirList = "" self.CategoryList = "" self.LoadSettingsTable() #self.InitDirCheckView() self.InitCategoryCheckView() self.OneFolderList = [] self.OneFolderSelected = False self.OneFolderPath = "" if len(Globals.Stopwords) == 0: try: self.ReadStopwordsFromDB() except: pass
def __init__(self, parent): self._init_ctrls(parent) self.SetIcon(images.getMAKE2Icon()) self.InitThrober() self.Bind(EVT_UPDATE_LABEL, self.OnUpdate) self.FilePropertiesToRead = "" self.lblScanStatus.SetLabel("Keywords Search in Progress...") #self.db = SqliteDatabase(Globals.MACFileName) #self.db.OpenConnection() self.StartTime = 0 self.scanStarted = False #self.ReadFilePropertiesToGet() self.jobID = 0 self.StartScan() self.scanThread = KeywordsScanThread(self, self.StartTime) #self.ScanFinished = False self.scanThread.Start()
def __init__(self, parent, sender, recipient, date, subject): self._init_ctrls(parent) self.SetIcon(images.getMAKE2Icon()) self.CreateHTMLCtrl() self.sender = sender self.recipient = recipient self.date = date self.subject = subject self.message = "" self.attachments = "" self.GetMessage() self.txtFrom.SetValue(self.sender) self.txtTo.SetValue(self.recipient) self.txtDate.SetValue(self.date) self.txtSubject.SetValue(PlatformMethods.Decode(self.subject)) self.txtAttachments.SetValue(PlatformMethods.Decode(self.attachments)) self.txtMessage.SetValue(self.message) self.htmlMessage.SetPage(self.message)
def __init__(self, parent): self._init_ctrls(parent) self.SetIcon(images.getMAKE2Icon()) #self.FileInfo = {} #self.lblDirectoryName.SetLabel(PlatformMethods.Decode(self.dirPath)) self.CreateSettingsTable() #self.CreateListControl() self.AddSearchControl() self.AddResultsListControl() self.Stopwords = [] if len(Globals.Keywords) == 0: #self.ReadKeyWordsFromDatabase() try: self.ReadStopwordsFromDB() except: pass self.search = Search(Globals.TextCatFileName, self.Stopwords)
def __init__(self, parent): self._init_ctrls(parent) self.SetIcon(images.getMAKE2Icon()) self.FileName = "" self.Keywords = [] self.KeywordsValue = "" self.KeywordsFromDB = True if len(Globals.Keywords) == 0: self.ReadKeyWordsFromDatabase() else: self.MakeKeywordsList() if self.KeywordsFromDB: self.lblKeywords.SetLabel("Keywords found in Project database:") else: self.lblKeywords.SetLabel("No keyword is found:") self.txtKeywords.SetValue(self.KeywordsValue)
def __init__(self, prnt, fileInfo=None): wx.MDIChildFrame.__init__(self, id=-1, name='MDIChildImages', parent=prnt, pos=wx.DefaultPosition, size=wx.Size(1050, 687), style=wx.DEFAULT_FRAME_STYLE, title='Image Analyzer') self.Center(wx.BOTH) # tell FrameManager to manage this frame self.auiManager = wx.aui.AuiManager() self.auiManager.SetManagedWindow(self) self._perspectives = [] self.n = 0 self.x = 0 self.SetIcon(images.getMAKE2Icon()) # min size for the frame itself isn't completely done. # see the end up FrameManager::Update() for the test # code. For now, just hard code a frame minimum size self.SetMinSize(wx.Size(400, 300)) self.Bind(wx.EVT_CLOSE, self.OnClose) self.InitMenuBar() self.InitToolBar() self.InitPanes() # "commit" all changes made to FrameManager #self.auiManager.GetArtProvider().SetMetric(wx.aui.AUI_DOCKART_CAPTION_FONT, 10) self.auiManager.GetArtProvider().SetMetric(wx.aui.AUI_DOCKART_CAPTION_SIZE, 20) self.auiManager.GetArtProvider().SetColor(wx.aui.AUI_DOCKART_BACKGROUND_COLOUR, wx.Colour(125, 152, 221)) self.auiManager.GetArtProvider().SetColor(wx.aui.AUI_DOCKART_SASH_COLOUR, wx.Colour(125, 152, 221)) self.auiManager.GetArtProvider().SetColor(wx.aui.AUI_DOCKART_INACTIVE_CAPTION_COLOUR, wx.Colour(183, 183, 255)) self.auiManager.GetArtProvider().SetColor(wx.aui.AUI_DOCKART_INACTIVE_CAPTION_GRADIENT_COLOUR, wx.Colour(125, 152, 221)) self.auiManager.Update() self.fileInfo = fileInfo if not self.fileInfo is None: self.LoadFileProperties() self. AttachSearchEvents() self.HexViewCenterPane = True
def __init__(self, parent, rootPath): self._init_ctrls(parent) self.SetIcon(images.getMAKE2Icon()) self.InitThrober() self.Bind(EVT_UPDATE_LABEL, self.OnUpdate) self.lblScanStatus.SetLabel("Indexing in Progress...") #db = SqliteDatabase(Globals.MACFileName) #db.OpenConnection() #self.rootPath = rootPath self.StartTime = 0 self.scanStarted = False #self.ReadFilePropertiesToGet() self.jobID = 0 self.StartTimer() #return self.ScanFinished = False self.scanThread = FileScanThread(self, self.StartTime, rootPath) self.scanThread.Start()
def __init__(self, parent, dirPath): self._init_ctrls(parent) self.SetIcon(images.getMAKE2Icon()) self.InitThrober() self.Bind(EVT_UPDATE_LABEL, self.OnUpdate) self.rootDir = dirPath self.FilePropertiesToRead = "" self.lblScanStatus.SetLabel("Resumed Scan in Progress...") self.lblRootDir.SetLabel(PlatformMethods.Encode(dirPath)) self.StartTime = 0 self.scanStarted = False #self.ReadFilePropertiesToGet() self.jobID = 0 #self.StartScan() self.StartTimer() self.scanThread = MACScanThread(self, self.StartTime, self.rootDir) #self.ScanFinished = False self.scanThread.Start()
def __init__(self, parent, IsEmail=False, Stopwords=[]): self._init_ctrls(parent) self.SetIcon(images.getMAKE2Icon()) self.IsEmail = IsEmail self.FileName = "" self.Stopwords = Stopwords self.StopwordsValue = "" self.StopwordsFromDB = False self.lblStopwords.SetLabel("No Stopword found!") if len(self.Stopwords) > 0: self.StopwordsFromDB = True #for word in Globals.Stopwords: # self.Stopwords.add(word) self.lblStopwords.SetLabel("Stopwords found in Database:") """ if not self.IsEmail: if len(Globals.Stopwords) > 0: self.StopwordsFromDB = True for word in Globals.Stopwords: self.Stopwords.add(word) self.lblStopwords.SetLabel("Stopwords found in Project Settings:") else: if len(Globals.EmailsStopwords) > 0: self.StopwordsFromDB = True for word in Globals.EmailsStopwords: self.Stopwords.add(word) self.lblStopwords.SetLabel("Stopwords found in Emails Settings:") """ #self.MakeStopwordsList() self.txtStopwords.SetValue(";".join(self.Stopwords)) #Value)
def __init__(self, parent): self._init_ctrls(parent) self.SetIcon(images.getMAKE2Icon()) self.InitThrober() self.Bind(EVT_UPDATE_LABEL, self.OnUpdate) self.lblScanStatus.SetLabel("Keywords Search in Progress...") self.StartTime = 0 self.scanStarted = False #self.ReadFilePropertiesToGet() self.jobID = 0 self.StartTimer() #return self.ScanFinished = False # tuple of all parallel python servers to connect with ppservers = () #ppservers = ("localhost",) # Creates jobserver with automatically detected number of workers #workers = jobServer = pp.Server(ppservers=ppservers) self.scanThread = KeywordsSearchThread(self, self.StartTime, jobServer) self.scanThread.Start()
def __init__(self, parent, rootDrive, listImageNames, SourceType=Constants.LogicalDrive, verifyImages=True): self._init_ctrls(parent) self.SetIcon(images.getMAKE2Icon()) #self.InitThrober() self.Bind(EVT_UPDATE_LABEL, self.OnUpdate) value = 'Creating Image...' if len(listImageNames) > 1: value = 'Creating Images...' self.lblScanStatus.SetLabel(value) #self.db = SqliteDatabase(Globals.MACFileName) #self.db.OpenConnection() self.StartTime = time.time() #self.scanStarted = False #self.ReadFilePropertiesToGet() self.jobID = 0 #self.StartScan() self.Bind(wx.EVT_TIMER, self.TimerHandler) self.timer = wx.Timer(self) self.timer.Start(100) global writeThread global readThread #sched = Scheduler() writeThread = WriteThread(self, self.StartTime, listImageNames, SourceType, verifyImages) self.ScanFinished = False writeThread.start() readThread = ReadThread(self, self.StartTime, rootDrive, listImageNames, SourceType, verifyImages) readThread.start()
def __init__(self, parent, dirPath): self._init_ctrls(parent) self.SetIcon(images.getMAKE2Icon()) self.InitThrober() self.Bind(EVT_UPDATE_LABEL, self.OnUpdate) self.rootDir = dirPath self.FilePropertiesToRead = "" self.lblScanStatus.SetLabel("Scan in Progress...") self.scanStarted = False #self.ReadFilePropertiesToGet() self.jobID = 0 self.EvidenceID = "Evidence1" #self.StartScan() global StartTime StartTime = time.time() self.StartTimer() self.scanThread = MACScanThread(self, self.rootDir) #self.ScanFinished = False self.scanThread.start() self.writeThread1 = WriteThread1(self, self.rootDir) #self.ScanFinished = False self.writeThread1.start() self.writeThread2 = WriteThread2(self, self.rootDir) #self.ScanFinished = False self.writeThread2.start() FileInfoQueue.join() ThumbnailQueue.join() SubDirQueue.join() self.UpdateEvidence()
def __init__(self, parent): self._init_ctrls(parent) self.SetIcon(images.getMAKE2Icon()) self.AddSearchControl()
def __init__(self, parent, StopwordsList=[]): self._init_ctrls(parent) self.SetIcon(images.getMAKE2Icon()) self.StopwordsList = StopwordsList self.search = Search(Globals.TextCatFileName, self.StopwordsList)
def __init__(self, parent): self._init_ctrls(parent) self.SetIcon(images.getMAKE2Icon())
def __init__(self, parent): self._init_ctrls(parent) self.SetIcon(images.getMAKE2Icon()) self.CreateSettingsTable()