예제 #1
0
    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()
        """
예제 #2
0
 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()
예제 #3
0
    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()
예제 #4
0
 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()
예제 #6
0
 def __init__(self, parent):
     self._init_ctrls(parent)
     self.SetIcon(images.getMAKE2Icon())
     self.InitCategoryCheckView()
     if len(Globals.EmailsStopwords) == 0:
         try:
             self.ReadStopwordsFromDB()
         except:
             pass
예제 #7
0
    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'])
예제 #8
0
 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)
예제 #9
0
 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    ")
예제 #10
0
 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 = []
예제 #11
0
 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
예제 #12
0
    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()
예제 #13
0
    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)
예제 #14
0
 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)
예제 #15
0
    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)
예제 #16
0
    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
예제 #17
0
    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()
예제 #18
0
    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()
예제 #19
0
 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)
예제 #20
0
    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()
예제 #21
0
    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()
예제 #22
0
 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()
예제 #23
0
 def __init__(self, parent):
     self._init_ctrls(parent)
     self.SetIcon(images.getMAKE2Icon())
     self.AddSearchControl()
예제 #24
0
    def __init__(self, parent, StopwordsList=[]):
        self._init_ctrls(parent)
        self.SetIcon(images.getMAKE2Icon())

        self.StopwordsList = StopwordsList
        self.search = Search(Globals.TextCatFileName, self.StopwordsList)
예제 #25
0
 def __init__(self, parent):
     self._init_ctrls(parent)
     self.SetIcon(images.getMAKE2Icon())
예제 #26
0
    def __init__(self, parent):
        self._init_ctrls(parent)
        self.SetIcon(images.getMAKE2Icon())

        self.CreateSettingsTable()