Seclist not being recursively copied into /usr/share/wordlist
7etsuo opened this issue · 1 comments
7etsuo commented
ptf/modules/password-recovery/seclist.py
Line 26 in 83ac359
ptf:(modules/password-recovery/seclist)>install
[*] Finished updating the tool located in:/pentest/password-recovery/dictionary/
[*] Running after commands for post installation requirements.
[*] Sending after command: cd /pentest/password-recovery/dictionary/
[*] Sending after command: cd ..
[*] Sending after command: if [ -d '/usr/share/wordlists/' ]; then cp -r SecLists/ /usr/share/wordlists/; fi;
cp: cannot stat 'SecLists/': No such file or directory
[*] Completed running after commands routine..
I made the following change, which works.
# COMMANDS TO RUN AFTER
AFTER_COMMANDS="cd {INSTALL_LOCATION}, cd ..,if [ -d '/usr/share/wordlists/' ]; then cp -r SecLists/ /usr/share/wordlists/; fi;"
# COMMANDS TO RUN AFTER
AFTER_COMMANDS="cd {INSTALL_LOCATION}, cd ..,if [ -d '/usr/share/wordlists/' ]; then cp -r . /usr/share/wordlists/; fi;"
change SecLists/ to .
7etsuo commented
This is working as intended.