# $Id$ PortSystem 1.0 name ophcrack version 3.6.0 categories security license GPL-2+ maintainers nomaintainer description Microsoft Windows password cracker long_description Ophcrack is a free Windows password cracker based on \ rainbow tables. It is a very efficient implementation \ of rainbow tables done by the inventors of the method. homepage http://ophcrack.sourceforge.net platforms darwin master_sites sourceforge use_bzip2 yes checksums ${distname}${extract.suffix} rmd160 9b1684bda4da361b841849ff4eabaab3b2de957d \ ${distname}${extract.suffix} sha256 79219baa03afd7e52bc6d365dd5a445bc73dfac2e88216e7b050ad7749191893 patchfiles configure.diff configure.args --disable-gui --disable-graph set hasMoreThan512MBofRAM 0 catch {set hasMoreThan512MBofRAM [expr [sysctl hw.memsize] >= 536870912]} post-extract { if {[variant_isset tables]} { set tables_dir ${destroot}${prefix}/share/${name}/tables if ${hasMoreThan512MBofRAM} { xinstall -m 755 -d ${tables_dir}/xp_free_fast system "unzip ${distpath}/tables_xp_free_fast.zip -d ${tables_dir}/xp_free_fast" } else { xinstall -m 755 -d ${tables_dir}/xp_free_small system "unzip ${distpath}/tables_xp_free_small.zip -d ${tables_dir}/xp_free_small" } xinstall -m 755 -d ${tables_dir}/vista_free system "unzip ${distpath}/tables_vista_free.zip -d ${tables_dir}/vista_free" } } destroot { if {[variant_isset gui]} { xinstall -m 755 -d ${destroot}${applications_dir} copy ${worksrcpath}/src/${name}.app ${destroot}${applications_dir} } else { xinstall -m 755 -d ${destroot}${prefix}/bin copy ${worksrcpath}/src/${name} ${destroot}${prefix}/bin } } notes " **************************************************** Visit http://ophcrack.sourceforge.net/tables.php to get rainbow tables. **************************************************** " post-activate { if {[variant_isset tables]} { notes-append " **************************************************** Free rainbow tables have been installed into ${prefix}/share/${name}/tables **************************************************** " } } variant gui description {Builds the GUI version instead of the CLI version, requires the qt4-mac port} { PortGroup qt4 1.0 configure.args-delete --disable-gui configure.args-append --with-libqt4=${qt_dir} } variant tables description {Installs the free rainbow tables for Windows XP and Vista (700+ MB)} { if ${hasMoreThan512MBofRAM} { distfiles-append tables_xp_free_fast.zip checksums-append tables_xp_free_fast.zip sha1 141b8be045055068e8bae6542d484fffdd452641 } else { distfiles-append tables_xp_free_small.zip checksums-append tables_xp_free_small.zip sha1 2933bc9e483f79966ee02569d3d91b4d0ecc5a8d } distfiles-append tables_vista_free.zip checksums-append tables_vista_free.zip sha1 31425c6b35679df53ba67cb1cc3807501eec3ced extract.only ${distname}${extract.suffix} patchfiles-append patch-src-gui-tabledialog.cpp.diff post-patch { reinplace "s|@TABLES_DIR@|${prefix}/share/${name}/tables|g" ${worksrcpath}/src/gui/tabledialog.cpp } } livecheck.type regex livecheck.url ${homepage}/download.php?type=ophcrack livecheck.regex The latest version of ophcrack is (\\d(\\.\\d+)*)