Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
GOOD NEWS! Such a tool already exists, it's called 'grep'. Now you don't have to do anything!
-bash-3.2$ echo "password" >> one.txt
-bash-3.2$ echo "password" >> two.txt
-bash-3.2$ grep 'password' /home/josh/temp/*.txt
/home/josh/temp/one.txt:password
/home/josh/temp/two.txt:password
-bash-3.2$
grep -r password *.txt "C:\Bin"
findstr -s "password" C:\bin\*.txt
What do you mean? byte-wise over the whole disk? Something else?Is there a way to run the search against the volume vs. a specific directory?
Certainly wouldn't be very speedy hitting a whole disk, depending on how much it is filled.
What exactly are you trying to accomplish beyond the obvious of finding files that have "password" in them?
If you're on a windows system and have indexing turned on, that's not a bad route either.
What's wrong with using findstr? It's not clear what your requirements are -- we still don't know if you mean to look at all files or the whole disk surface (or only the occupied disk surface).Is there another way to approach this?
What's wrong with using findstr? It's not clear what your requirements are -- we still don't know if you mean to look at all files or the whole disk surface (or only the occupied disk surface).
Your requirements might simply be too much. If you have a 3 TB disk drive on a server, and read that drive at 100 megabytes a second, you'll need 30,000 seconds to read the whole drive. That's 8.3 hours.
Yes, there are dozens of ways to search a disk drive for information.I was just stating if there's another way to tackle this.
You've been offered a solution but you have rejected it without saying why you don't like it. You might write your own program; you might take backups of the machine and scan through the backups offline, so the machine's use isn't interrupted. You might index files so you can remember what you've scanned and what you haven't scanned from day-to-day, minimizing your work. If you have lots of servers, you might work out a repository so that you can get a fingerprint of a file and see if it's expected -- if not, scan it. (For example, all computers have FireFox.EXE installed. If it's one of the versions you've previously seen, don't scan it. If it's new, scan it, test it, and record the new fingerprint so no other machine has to scan it again.)If I'm not answering your question or not making sense, please let me know and I'll try my best to elaborate as much as possible.
Are you checking client machines or network shares/file servers? What time frame do you have to complete this within and at what intervals?
mikeblas is asking if you're only checking just the files or the entire disk itself.
Yes, there are dozens of ways to search a disk drive for information.
You've been offered a solution but you have rejected it without saying why you don't like it. You might write your own program; you might take backups of the machine and scan through the backups offline, so the machine's use isn't interrupted. You might index files so you can remember what you've scanned and what you haven't scanned from day-to-day, minimizing your work. If you have lots of servers, you might work out a repository so that you can get a fingerprint of a file and see if it's expected -- if not, scan it. (For example, all computers have FireFox.EXE installed. If it's one of the versions you've previously seen, don't scan it. If it's new, scan it, test it, and record the new fingerprint so no other machine has to scan it again.)
It seems like, if you're concerned with installing grep.exe, you won't be too interested in writing any more elaborate software. But since you're not being clear about what your requirements or limitations are, we are forced to just guess at something that might make you happy.
Since the "approved list" is your pool of options, give us that list. Otherwise, suggestions that rely on helper utilities would continue to get blacklisted before truly being evaluated.I'm open to suggestions, but due to certain limitations, we can't install 3rd party and/or open source software unless it's on the approved list.
Since the "approved list" is your pool of options, give us that list. Otherwise, suggestions that rely on helper utilities would continue to get blacklisted before truly being evaluated.
Alternatively, this topic could be a good starting point to for you to push for a policy change to meet new demands and requirements.
True, but PowerShell is supported on Server 2003. MS has a download for it.Powershell is another utility that we can use, but it's not part of Windows 2003 server edition.
*EDIT* Some options seem possible as well. (Source)Is it possible to exclude certain file extensions when searching w. FINDSTR?
True, but PowerShell is supported on Server 2003. MS has a download for it.
*EDIT* Some options seem possible as well. (Source)
But that should also be weighed against PowerShell and whether its capabilities would be more beneficial.
You only need PowerShell on the machine(s) running the audit, not on every machine being audited. This would also save you from filling out X-1 number of formsYes but installing the packages to X number of 2003 (32bit + x64) servers in the environment makes it harder to get pushed thru. The number of Change Management forms that needs to be approved, getting the application owner/developer for testing and validation, etc. It's an option but a less likely one, but I will certainly bring it to his attention.
Does findstr cost extra? Why is it more complicated than installing a VM, then Linux inside the VM, and administering both for the rest of the life of the server?
didn't you know that setting up a complete VM for each and every application you'll ever run is the cool thing to do these days?