2013-03-21 28 views
0

我已經被授予了一個組的法醫計算任務,我的角色是想出一個腳本,使我能夠使用「SNOW」隱寫術工具來搜索文件目錄並找到隱藏在其中的數據。問題是,我對如何使用該工具的知識非常有限,而且我的腳本編寫能力更差。從我收集的內容Snow使用間距和製表符來隱藏大多數文本文件中行結尾處的數據,這些文件顯示爲空白。即.txt .html .plist等使用/腳本雪的隱藏信息工具

據我所知,有一本關於如何在網站上使用雪的手冊,但我發現很難用他們的技術得到任何結果。這可能是由於我完全錯誤,或者我正在搜索的文件恰好是沒有隱藏數據的文件。

所以,我真的問了兩個問題。

  1. 誰能幫助我瞭解如何使用程序 「SNOW」

  • 誰能幫我創建一個腳本(任何語言好),它將在目錄中的每個文件上運行「SNOW」。
  • 回答

    0
    如果你看看他們的主頁 snow homepage

    你會發現鏈接到他們的Java小程序應該至少說明你的工具的基本工作

    。只要命令行,即使這很簡單,並附帶一個手冊頁(單詞文檔)。請具體說明哪一部分你不能理解。爲了清楚起見,例如,如果有一段文字,「說祕密文本」需要用雪來進行分類。所以這就是你要做的: -

    打開命令行。 轉到您的目錄,有雪存在。 寫入SNOW.exe「祕密文本」輸出文件。 這裏的輸出文件是您將獲得經過加密文本的文件。 您可以隨時閱讀工具提供的不同開關的手冊頁。

    至於你的第二個問題: -

    下面是打印出目錄中的所有文件以遞歸的方式一小python腳本,即遍歷所有目錄中的目錄中,並打印出的文件名字出現在他們的路上。你現在可以從這裏取出每一行並將它作爲SNOW的輸入發送。

    def fileLookUp(fixedPath): 
        temp=fixedPath; 
        #checking if the current directory in question has any inner directory. 
        if not Directory.GetDirectories(fixedPath): 
        #concluded that this is the innermost final directory. 
         files=Directory.GetFiles(fixedPath); 
         for eachFile in files: 
          #file retrieved in the innermost directory. 
          print eachFile; #this prints the path of the file along with the file name 
        else: 
        #further inner directory(ies) found. 
         directory=Directory.GetDirectories(fixedPath); 
         for folder in directory: 
          #reading each directory one by one to frame the next look-up path. 
          fixedPath=""; 
          fixedPath+=folder; 
          fixedPath+="\\"; 
          #next look-up path framed. 
          #sending the new look-up path for a recursive search again. 
          fileLookUp(fixedPath); 
        #after the files in the innner most directories at a particular level is 
        #processed, the recursive calls start reverting back and the control now 
        #reached here. Now doing the processing of the 'temp' . 
         filess=Directory.GetFiles(temp); 
          for eachFilee in filess: 
           print eachFilee; 
    

    請注意壓痕。該腳本在控制檯中輸出文件名和路徑。您可以將其寫在文件上,並根據需要逐行讀取。