Tugboat is a program for viewing strings inside files - It collects text and puts it into a file of your choosing.
It is useful for seeing what strings are in programs, corrupted documents or for joining text files. It can be used to compile dictionaries and wordlists, as well as just collecting words that consist of certain letters or are of a particular length.
By default it retrieves non accented ascii text and latin unicode.
Download it here
(4.75 KB) Windows 95, 98, Me, NT4, 2K, XP
Drag and drop one or more files onto the window - any text in those files will be copied into the output file if it fits the criteria in the setup dialog.
This decides how spaces are dealt with.
'None at all' treats spaces as breaks between words and otherwise ignores them.
'No multiple' will only keep strings containing at most one space. Two spaces would be treated as a word break and ignored.
'Accept all' treats spaces as valid characters.
'Pre defined' will only collect strings that consist of the character set built into the program. These are the most common ascii characters (A-Z, a-z, 0-9 etc), and on this setting the program will run fastest.
'User defined' will only collect strings that consist of the characters you choose in the 'User defined byte selection' boxes. You choose the characters by either typing them into the first box, or by typing the equivalent hex bytes into the second box.
'Exact copy' will just copy the whole file byte for byte, overriding any settings.
End of line bytes:
Different operating systems use different end of line characters to represent new lines. Normally you would use 'Dos' here.
Maximum word size:
'Split': If a string is larger than the maximum word size then the program will treat the first part as one word and treat the second part as another word.
'Truncate': If a string is larger than the maximum word size then the program will just keep the first part of the word.
'Ignore': Here the program will ignore the whole word if it is too big.
'Min': This is the size of the smallest word you want accepted.
'Max': This is the size of the largest word you want accepted.
If you make 'Min' and 'Max' the same the program will only collect words of that length.
'Include in file': The program will write the filename of the file it's reading into the output file, before it puts any text it's collected. This is useful if you want to see which files produced which text.
'Ignore': The program won't put the filenames into the output file.
All text is appended to the output file if it already exists. If it doesn't exist then it will be created.
To choose a different output file drag and drop an existing file onto the 'output file' section. Or type it by hand (i wrote this a while ago - someday i'll improve it).
Some older versions of Wordpad (i.e. included with Windows 95), when opening a text file that started with the letters 'MZ', concluded that it must be an executable and refused to open it. It's something to look out for if you ever get this problem (and nothing to do with my program).
The default settings will be good for most things.
If you start collecting words under 3 letters long you will probably collect a lot of nonsense.
The program stores its settings in the registry under "HKEY_CURRENT_USER\Software\TugBoat". If you delete this then the next time the program is run it will use its default settings.
The reason it's called Tugboat is because it's small yet can deal with really large files - like a small boat controlling a huge ship.