iT邦幫忙

2018 iT 邦幫忙鐵人賽
DAY 29
0
Security

從接電話解任務開始到進入資安領域邊邊系列 第 29

接電話解任務(29/30): File utilities

  • 分享至 

  • xImage
  •  

File utilities微軟家的檔案工具:

Strings
Streams
NTFS link utilities、DiskUsage(DU)
Post-reboot le operation utilities

Strings

Working on NT and Win2K means that executables and object files will many times have embedded UNICODE strings that you cannot easily see with a standard ASCII strings or grep programs. So we decided to roll our own. Strings just scans the file you pass it for UNICODE (or ASCII) strings of a default length of 3 or more UNICODE (or ASCII) characters. Note that it works under Windows 95 as well.
載點
https://docs.microsoft.com/en-us/sysinternals/downloads/strings

Streams

The NTFS file system provides applications the ability to create alternate data streams of information. By default, all data is stored in a file's main unnamed data stream, but by using the syntax 'file:stream', you are able to read and write to alternates. Not all applications are written to access alternate streams, but you can demonstrate streams very simply. First, change to a directory on a NTFS drive from within a command prompt. Next, type 'echo hello > test:stream'. You've just created a stream named 'stream' that is associated with the file 'test'. Note that when you look at the size of test it is reported as 0, and the file looks empty when opened in any text editor. To see your stream enter 'more < test:stream' (the type command doesn't accept stream syntax so you have to use more).
NT does not come with any tools that let you see which NTFS files have streams associated with them, so I've written one myself. Streams will examine the files and directories (note that directories can also have alternate data streams) you specify and inform you of the name and sizes of any named streams it encounters within those files. Streams makes use of an undocumented native function for retrieving file stream information.
載點
https://docs.microsoft.com/en-us/sysinternals/downloads/Streams

NTFS link utilities

Junction

Windows 2000 and higher supports directory symbolic links, where a directory serves as a symbolic link to another directory on the computer. For example, if the directory D:\SYMLINK specified C:\WINNT\SYSTEM32 as its target, then an application accessing D:\SYMLINK\DRIVERS would in reality be accessing C:\WINNT\SYSTEM32\DRIVERS. Directory symbolic links are known as NTFS junctions in Windows. Unfortunately, Windows comes with no tools for creating junctions—you have to purchase the Win2K Resource Kit, which comes with the linkd program for creating junctions. I therefore decided to write my own junction-creating tool: Junction. Junction not only allows you to create NTFS junctions, it allows you to see if files or directories are actually reparse points. Reparse points are the mechanism on which NTFS junctions are based, and they are used by Windows' Remote Storage Service (RSS), as well as volume mount points.
Windows does not support junctions to directories on remote shares.
載點
https://docs.microsoft.com/en-us/sysinternals/downloads/junction

FindLinks

FindLinks reports the file index and any hard links (alternate file paths on the same volume) that exist for the specified file. A file's data remains allocated so long as at it has at least one file name referencing it.
載點
https://docs.microsoft.com/en-us/sysinternals/downloads/findlinks

DiskUsage(DU)

Du (disk usage) reports the disk space usage for the directory you specify. By default it recurses directories to show the total size of a directory and its subdirectories.
載點
https://docs.microsoft.com/en-us/sysinternals/downloads/du

Post-reboot le operation utilities

There are several applications, such as service packs and hotfixes, that must replace a file that's in use and is unable to. Windows therefore provides the MoveFileEx API to rename or delete a file and allows the caller to specify that they want the operation to take place the next time the system boots,before the files are referenced. Session Manager performs this task by reading the registered rename and delete commands from the HKLM\System\CurrentControlSet\Control\Session Manager\PendingFileRenameOperations value.

PendMoves

This applet dumps the contents ofthe pending rename/delete value and also reports an error when the source file is notaccessible.

MoveFile

包含的MoveFile實用程序允許您為下一次重新啟動計劃移動和刪除命令: 用法:movefile [source] [dest]
載點
https://docs.microsoft.com/en-us/sysinternals/downloads/movefile


上一篇
接電話解任務(28/30): Desktop utilities
下一篇
接電話解任務(30/30): 磁碟工具Disk utilities
系列文
從接電話解任務開始到進入資安領域邊邊32
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言