File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff 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+
857887one_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
You can’t perform that action at this time.
0 commit comments