13 | | long_description A framework for, ahem, testing software. |
| 11 | description Tools and information for security research and pentesting |
| 12 | long_description \ |
| 13 | The Metasploit Project goal is to provide useful information to people \ |
| 14 | who perform penetration testing, IDS signature development, and exploit \ |
| 15 | research. This framework was created to fill the gaps in the information \ |
| 16 | publicly available on various exploitation techniques and to create a \ |
| 17 | useful resource for exploit developers. The tools and information are \ |
| 18 | provided for legal security research and testing purposes only. |
27 | | configure {} |
28 | | build { |
29 | | foreach file [glob -directory ${worksrcpath} msf*] { |
30 | | reinplace "s|#!/usr/bin/perl|#!${prefix}/bin/perl|" $file |
31 | | } |
32 | | } |
33 | | destroot { |
34 | | set metasploitTargetDir "libexec/metasploit2" |
35 | | xinstall -d -m 755 ${destroot}/${prefix}/${metasploitTargetDir} |
36 | | foreach file [glob -directory ${workpath}/${worksrcdir} *] { |
37 | | file copy ${file} ${destroot}/${prefix}/${metasploitTargetDir} |
38 | | } |
39 | | cd ${destroot}/${prefix}/sbin |
40 | | foreach file [glob -directory ${destroot}/${prefix}/${metasploitTargetDir} msf*] { |
41 | | set useFile [file tail ${file}] |
42 | | ## 'file link' doesn't play nice, it doesn't (seem) to want to do relative paths... |
43 | | ## file link -symbolic ${useFile} ../${metasploitTargetDir}/${useFile} |
44 | | ## so use 'system "ln -s ..."' instead. |
45 | | system "ln -s ../${metasploitTargetDir}/${useFile} ${useFile}" |
46 | | } |
47 | | } |
| 33 | use_configure no |
51 | | # |
52 | | ##EOF |
| 44 | destroot { |
| 45 | set metasploitTargetDir "libexec/metasploit2" |
| 46 | set metasploitDestroot ${destroot}/${prefix}/${metasploitTargetDir} |
| 47 | |
| 48 | xinstall -d -m 755 ${metasploitDestroot} |
| 49 | foreach file [glob -directory ${worksrcpath} *] { |
| 50 | file copy ${file} ${metasploitDestroot} |
| 51 | } |
| 52 | |
| 53 | cd ${destroot}/${prefix}/sbin |
| 54 | foreach file [glob -directory ${metasploitDestroot} msf*] { |
| 55 | set useFile [file tail ${file}] |
| 56 | # 'file link' doesn't play nice, it doesn't (seem) to want to do relative paths... |
| 57 | # file link -symbolic ${useFile} ../${metasploitTargetDir}/${useFile} |
| 58 | # so use 'system "ln -s ..."' instead. |
| 59 | system "ln -s ../${metasploitTargetDir}/${useFile} ${useFile}" |
| 60 | } |
| 61 | } |