-
Notifications
You must be signed in to change notification settings - Fork 284
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
136 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ Proxy_URL="https://cdn.ffffffff0x.com/?durl=https://codeload.github.com/rofl0r/p | |
Porxy_OK= | ||
Docker_OK= | ||
error=0 | ||
F8x_Version="1.5.0 Dev(Beta 2)" | ||
F8x_Version="1.5.0 Dev(Beta 3)" | ||
|
||
# ===================== 软件版本变量设置 ===================== | ||
jdk_Version="jdk1.8.0_271" | ||
|
@@ -50,8 +50,8 @@ ksubdomain_Install="ksubdomain_linux.zip" | |
Go_Bin=go1.15.6.linux-amd64.tar.gz | ||
xray_Ver="1.7.1" | ||
xray_File="xray_linux_amd64.zip" | ||
goby_Ver="Beta1.8.230" | ||
goby_File="goby-linux-x64-1.8.230.zip" | ||
goby_Ver="Beta1.8.239" | ||
goby_File="goby-linux-x64-1.8.239.zip" | ||
fscan_Ver="1.5.1" | ||
fscan_Install="fscan_amd64" | ||
ffuf_Ver="v1.2.1" | ||
|
@@ -66,8 +66,8 @@ CrossC2_Ver="v2.2.1" | |
node_Ver="v14.16.0" | ||
node_bin="node-v14.16.0-linux-x64.tar.xz" | ||
node_Dir="node-v14.16.0-linux-x64" | ||
Girsh_Ver="v0.26" | ||
Girsh_bin="Girsh-v0.26-linux-amd64.tar.gz" | ||
Girsh_Ver="v0.27" | ||
Girsh_bin="Girsh-v0.27-linux-amd64.tar.gz" | ||
bettercap_Ver="v2.30.2" | ||
bettercap_bin="bettercap_linux_amd64_v2.30.2.zip" | ||
mitmproxy_Ver="6.0.2" | ||
|
@@ -81,10 +81,10 @@ fzf_Ver="0.27.0" | |
fzf_bin="fzf-0.27.0-linux_amd64.tar.gz" | ||
subfinder_Ver="v2.4.7" | ||
subfinder_bin="subfinder_2.4.7_linux_amd64.tar.gz" | ||
httpx_Ver="v1.0.4" | ||
httpx_bin="httpx_1.0.4_linux_amd64.tar.gz" | ||
mapcidr_Ver="v0.0.5" | ||
mapcidr_bin="mapcidr_0.0.5_linux_amd64.tar.gz" | ||
httpx_Ver="v1.0.5" | ||
httpx_bin="httpx_1.0.5_linux_amd64.tar.gz" | ||
mapcidr_Ver="v0.0.6" | ||
mapcidr_bin="mapcidr_0.0.6_linux_amd64.tar.gz" | ||
apktool_Ver="v2.5.0" | ||
apktool_bin="apktool_2.5.0.jar" | ||
gau_Ver="v1.1.0" | ||
|
@@ -1230,28 +1230,35 @@ Base_Tools(){ | |
# ===================== 安装开发环境依赖 ===================== | ||
Dev_Base_Install(){ | ||
|
||
echo -e "\033[1;33m\n>> 正在安装开发环境依赖\n\033[0m" | ||
if test -e /tmp/f8x_Dev_Base.txt | ||
then | ||
Echo_ALERT "检测到依赖安装记录,跳过此步骤" | ||
else | ||
echo -e "\033[1;33m\n>> 正在安装开发环境依赖\n\033[0m" | ||
|
||
Rm_Lock | ||
Install_Switch "yara" | ||
Install_Switch "tree" | ||
Install_Switch "tcpdump" | ||
case $Linux_Version in | ||
*"CentOS"*|*"RedHat"*|*"Fedora"*) | ||
yum groupinstall -y "Development Tools" 1> /dev/null 2>> /tmp/f8x_error.log && Echo_INFOR "已安装 Development Tools" || Echo_ERROR "安装 Development Tools 失败,请查看日志 /tmp/f8x_error.log" | ||
;; | ||
*"Kali"*|*"Ubuntu"*|*"Debian"*) | ||
Install_Switch "software-properties-common" | ||
Install_Switch "build-essential" | ||
Install_Switch "xfonts-intl-chinese" | ||
Install_Switch "ttf-wqy-microhei" | ||
Install_Switch "ttf-wqy-zenhei" | ||
Install_Switch "xfonts-wqy" | ||
Install_Switch "nethogs" | ||
;; | ||
*) | ||
;; | ||
esac | ||
Rm_Lock | ||
Install_Switch "yara" | ||
Install_Switch "tree" | ||
Install_Switch "tcpdump" | ||
case $Linux_Version in | ||
*"CentOS"*|*"RedHat"*|*"Fedora"*) | ||
yum groupinstall -y "Development Tools" 1> /dev/null 2>> /tmp/f8x_error.log && Echo_INFOR "已安装 Development Tools" || Echo_ERROR "安装 Development Tools 失败,请查看日志 /tmp/f8x_error.log" | ||
;; | ||
*"Kali"*|*"Ubuntu"*|*"Debian"*) | ||
Install_Switch "software-properties-common" | ||
Install_Switch "build-essential" | ||
Install_Switch "xfonts-intl-chinese" | ||
Install_Switch "ttf-wqy-microhei" | ||
Install_Switch "ttf-wqy-zenhei" | ||
Install_Switch "xfonts-wqy" | ||
Install_Switch "nethogs" | ||
;; | ||
*) | ||
;; | ||
esac | ||
|
||
touch /tmp/f8x_Dev_Base.txt 1> /dev/null 2>> /tmp/f8x_error.log | ||
fi | ||
|
||
} | ||
|
||
|
@@ -1520,61 +1527,74 @@ Pentest_Dic_Install(){ | |
# ===================== 安装渗透杂项工具 ===================== | ||
Pentest_Misc_Install(){ | ||
|
||
Rm_Lock | ||
Install_Switch "parallel" | ||
Install_Switch "gdb" | ||
Install_Switch "rlwrap" | ||
case $Linux_Version in | ||
*"Kali"*|*"Ubuntu"*|*"Debian"*) | ||
Install_Switch "foremost" | ||
Install_Switch "btscanner" | ||
Install_Switch "rarcrack" | ||
Install_Switch "xdot" | ||
;; | ||
*) ;; | ||
esac | ||
if test -e /tmp/f8x_misc.txt | ||
then | ||
Echo_ALERT "检测到工具安装记录,跳过此步骤" | ||
else | ||
Rm_Lock | ||
Install_Switch "parallel" | ||
Install_Switch "gdb" | ||
Install_Switch "rlwrap" | ||
case $Linux_Version in | ||
*"Kali"*|*"Ubuntu"*|*"Debian"*) | ||
Install_Switch "foremost" | ||
Install_Switch "btscanner" | ||
Install_Switch "rarcrack" | ||
Install_Switch "xdot" | ||
;; | ||
*) ;; | ||
esac | ||
|
||
case $Linux_Version in | ||
*"Kali"*) | ||
Install_Switch "owasp-mantra-ff" | ||
Install_Switch "powershell" | ||
case $Linux_Version in | ||
*"Kali"*) | ||
Install_Switch "owasp-mantra-ff" | ||
Install_Switch "powershell" | ||
|
||
if [ $GitPorxy == ] 2>> /tmp/f8x_error.log | ||
then | ||
$Porxy_OK gem install zsteg 1> /dev/null 2>> /tmp/f8x_error.log && Echo_INFOR "已安装 zsteg 工具" || Echo_ERROR "调用 gem 安装 zsteg 工具失败! 请运行 -ruby 选项安装 Ruby 环境" | ||
fi | ||
if [ $GitPorxy == ] 2>> /tmp/f8x_error.log | ||
then | ||
$Porxy_OK gem install zsteg 1> /dev/null 2>> /tmp/f8x_error.log && Echo_INFOR "已安装 zsteg 工具" || Echo_ERROR "调用 gem 安装 zsteg 工具失败! 请运行 -ruby 选项安装 Ruby 环境" | ||
fi | ||
|
||
;; | ||
*) ;; | ||
esac | ||
;; | ||
*) ;; | ||
esac | ||
|
||
touch /tmp/f8x_misc.txt 1> /dev/null 2>> /tmp/f8x_error.log | ||
fi | ||
|
||
} | ||
|
||
# ===================== 安装渗透 pip 模块 ===================== | ||
Pentest_pip_Install(){ | ||
|
||
python3 -m pip install --upgrade pip 1> /dev/null 2>> /tmp/f8x_error.log && Echo_INFOR "已更新 python3-pip 工具" || Echo_ERROR "更新 python3-pip 工具失败,请查看日志 /tmp/f8x_error.log" | ||
Install_Switch4 "PyJWT" | ||
Install_Switch4 "pyshark" | ||
Install_Switch4 "requests" | ||
Install_Switch4 "sqlparse" | ||
Install_Switch4 "threadpool" | ||
Install_Switch4 "urllib3" | ||
Install_Switch4 "lxml" | ||
Install_Switch4 "pyzbar" | ||
Install_Switch4 "bs4" | ||
Install_Switch4 "ftfy" | ||
Install_Switch4 "updog" | ||
Install_Switch4 "pefile" | ||
Install_Switch3 "yara" | ||
Install_Switch3 "pycrypto" | ||
Install_Switch3 "openpyxl" | ||
Install_Switch3 "ujson" | ||
Install_Switch3 "Crypto" | ||
Install_Switch3 "pycryptodome" | ||
Install_Switch3 "pytz" | ||
Install_Switch3 "Pillow" | ||
Install_Switch3 "pefile" | ||
if test -e /tmp/f8x_pip.txt | ||
then | ||
Echo_ALERT "检测到 pip 模块记录,跳过此步骤" | ||
else | ||
python3 -m pip install --upgrade pip 1> /dev/null 2>> /tmp/f8x_error.log && Echo_INFOR "已更新 python3-pip 工具" || Echo_ERROR "更新 python3-pip 工具失败,请查看日志 /tmp/f8x_error.log" | ||
Install_Switch4 "PyJWT" | ||
Install_Switch4 "pyshark" | ||
Install_Switch4 "requests" | ||
Install_Switch4 "sqlparse" | ||
Install_Switch4 "threadpool" | ||
Install_Switch4 "urllib3" | ||
Install_Switch4 "lxml" | ||
Install_Switch4 "pyzbar" | ||
Install_Switch4 "bs4" | ||
Install_Switch4 "ftfy" | ||
Install_Switch4 "updog" | ||
Install_Switch4 "pefile" | ||
Install_Switch3 "yara" | ||
Install_Switch3 "pycrypto" | ||
Install_Switch3 "openpyxl" | ||
Install_Switch3 "ujson" | ||
Install_Switch3 "Crypto" | ||
Install_Switch3 "pycryptodome" | ||
Install_Switch3 "pytz" | ||
Install_Switch3 "Pillow" | ||
Install_Switch3 "pefile" | ||
touch /tmp/f8x_pip.txt 1> /dev/null 2>> /tmp/f8x_error.log | ||
fi | ||
|
||
} | ||
|
||
|
@@ -2388,7 +2408,7 @@ Pentest_OpenRedireX_Install(){ | |
Echo_ALERT "$name 已下载在 $dir" | ||
else | ||
Install_Switch4 "aiohttp" | ||
cd $P_Dir && rm -rf OpenRedireX > /dev/null 2>&1 && $Porxy_OK git clone ${GitPorxy}https://github.com/devanshbatham/OpenRedireX.git > /dev/null 2>&1 && cd $dir || Echo_ERROR "$name 下载失败! 请检查 proxychains4 配置的代理服务器是否可用" | ||
cd $P_Dir && rm -rf OpenRedireX > /dev/null 2>&1 && $Porxy_OK git clone ${GitPorxy}https://github.com/No-Github/OpenRedireX.git > /dev/null 2>&1 && cd $dir || Echo_ERROR "$name 下载失败! 请检查 proxychains4 配置的代理服务器是否可用" | ||
python3 openredirex.py -h 1> /dev/null 2>> /tmp/f8x_error.log && Echo_INFOR "已安装 $name 在 $dir 目录下" || Echo_ERROR "$name 安装失败,请查看日志 /tmp/f8x_error.log" | ||
fi | ||
|
||
|
@@ -2479,6 +2499,22 @@ Pentest_CORScanner_Install(){ | |
|
||
} | ||
|
||
# ===================== 安装 swagger-exp 工具 ===================== | ||
Pentest_swagger-exp_Install(){ | ||
|
||
name="swagger-exp" | ||
dir="$P_Dir/swagger-exp" | ||
|
||
if test -d $dir | ||
then | ||
Echo_ALERT "$name 已下载在 $dir" | ||
else | ||
rm -rf $dir > /dev/null 2>&1 && $Porxy_OK git clone ${GitPorxy}https://github.com/lijiejie/swagger-exp.git $P_Dir/swagger-exp > /dev/null 2>&1 && Echo_INFOR "已下载 $name 工具" || Echo_ERROR "$name 工具下载失败! 请检查 proxychains4 配置的代理服务器是否可用" | ||
cd $dir && Echo_INFOR "已安装 $name 在 $dir 目录下" || Echo_ERROR "安装 $name 工具失败,请查看日志 /tmp/f8x_error.log" | ||
fi | ||
|
||
} | ||
|
||
# ===================== 安装 unyaffs 工具 ===================== | ||
unyaffs_Install(){ | ||
|
||
|
@@ -3347,7 +3383,7 @@ Goby_Install(){ | |
|
||
if test -d $P_Dir/goby | ||
then | ||
Echo_INFOR "Goby 已部署在 $P_Dir/goby下,直接输入 cd $P_Dir/goby/goby* && ./goby 即可使用" | ||
Echo_INFOR "Goby 已部署在 $P_Dir/goby下,直接输入 cd $P_Dir/goby/goby* && ./goby 即可使用(需要图形化界面)" | ||
else | ||
|
||
Rm_Lock | ||
|
@@ -3362,8 +3398,22 @@ Goby_Install(){ | |
esac | ||
|
||
Echo_ALERT "正在下载 Goby 安装包(120M),该步骤可能运行较长时间,请耐心等待" | ||
cd $P_Dir && mkdir -p $P_Dir/goby 1> /dev/null 2>> /tmp/f8x_error.log && $Porxy_OK wget ${GitPorxy}https://github.com/gobysec/Goby/releases/download/$goby_Ver/$goby_File > /dev/null 2>&1 || Echo_ERROR "$goby_File 下载失败! 请检查 proxychains4 配置的代理服务器是否可用" | ||
unzip $goby_File -d $P_Dir/goby 1> /dev/null 2>> /tmp/f8x_error.log && rm -rf $goby_File && Echo_INFOR "已部署 Goby $goby_Ver 在 $P_Dir/goby 目录下,直接输入 cd $P_Dir/goby/goby* && ./goby 即可使用" || Echo_ERROR "goby 部署失败,请查看日志 /tmp/f8x_error.log" | ||
#cd $P_Dir && mkdir -p $P_Dir/goby 1> /dev/null 2>> /tmp/f8x_error.log && $Porxy_OK wget ${GitPorxy}https://github.com/gobysec/Goby/releases/download/$goby_Ver/$goby_File > /dev/null 2>&1 || Echo_ERROR "$goby_File 下载失败! 请检查 proxychains4 配置的代理服务器是否可用" | ||
cd $P_Dir && mkdir -p $P_Dir/goby 1> /dev/null 2>> /tmp/f8x_error.log && wget https://cn.gobies.org/$goby_File > /dev/null 2>&1 || Echo_ERROR "$goby_File 下载失败! 请检查 proxychains4 配置的代理服务器是否可用" | ||
unzip $goby_File -d $P_Dir/goby 1> /dev/null 2>> /tmp/f8x_error.log && rm -rf $goby_File && Echo_INFOR "已部署 Goby $goby_Ver 在 $P_Dir/goby 目录下,直接输入 cd $P_Dir/goby/goby* && ./goby 即可使用(需要图形化界面)" || Echo_ERROR "goby 部署失败,请查看日志 /tmp/f8x_error.log" | ||
fi | ||
|
||
if test -d $P_Dir/goby | ||
then | ||
|
||
echo -e "\033[5;33m\n请设置服务端账号(特殊字符请在前面加反斜杠 \"\\\" 转义)\033[0m" && read -r input | ||
Goby_User=$input | ||
echo -e "\033[5;33m\n请设置服务端密码(特殊字符请在前面加反斜杠 \"\\\" 转义)\033[0m" && read -r input | ||
Goby_Pass=$input | ||
Echo_INFOR "请运行以下命令:\n\033[0m\033[1;32mcd $P_Dir/goby/goby*/golib && nohup ./goby-cmd-linux -apiauth $Goby_User:$Goby_Pass -mode api -bind 0.0.0.0:8361 & " | ||
|
||
else | ||
Echo_ERROR "未安装 Goby ,或不在指定路径" | ||
fi | ||
|
||
} | ||
|
@@ -3375,7 +3425,9 @@ awvs13_Install(){ | |
Docker_Install | ||
|
||
echo -e "\033[1;33m\n>> 正在部署 awvs13 环境\n\033[0m" | ||
docker pull secfa/docker-awvs && Echo_INFOR "已拉取最新版 awvs13 镜像, 请通过下列命令运行:\ndocker run -it -d -p 13443:3443 secfa/docker-awvs\n\n-awvs13 username: [email protected]\n-awvs13 password: Admin123\n-AWVS Version:13.0.200217097\n-browser access:https://127.0.0.1:13443/" || Echo_ERROR "部署 awvs13 环境失败,请查看日志 /tmp/f8x_error.log" | ||
docker pull secfa/docker-awvs && Echo_INFOR "已拉取最新版 awvs13 镜像, 请通过下列命令运行:\ndocker run -it -d -p 13443:3443 secfa/docker-awvs\n\n-awvs13 username: [email protected]\n-awvs13 password: Admin123\n-AWVS Version:13.0.200217097\n-browser access:https://127.0.0.1:13443/\n" || Echo_ERROR "部署 awvs13 环境失败,请查看日志 /tmp/f8x_error.log" | ||
|
||
Echo_INFOR "推荐使用该项目脚本增强配置 : https://github.com/test502git/awvs13_batch_py3" | ||
|
||
} | ||
|
||
|
@@ -4320,7 +4372,8 @@ kali_Tools(){ | |
Pentest_Diggy_Install | ||
echo -e "\033[1;33m\n>> 正在安装 CORScanner 工具\n\033[0m" | ||
Pentest_CORScanner_Install | ||
|
||
echo -e "\033[1;33m\n>> 正在安装 swagger-exp 工具\n\033[0m" | ||
Pentest_swagger-exp_Install | ||
|
||
} | ||
|
||
|
@@ -4430,7 +4483,7 @@ Help(){ | |
echo -e "\033[0;34m|- 使用\033[0m \033[1;34m-bypass\033[0m \033[0;34m选项部署 Bypass 环境 \033[0m" | ||
echo -e "\033[0;34m|- 使用\033[0m \033[1;34m-cs\033[0m \033[0;34m选项部署 CobaltStrike 4.1 环境 \033[0m" | ||
echo -e "\033[0;34m|- 使用\033[0m \033[1;34m-frp\033[0m \033[0;34m选项部署 frp 环境 \033[0m" | ||
echo -e "\033[0;34m|- 使用\033[0m \033[1;34m-goby\033[0m \033[0;34m选项部署 Goby 环境 \033[0m \033[1;33m(需要图形化环境)\033[0m" | ||
echo -e "\033[0;34m|- 使用\033[0m \033[1;34m-goby\033[0m \033[0;34m选项部署 Goby 环境 \033[0m \033[1;33m(客户端需要图形化环境,服务端不需要)\033[0m" | ||
echo -e "\033[0;34m|- 使用\033[0m \033[1;34m-nps\033[0m \033[0;34m选项部署 nps 环境 \033[0m" | ||
#echo -e "\033[0;34m|- 使用\033[0m \033[1;34m-poc\033[0m \033[0;34m选项部署 公开的 poc 库 \033[0m \033[1;33m(内容较多)\033[0m" | ||
echo -e "" | ||
|