Skip to content

Commit fc21228

Browse files
committed
新增 glibc-all-in-one 和 patchelf 安装函数,并在工具安装流程中调用
1 parent 271d232 commit fc21228

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

f8x-ctf

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -854,6 +854,36 @@ CTF_PWN_one_gadget_install(){
854854

855855
}
856856

857+
CTF_PWN_glibc-all-in-one_install(){
858+
859+
name="glibc-all-in-one"
860+
dir="$P_Dir/glibc-all-in-one"
861+
862+
if test -d $dir
863+
then
864+
Echo_ALERT "$name is already download in $dir"
865+
else
866+
cd $P_Dir && $Proxy_OK git clone --depth 1 https://github.com/matrix1001/glibc-all-in-one.git > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name in the $dir" || Echo_ERROR3
867+
cd $dir
868+
python3 update_list
869+
fi
870+
871+
}
872+
873+
CTF_PWN_patchelf_install(){
874+
875+
name="patchelf"
876+
which patchelf > /dev/null 2>&1
877+
878+
if [ $? == 0 ]
879+
then
880+
Echo_ALERT "$name installed"
881+
else
882+
Install_Switch "patchelf"
883+
fi
884+
885+
}
886+
857887
one_gadget_install2(){
858888

859889
Echo_ERROR "one_gadget installation failed, try to reinstall one_gadget"
@@ -1035,6 +1065,10 @@ CTF_PWN_tools(){
10351065
CTF_PWN_peda-heap_install
10361066
echo -e "\033[1;33m\n>> Installing one_gadget\n\033[0m"
10371067
CTF_PWN_one_gadget_install
1068+
echo -e "\033[1;33m\n>> Installing glibc-all-in-one\n\033[0m"
1069+
CTF_PWN_glibc-all-in-one_install
1070+
echo -e "\033[1;33m\n>> Installing patchelf\n\033[0m"
1071+
CTF_PWN_patchelf_install
10381072

10391073
}
10401074

0 commit comments

Comments
 (0)