JP Vossen on 24 Sep 2007 16:22:29 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[PLUG] Unix-like tools for Windows


I had a conversation with mct the other day on this topic, and it occurred to me that there are probably other people on the list who'd be interested. The following is a list of Unix-like tools you can use on Windows. I could not exist without #1.

1) http://unxutils.sourceforge.net/
Stand-alone, Windows native .exe files. These are *great*! No installer, no DLLs, nothing but sort,cut,grep,awk,sed,date.exe, and much more. You'll want to rename date.exe to udate or gdate or something so you don't collide with the built-in date command. See also gclip/pclip which allow reading and writing the clipboard from the command line (see example below). The only downside is that these have not been updated in a long time. They usually Just Work, though I have encountered a few bugs in date.exe, which I use quite a lot.


2) http://sourceforge.net/projects/gnuwin32/
Official GNU Windows native (more or less) ports of GNU tools. No installer, but these do require a DLL or two, so you can download the tools you want and try to run them. They will complain about missing foo.dll, then you go add that. After a bit of trial and error it'll work. You can then package up the dir and copy it around as desired.


3) http://www.cygwin.com/
Everyone probably knows about these tools already, so I'll mention them only for completeness. Does require an installer and DLLs, and is not quite what I'd call Windows Native. The tools run and are great, but you end up in kind of a mutant not-quite-Windows, not-quite-Unix environment that I find disconcerting. Requires some work to get working well, but awesome when you do that. Includes an SSH server! (See also http://sshwindows.sourceforge.net/)


4) http://www.microsoft.com/technet/sysinternals/default.mspx
Wait, wait, I know it's M$, but... It used to be sys/wininternals and Mark Russinovich and Bryce Cogswell. They have extremely cool tools and utilities, almost none of which require installation. Just download the zip file, open it and run. They are/were *so* good at digging into Windows guts that M$ bought them (out of self-defense I like to imagine). I do not like the way the tools are broken out by category as it's hard to see all that's there and many tools are listed more than once which is annoying. I've created a better list, see CSV below.


5) M$ Windows Services for UNIX Version 3.5
"Windows Services for UNIX version provides a full range of cross-platform services for integrating Windows into existing UNIX-based environments."
http://www.microsoft.com/windowsserver2003/r2/unixinterop/default.mspx
http://technet.microsoft.com/en-us/interopmigration/bb380242.aspx
http://www.microsoft.com/windowsserversystem/sfu/downloads/default.mspx
http://www.securiteam.com/windowsntfocus/5KP0D1PMKC.html
http://www.microsoft.com/technet/security/bulletin/ms07-053.mspx


6) http://www.jpsdomain.org/windows/winlogcheck.html
I ported the "logcheck" concept to Windows Event logs a while ago, using some of the tools above. It's a bit of a hack, but some people might find it interesting.


7) http://jpsoft.com/
This is almost OT, and I have no relation to the company except as a satisfied customer. The products are also not F/OSS. They basically have a command line shell that is almost as powerful as bash, but with a DOS/Windows "feel" and syntax (yeah, that can get ugly). Their old 4DOS product was released as open source.



~~~~~~~~~~~ Bottom line

For one-offs, or quick & dirty work, I mostly use Unxutils, with a small smattering of GNUWin32. For example, you can grab a column of IP Addresses from a GUI spreadsheet, flip to a DOS Prompt and do this:
pclip | sort | uniq -c | sort -rn | gclip
and then paste a list of the unique IPAs, most frequent first back in someplace.


Hope this is useful,
JP

Sorry about this, I wasn't sure an attachment would work on the list. Sysinternals tools on M$ site:

