2013-03-21 29 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; 
    

    请注意压痕。该脚本在控制台中输出文件名和路径。您可以将其写在文件上,并根据需要逐行读取。