hahwul / mad-metasploit

Metasploit custom modules, plugins, resource script and.. awesome metasploit collection

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

patch script error on MacOS

hahwul opened this issue · comments

sudo ./mad-metasploit

[+] Sync Mad-Metasploit Modules/Plugins/Resource-Script to Metasploit-framework
[+] Metasploit-framewrk directory: /opt/metasploit-framework/embedded/framework/
    (set ./conf/config.rb)
[*] Update archive(Those that are not added as msf)? [y/N]
[*] Apply custom modules to msf? [Y/n]
 - Sync Custom Modules
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file target_file
       cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file ... target_directory
 - Auxiliary success..
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file target_file
       cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file ... target_directory
 - Exploits success..
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file target_file
       cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file ... target_directory
 - Posts success..
[*] Apply custom modules to msf? [Y/n]
 - Sync Custom Plugins
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file target_file
       cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file ... target_directory
 - Plugins success.
[!] Finish :)

Why?
macos cp options
(O) cp -r a b
(X) cp a b -r

sudo ./mad-metasploit
[+] Sync Mad-Metasploit Modules/Plugins/Resource-Script to Metasploit-framework
[+] Metasploit-framewrk directory: /opt/metasploit-framework/embedded/framework/
    (set ./conf/config.rb)
[*] Update archive(Those that are not added as msf)? [y/N]
[*] Apply custom modules to msf? [Y/n]
 - Sync Custom Modules
 - Auxiliary success..
 - Exploits success..
 - Posts success..
[*] Apply custom modules to msf? [Y/n]
 - Sync Custom Plugins
 - Plugins success.
[!] Finish :)