Nmap/Ncat Portable – show de bola

por em 30/06/11 às 7:55 pm

Acabei de saber que o excelente time de desenvolvimento do Nmap/Ntcat acaba de lançar uma versão portável para ambos os produtos, rodando em ambiente Windows. Esta nova versão é compatível com praticamente todos os Windows existentes no mercado, desde do XP até o 7.

O processo de portabilidade é bem simples, deem uma olhada:

First of all, tools of the trade:

  • Microsoft Visual C++ 2010
 Express Edition is fine:
 http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-cpp-express
 Note: Tested with openssl-1.0.0d.
  • Perl (needed for building OpenSSl)
 Install ActivePerl from activestate.com (free download)
 http://www.activestate.com/store/activeperl/download/
  • Nmap source either from svn or latest stable release version
 http://nmap.org/download.html

Next step is to build the OpenSSL library you just downloaded statically:

 1) Extract openssl-x.x.x archive to c:\.
 2) Create c:\OpenSSL folder for installation.
 3) Open the Visual Studio 2010 command prompt.
 4) Change directory to the OpenSSL source directory and issue the following
    commands:
      perl Configure --prefix=C:/OpenSSL VC-WIN32 -no-shared
      ms\do_ms.bat
      nmake -f ms\nt.mak install
 5) If all is fine from the above step, copy the resulted static libs and
    include files from "C:\OpenSSL" to the "mswin32\OpenSSL" directory in the
    Nmap source tree. Remove the existing include\ and lib\ directories:
      c:\OpenSSL\include   -> nmap\mswin32\OpenSSL\include
      c:\OpenSSL\lib       -> nmap\mswin32\OpenSSL\lib

Assuming that everything went fine till now, you’re about two steps away from building Ncat portable:

 1) Open Nmap solution in Visual Studio from mswin32\nmap.sln and switch the
    build configuration to "Ncat Static" like so:
    a)Right click on Solution 'nmap' in the Solution Explorer sidebar and
      choose "Configuration Manager".
    b)Switch the active solution configuration to "Ncat Static" and then close
      the Configuration Manager. Make sure that the nsock, nbase and ncat
      projects have switched to the "Static" configuration also.
    c)Right click on the ncat project and select "Set as StartUp Project".
 2) Right click on the "ncat" project in Visual Studio and click "Build".
    Alternatively you can press the F7 key to start building.

Parabéns ao time de desenvolvimento por este excelente trabalho. Para quem não sabe, o NMAP e o Ntcat são duas das ferramentas mais utilizadas por profissionais que trabalham com segurança da informação, hackers e crackers.

Bad Behavior has blocked 1110 access attempts in the last 7 days.