Skip to content

Commit 1618e00

Browse files
committed
新增 pyenv 安装选项,并在 CTF PWN 工具安装过程中调用
1 parent 1bcc165 commit 1618e00

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

f8x

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10221,6 +10221,7 @@ Help(){
1022110221
echo -e " \033[1;34m-py2\033[0m \033[0;34m : install python2\033[0m \033[1;33m(Based on package manager)\033[0m"
1022210222
echo -e " \033[1;34m-py2-f\033[0m \033[0;34m : force install python2\033[0m \033[1;33m(It is recommended to run with the -python2 option failing)\033[0m"
1022310223
echo -e " \033[1;34m-pip2-f\033[0m \033[0;34m : force install pip2\033[0m \033[1;33m(It is recommended to run with the -python2 option failing)\033[0m"
10224+
echo -e " \033[1;34m-pyenv\033[0m\033[0;34m : install pyenv\033[0m"
1022410225
echo -e " \033[1;34m-perl\033[0m \033[0;34m : install perl\033[0m"
1022510226
echo -e " \033[1;34m-ruby\033[0m \033[0;34m : install ruby\033[0m \033[1;33m(If that fails, try -ruby-f)\033[0m"
1022610227
echo -e " \033[1;34m-rust\033[0m \033[0;34m : install rust\033[0m"
@@ -10592,6 +10593,10 @@ do
1059210593
Base_Check
1059310594
pip2_Install
1059410595
;;
10596+
-pyenv)
10597+
mac_Check || exit 1
10598+
pyenv_Install
10599+
;;
1059510600
-perl)
1059610601
mac_Check || exit 1
1059710602
Proxy_Switch

f8x-ctf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -857,6 +857,7 @@ CTF_PWN_tools(){
857857
Rm_Lock
858858
echo -e "\033[1;33m\n>> Installing some misc tools\n\033[0m"
859859
CTF_PWN_install
860+
pyenv_Install
860861
echo -e "\033[1;33m\n>> Installing common py modules\n\033[0m"
861862
CTF_PWN_py3_module_install
862863
CTF_PWN_py2_module_install

0 commit comments

Comments
 (0)