Network Utility is an application included with Mac OS X that provides a variety of computer network information. It is located at /Applications/Utilities/Network Utility.app.
Network Utility uses the tools supplied in the unix directories for most of its functions, however for the port scan it uses a unix executable in its resources folder, stroke, found at /Applications/Utilities/Network Utility.app/Contents/Resources/stroke.