blackbag version 0.9 for Mac OS X 10.5 Leopard
Friday the 16th of May, 2008

    blackbag  most recent diff


      View the most recent changes for the blackbag port at: blackbag.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for blackbag.
      The raw portfile for blackbag 0.9 is located here:
      http://blackbag.darwinports.com/dports/net/blackbag/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/blackbag
      Google
      Web Darwinports.com



      # $Id: Portfile 32737 2008-01-12 21:56:23Z ecronin macports.org $

      PortSystem 1.0

      Name: blackbag
      Version: 0.9
      revision 1
      Category: net security
      Platform: darwin
      Maintainers: ecronin
      Description: A miscelleny of network testing tools.
      Long Description: Blackbag is Matasano's suite of penetration testing and reverse engineering tools. What started as a binary interactive netcat, has evolved into our "blackbag" of tools to help us understand and attack proprietary protocols, find compressed images inside of files and more!

      Homepage: http://www.matasano.com/log/552/code-release-blackbag-09-binary-protocol-reversing-unix-thingies/
      master_sites http://www.sockpuppet.org/
      extract.suffix .tgz
      checksums md5 9603a1c387b1cb0fc7e1a200002b578f sha1 7931f258f06853188c052eb2d72a2d4c6fb8f8b1

      depends_lib port:libevent port:libpcap port:openssl port:zlib

      use_configure no

      build.env LFLAGS="-L${prefix}/lib" IFLAGS="-I${prefix}/include"

      patchfiles patch-bkb.diff

      post-patch {
      reinplace "s|/usr/local|\$\(DESTDIR\)/${prefix}|g" ${worksrcpath}/Makefile
      reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/bkb
      reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/sub.c
      reinplace "s|/usr/local|\$\(DESTDIR\)/${prefix}|g" ${worksrcpath}/asn/Makefile
      reinplace "s|/usr/local/bin|${prefix}/bin/blackbag|g" ${worksrcpath}/asn/asn
      reinplace "s|shift|#shift|g" ${worksrcpath}/asn/asn
      reinplace "s|-I../third-party/libevent-1.0b||g" ${worksrcpath}/Makefile
      reinplace "s|-L../third-party/libevent-1.0b||g" ${worksrcpath}/Makefile
      reinplace "s|-g||g" ${worksrcpath}/common.mk
      reinplace "s|-I\$\(TOP\)/../third-party/libevent-1.0b||g" ${worksrcpath}/common.mk
      reinplace "s|-L\$\(TOP\)/../third-party/libevent-1.0b||g" ${worksrcpath}/common.mk
      reinplace "s|-L\$\(TOP\)/../third-party/libevent-1.0b||g" ${worksrcpath}/asn/Makefile
      system "touch ${worksrcpath}/sub.macros"
      }

      post-build {
      system "cd ${worksrcpath}/asn && ${build.cmd}"
      }

      post-destroot {
      xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
      xinstall -m 0644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}/README

      file rename ${worksrcpath}/asn/asn ${worksrcpath}/asn/asn1
      system "cd ${worksrcpath}/asn && ${build.cmd} install ${build.target} DESTDIR=${destroot}"
      }

      platform darwin 9 {
      post-patch {
      reinplace "s|setpgrp|setpgid|g" ${worksrcpath}/tsec.c
      }
      }

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/blackbag
      % sudo port install blackbag
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching blackbag
      ---> Verifying checksum for blackbag
      ---> Extracting blackbag
      ---> Configuring blackbag
      ---> Building blackbag with target all
      ---> Staging blackbag into destroot
      ---> Installing blackbag
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using blackbag with these commands:
      %  man blackbag
      % apropos blackbag
      % which blackbag
      % locate blackbag

     Where to find more information:

    Darwin Ports



    image test