----- csv cut here -----
Tool,Cat.,SysInternals / WinInternals Tool Description
AccessChk,"F, S","This tool shows you the accesses the user or group you specify has to files, Registry keys or Windows services."
AccessEnum,"F, S","This simple yet powerful security tool shows you who has what access to directories, files and Registry keys on your systems. Use it to find holes in your permissions."
AdExplorer,"M, N",Active Directory Explorer is an advanced Active Directory (AD) viewer and editor.
AdRestore,M,Restore tombstoned Active Directory objects in Server 2003 domains.
AdRestore,N,Undelete Server 2003 Active Directory objects
Autologon,"M, S",Bypass password screen during logon.
Autoruns,"I, P, S",See what programs are configured to startup automatically when your system boots and you login. Autoruns also shows you the full list of Registry and file locations where applications can configure auto-start settings.
BgInfo,M,"This fully-configurable program automatically generates desktop backgrounds that include important information about the system including IP addresses, computer name, network adapters, and more."
BlueScreen,M,"This screen saver not only accurately simulates Blue Screens, but simulated reboots as well (complete with CHKDSK), and works on Windows NT 4, Windows 2000, Windows XP, Server 2003 and Windows 9x."
CacheSet,F,CacheSet is a program that allows you to control the Cache Manager's working set size using functions provided by NT. It's compatible with all versions of NT.
ClockRes,I,"View the resolution of the system clock, which is also the maximum timer resolution"
Contig,F,"Wish you could quickly defragment your frequently used files? Use Contig to optimize individual files, or to create new files that are contiguous."
Ctrl2cap,M,"This is a kernel-mode driver that demonstrates keyboard input filtering just above the keyboard class driver in order to turn caps-locks into control keys. Filtering at this level allows conversion and hiding of keys before NT even ""sees"" them. Ctrl2cap also shows how to use NtDisplayString() to print messages to the initialization blue-screen."
DebugView,M,Another first from Sysinternals: This program intercepts calls made to DbgPrint by device drivers and OutputDebugString made by Win32 programs. It allows for viewing and recording of debug session output on your local machine or across the Internet without an active debugger.
DiskExt,F,Display volume disk-mappings
Diskmon,F,This utility captures all hard disk activity or acts like a software disk activity light in your system tray.
DiskView,F,Graphical disk sector utility
Du,F,View disk usage by directory
EFSDump,F,View information for encrypted files
Filemon,"F, I, P",This monitoring tool lets you see all file system activity in real-time.
Handle,"I, P","This handy command-line utility will show you what files are open by which processes, and much more"
Hex2dec,M,Convert hex numbers to decimal and vice versa.
Junction,F,Create Win2K NTFS symbolic links
LDMDump,F,"Dump the contents of the Logical Disk Manager's on-disk database, which describes the partitioning of Windows 2000 Dynamic disks."
ListDLLs,P,"List all the DLLs that are currently loaded, including where they are loaded and their version numbers. Version 2.0 prints the full path names of loaded modules."
LiveKd,I,Use Microsoft kernel debuggers to examine a live system.
LoadOrder,I,See the order in which devices are loaded on your WinNT/2K system
LogonSessions,I,List the active logon sessions on a system
LogonSessions,S,List active logon sessions
MoveFile,F,Schedule file rename and delete commands for the next reboot. This can be useful for cleaning stubborn or in-use malware files.
NewSID,S,"Learn about the computer SID problem everybody has been talking about and get a free computer SID changer, NewSID."
NTFSInfo,F,"Use NTFSInfo to see detailed information about NTFS volumes, including the size and location of the Master File Table (MFT) and MFT-zone, as well as the sizes of the NTFS meta-data files."
PageDefrag,F,Defragment your paging files and Registry hives!
PendMoves,F,See what files are scheduled for delete or rename the next time the system boots.
PendMoves,I,Enumerate the list of file rename and delete commands that will be executed the next boot
Portmon,P,Monitor serial and parallel port activity with this advanced monitoring tool. It knows about all standard serial and parallel IOCTLs and even shows you a portion of the data being sent and received. Version 3.x has powerful new UI enhancements and advanced filtering capabilities.
Process Explorer,"I, P, S","Find out what files, registry keys and other objects processes have open, which DLLs they have loaded, and more. This uniquely powerful utility will even show you who owns each process."
Process Monitor,"F, I, P","Monitor file system, Registry, process, thread and DLL activity in real-time."
ProcFeatures,I,This applet reports processor and Windows support for Physical Address Extensions and No Execute buffer overflow protection.
PsExec,P,Execute processes remotely.
PsExec,S,Execute processes with limited-user rights.
PsFile,"F, N",See what files are opened remotely
PsInfo,I,Obtain information about a system
PsKill,P,Terminate local or remote processes.
PsList,P,Show information about processes and threads.
PsLoggedOn,"I, S",Show users logged on to a system
PsLogList,"M, S",Dump event log records.
PsService,P,View and control services.
PsSuspend,P,Suspend and resume processes.
PsTools,All,"The PsTools suite includes command-line utilities for listing the processes running on local or remote computers, running processes remotely, rebooting computers, dumping event logs, and more."
RegDelNull,M,Scan for and delete Registry keys that contain embedded null-characters that are otherwise undeleteable by standard Registry-editing tools.
Regjump,M,Jump to the registry path you specify in Regedit.
Regmon,"I, P",This monitoring tool lets you see all Registry activity in real-time.
RootkitRevealer,S,Scan your system for rootkit-based malware
SDelete,"F, S",Securely overwrite your sensitive files and cleanse your free space of previously deleted files using this DoD-compliant secure delete program.
ShareEnum,"F, N, S",Scan file shares on your network and view their security settings to close security holes.
Sigcheck,"F, S",Dump file version information and verify that images on your system are digitally signed.
Streams,F,Reveal NTFS alternate streams
Strings,M,Search for ANSI and UNICODE strings in binary images.
Sync,F,Flush cached data to disk
TCPView,N,Active socket command-line viewer.
VolumeId,F,Set Volume ID of FAT or NTFS drives
Whois,N,See who owns an Internet address.
Winobj,I,The ultimate Object Manager namespace viewer is here.
ZoomIt,M,Presentation utility for zooming and drawing on the screen.


Categories:,,
,F,Sysinternals Utilities: File & Disk
,N,Sysinternals Utilities: Networking
,P,Sysinternals Utilities: Process
,S,Sysinternals Utilities: Security
,I,Sysinternals Utilities: System Information
,M,Sysinternals Utilities: Miscellaneous

Source:,,
,http://www.microsoft.com/technet/sysinternals/default.mspx,

Last Updated:,,
,2007-09-23,
----- csv cut here -----

----------------------------|:::======|-------------------------------
JP Vossen, CISSP            |:::======|        jp{at}jpsdomain{dot}org
My Account, My Opinions     |=========|      http://www.jpsdomain.org/
----------------------------|=========|-------------------------------
Microsoft has single-handedly nullified Moore's Law.
Innate design flaws of Windows make a personal firewall, anti-virus
and anti-malware software mandatory. The resulting software arms race
has effectively flattened Moore's Law on hardware running Windows.
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug