NTFS path limit is 255 characters
This commit is contained in:
@@ -39,6 +39,6 @@ The program will do the following:
|
||||
Hopefully, having the txt produced by this program will help you easily restore files infected by cryptowall. The program was only written to search local hard drives (usb drives are included not network drives). It is advised to not run this on systems in which cryptowall is still encrypting files. Make sure the computer is clean (or running in safe mode) before running this program.
|
||||
|
||||
|
||||
**Script 2 SMB Path Length**
|
||||
**Script 2 SMB/NTFS Path Length**
|
||||
|
||||
This program will create a txt with a list of files whose path exceeds 260 characters. The program scans local drives and should be run on the server not the client.
|
||||
This program will create a txt with a list of files whose path exceeds 255 characters. The program scans local drives and should be run on the server not the client.
|
||||
@@ -13,7 +13,7 @@ require_relative 'filecreate'
|
||||
#puts drive.DriveType
|
||||
if drive.DriveType == 2
|
||||
@files = @filesUtil.findFilesByFileName(drive.Path,'*.*')
|
||||
@filesTooLong = @files.select{|f| @filesUtil.getExpandedPathByFileName(f).length > 260}
|
||||
@filesTooLong = @files.select{|f| @filesUtil.getExpandedPathByFileName(f).length > 255}
|
||||
@filesTooLong.each do |file|
|
||||
@whatToWrite = @filesUtil.getExpandedPathByFileName(file)
|
||||
@outputFile.writeWindowsFilePath(@whatToWrite)
|
||||
|
||||
Reference in New Issue
Block a user