Nmap/Old Windows Releases

來源:互聯網
上載者:User

標籤:nmap   windows

Nmap/Old Windows Releases





While Nmap supports all modern versions of Windows, it no longer officially supports some which are so old that even Microsoft has ceased all support for them. This includes Windows NT, Windows 2000, and Windows XP.

We would highly recommend upgrading any Windows systems that old for security purposes if nothing else.  But if you must run Nmap on such a system, the easiest option is to use use an older Nmap release.  You can find these in the Nmap dist directory (or older still versions in dist-old.  The latest version reported to work on Windows XP SP2/SP3 is Nmap 6.47.  For older versions of Windows such as Windows 2K or XP without Service Pack 2, we recommend Nmap 5.35DC1 or older.

When using Nmap on Windows 2000 (either an old version as described above, or a newer version as described later on this page), a couple dependencies from Microsoft may need to be installed first.  Those are the Windows Installer 3.1 (v2) and the Security Update for Windows 2000 (KB835732).  After installing these, follow the general instructions in the following two sections to install Nmap.

Even current versions of Nmap may be usable with Windows 2000 or XP if compiled the right way.  First familiarize yourself with Nmap‘s normal Windows compilation instructions.  Then follow these instructions first reported by David Millis:

Here‘s exactly what I did to get static 2010-built executables that work under earlier Windows versions. I‘ve hardly ever touched VC++, so pardon my repeated static-setting and rebuild lines at the end, if there‘s an abridged equivalent. :)

  1. Open nmap-5.51/mswin32/nmap.sln

  2. Solution-Configuration Manager: Active Config = Release

  3. ncat Project-Build Customizations...: masm = true (do before adding .asm‘s)

  4. ncat Project-Add-New Item (C++): pointer.asm

.model flat.data__imp__EncodePointer () 4 dd dummy__imp__DecodePointer () 4 dd dummyEXTERNDEF __imp__EncodePointer () 4 : DWORDEXTERNDEF __imp__DecodePointer () 4 : DWORD.codedummy procmov eax, [esp+4]ret 4dummy endp end
  1. ncat Project-Properties-Linker-System: Minimum Req Version = 5.0

  2. ncat Project-Properties-C/C++-Code Generation: Runtime Library = Multi-Threaded (non-dll)

  3. nbase Project-Properties-C/C++-Code Generation: Runtime Library = Multi-Threaded (non-dll)

  4. nsock Project-Properties-C/C++-Code Generation: Runtime Library = Multi-Threaded (non-dll)

  5. nbase Project-Project Only-Rebuild

  6. nsock Project-Project Only-Rebuild

  7. ncat Project-Project Only-Rebuild

nmap and nping worked the same way. Libs get MT. Executables get the MinReq and Asm as well.

The TedWVC blog has a useful guide on Win2K compatability when compiling with Visual C++ 2010.



本文出自 “天馬行空” 部落格,請務必保留此出處http://techmc.blog.51cto.com/740121/1981517

Nmap/Old Windows Releases

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.