Skip to content

Commit 7d5d29c

Browse files
committed
新增 LibcSearcher 和 LibcSearcher_ng 安装函数,并在工具安装流程中调用
1 parent aaaa729 commit 7d5d29c

File tree

1 file changed

+40
-2
lines changed

1 file changed

+40
-2
lines changed

f8x-ctf

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ fi
1212

1313
. /usr/local/bin/f8x > /dev/null 2>&1
1414

15-
F8x_ctf_Version="0.1.3 Dev(2025/09/01)"
15+
F8x_ctf_Version="0.1.3 Dev(2025/09/02)"
1616

1717
# ===================== Software version variable setting =====================
1818

@@ -901,6 +901,40 @@ CTF_PWN_patchelf_install(){
901901

902902
}
903903

904+
CTF_PWN_LibcSearcher_install(){
905+
906+
name="LibcSearcher"
907+
dir="$P_Dir/LibcSearcher"
908+
909+
if test -d $dir
910+
then
911+
Echo_ALERT "$name is already download in $dir"
912+
else
913+
cd $P_Dir && $Proxy_OK git clone --depth 1 https://github.com/lieanu/LibcSearcher.git > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name in the $dir" || Echo_ERROR3
914+
cd $dir && chmod +x setup.py && python setup.py develop
915+
cd $dir && chmod +x setup.py && python3 setup.py develop
916+
ln -sf "$P_Dir/libc-database" $dir
917+
fi
918+
919+
}
920+
921+
CTF_PWN_LibcSearcher_ng_install(){
922+
923+
name="LibcSearcher_ng"
924+
dir="$P_Dir/LibcSearcher_ng"
925+
926+
if test -d $dir
927+
then
928+
Echo_ALERT "$name is already download in $dir"
929+
else
930+
cd $P_Dir && $Proxy_OK git clone --depth 1 https://github.com/No-Github/LibcSearcher.git LibcSearcher_ng > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name in the $dir" || Echo_ERROR3
931+
cd $dir && chmod +x setup.py && python setup.py develop
932+
cd $dir && chmod +x setup.py && python3 setup.py develop
933+
# ln -sf "$P_Dir/libc-database" $dir
934+
fi
935+
936+
}
937+
904938
CTF_PWN_LibcSearcher_plus_install(){
905939

906940
name="LibcSearcher_plus"
@@ -912,7 +946,7 @@ CTF_PWN_LibcSearcher_plus_install(){
912946
else
913947
cd $P_Dir && $Proxy_OK git clone --depth 1 https://github.com/lexsd6/LibcSearcher_plus.git > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name in the $dir" || Echo_ERROR3
914948
cd $dir && chmod +x setup.py && python3 setup.py develop
915-
# ln -sf "$P_Dir/libc-database" /pentest/libc-database
949+
ln -sf "$P_Dir/libc-database" $dir
916950
fi
917951

918952
}
@@ -1128,6 +1162,10 @@ CTF_PWN_tools(){
11281162
CTF_PWN_glibc-all-in-one_install
11291163
echo -e "\033[1;33m\n>> Installing patchelf\n\033[0m"
11301164
CTF_PWN_patchelf_install
1165+
echo -e "\033[1;33m\n>> Installing LibcSearcher\n\033[0m"
1166+
CTF_PWN_LibcSearcher_install
1167+
echo -e "\033[1;33m\n>> Installing LibcSearcher-ng\n\033[0m"
1168+
CTF_PWN_LibcSearcher-ng_install
11311169
echo -e "\033[1;33m\n>> Installing LibcSearcher_plus\n\033[0m"
11321170
CTF_PWN_LibcSearcher_plus_install
11331171
echo -e "\033[1;33m\n>> Installing libc-database\n\033[0m"

0 commit comments

Comments
 (0)