Giter Site home page Giter Site logo

ffffffff0x / f8x Goto Github PK

View Code? Open in Web Editor NEW
1.7K 26.0 269.0 1.35 MB

红/蓝队环境自动化部署工具 | Red/Blue team environment automation deployment tool

License: Apache License 2.0

Shell 99.36% PowerShell 0.64%
bash-script vps pentest-tool bash ffffffff0x shell linux ctf ctf-tools

f8x's Introduction


f8x

Red/Blue team environment automation deployment tool

StartOptionsExampleFAQLicense

English | 简体中文


Start

Download

  • Download via CF Workers [Recommend]

    • wget : wget -O f8x https://f8x.io/
    • curl : curl -o f8x https://f8x.io/
  • github raw

    • wget : wget -O f8x https://raw.githubusercontent.com/ffffffff0x/f8x/main/f8x
    • curl : curl -o f8x https://raw.githubusercontent.com/ffffffff0x/f8x/main/f8x

Subsequent releases will not be updated, so it is recommended not to download old versions of f8x from releases.

usage

bash f8x -h

Recommended to add to environment variables

  • wget : wget -O f8x https://f8x.io/ && mv --force f8x /usr/local/bin/f8x && chmod +x /usr/local/bin/f8x
    • f8x -h
  • curl : curl -o f8x https://f8x.io/ && mv --force f8x /usr/local/bin/f8x && chmod +x /usr/local/bin/f8x
    • f8x -h

System Dependency

f8x basically doesn't need any dependencies, it is made to help you install various dependencies😁

f8x-ctf

This script is used to deploy CTF environments (Web、Misc、Crypto、Pwn、Iot)

  • wget : wget -O f8x-ctf https://f8x.io/ctf
    • bash f8x-ctf -help
  • curl : curl -o f8x-ctf https://f8x.io/ctf
    • bash f8x-ctf -help

f8x-dev

Deployment of middleware, database (apache、nginx、tomcat、Database、php)

  • wget : wget -O f8x-dev https://f8x.io/dev
    • bash f8x-dev -help
  • curl : curl -o f8x-dev https://f8x.io/dev
    • bash f8x-dev -help

Options

The following options are currently supported by f8x

Batch installation

  • -b : install Basic Environment (gcc、make、git、vim、telnet、jq、unzip and other basic tools)
  • -p : install Proxy Environment (Warning : Use only when needed)
  • -d : install Development Environment (python3、pip3、Go、Docker、Docker-Compose、SDKMAN)
  • -k (a/b/c/d/e): install Pentest environment (hashcat、ffuf、OneForAll、ksubdomain、impacket and other Pentest tools)
  • -s : install Blue Team Environment (Fail2Ban、chkrootkit、rkhunter、shellpub)
  • -f : install Other Tools (AdguardTeam、trash-cli、fzf)
  • -cloud : install Cloud Applications (Terraform、Serverless Framework、wrangler)
  • -all : fully automated deployment (Compatible with CentOS7/8,Debain10/9,Ubuntu20/18,Fedora33)

Development Environment

  • -docker : install docker
  • -lua : install lua
  • -nn : install npm & NodeJs
  • -go : install go
  • -oraclejdk(8/11): install oraclejdk
  • -openjdk : install openjdk
  • -py3(7/8/9/10) : install python3
  • -py2 : install python2
  • -pip2-f : force install pip2 (It is recommended to run with the -python2 option failing)
  • -perl : install perl
  • -ruby : install ruby
  • -rust : install rust
  • -code : install code-server
  • -chromium : install Chromium (Used with rad, crawlergo in the -k option)
  • -phantomjs : install PhantomJS

Blue Team Service

  • -binwalk : install binwalk
  • -binwalk-f : force install binwalk (It is recommended to run if the -binwalk option fails)
  • -clamav : install ClamAV
  • -lt : install LogonTracer (High hardware configuration requirements)
  • -suricata : install Suricata
  • -vol : install volatility
  • -vol3 : install volatility3

Red Team Service

  • -aircrack : install aircrack-ng
  • -bypass : install Bypass
  • -goby : install Goby (The client side requires a graphical environment, the server side does not.)
  • -wpscan : install wpscan
  • -yakit : install yakit

Red Team Infrastructure

Docker-based environment deployment

  • -arl : install ARL (~872 MB)
  • -mobsf : install MobSF (~1.54 GB)
  • -nodejsscan : install nodejsscan (~873 MB)
  • -vulhub : install vulhub (~210 MB)
  • -vulfocus : install vulfocus (~1.04 GB)
  • -TerraformGoat: install TerraformGoat

Miscellaneous Services

  • -asciinema : install asciinema
  • -bt : install 宝塔服务
  • -clash : install clash (https://github.com/juewuy/ShellClash)
  • -nginx : install nginx
  • -ssh : install ssh (RedHat is available by default, no need to reinstall)
  • -ssr : install ssr
  • -zsh : install zsh

Other

  • -clear : Clean up system usage traces
  • -info : View system information
  • -optimize : Improve device options and optimize performance
  • -remove : Uninstall some vps cloud monitoring
  • -rmlock : Run the Unlock module
  • -swap : Configuring swap partitions
  • -update : Update f8x
  • -upgrade : Upgrade Pentest tools

Example

-h View Help

-all Fully automated deployment

Take vultr vps as an example


CentOS 7


Debian 10


Fedora 33


Ubuntu 20.10


FAQ

What does the -p option do?

  1. Replace your DNS (default is 223.5.5.5)
  2. Check the base compilation environment
  3. Download Proxychains-ng, compile and install
  4. Modify the /etc/proxychains.conf file
  5. Modify the pip proxy to https://mirrors.aliyun.com/pypi/simple/
  6. Change the docker proxy to https://docker.mirrors.ustc.edu.cn , and restart the docker service

Want f8x to run in CI/CD, but not interactive?

Just create an empty file IS_CI in /tmp

touch /tmp/IS_CI
wget -O f8x https://f8x.io/ && mv --force f8x /usr/local/bin/f8x && chmod +x /usr/local/bin/f8x
f8x -k

License

Apache License 2.0


404StarLink 2.0 - Galaxy

f8x has joined 404Team 404StarLink 2.0 - Galaxy


create by ffffffff0x

f8x's People

Contributors

funnywolf avatar no-github avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

f8x's Issues

安装viper的问题

两个系统一个是centos stream 9 还有一个是centos8 都出现了
image
image
image

yum erase podman buildah卸载podaman
之后再安装docker CE:yum install -y docker-ce docker-ce-cli containerd.io 然后执行f8x -viper解决问题

awvs更新

首先热评: 好用!!!

今天试用了./f8x -awvs14

启动后提示:

image

并且这种状态下,登录后需要Activate License

看下SECFA / awvs的更新

最新更新:20240227
更新最新版本(24.1.240111130)
自 15.4.230222085 起需要新的启动命令参数 --cap-add LINUX_IMMUTABLE
自 23.11.231123131 Beta 通道开始不需要 LINUX_IMMUTABLE: docker run -it -d -p 13443:3443 secfa/docker-awvs:beta

可以修改为

docker run -it -d -p 13443:3443 secfa/docker-awvs:beta

docker run -it -d -p 13443:3443 --cap-add LINUX_IMMUTABLE secfa/docker-awvs

这两个标签拉取的都是最新版本。

安装ARL的一个小问题

image
安装完成后,在pentest这个目录下没有arl目录。当然可以docker run自己构建,哈哈哈

Ubuntu 22.04 support

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04 LTS"

Unknown version

使用vultr的vps安装时,报错如下:


| | / _ \ \ \ / /
| |
| (
) | \ V /
| __| > _ < > <
| | | (
) | / . \
|| _/ /__/ __\

13:05:24 [ERROR] - Unknown version

root@vultr:~#

组件更新

metasploit安装后提示postgresql selected, no connection

这是因为没有配置postgresql的问题。

期待作者后续能改进一下,既然自动装msf了,那依赖的数据库也不能落下了

遇到docker-compose安装不成功及手动安装过程

  • 安装docker-compose时遇到报错
    Could not find a version that satisfies the requirement docker[ssh]>=5 (from docker-compose) (from versions: 2.0.0, 2.0.1, 2.0.2, 2.1.0, 2.2.0, 2.2.1, 2.3.0, 2.4.0, 2.4.1, 2.4.2, 2.5.0, 2.5.1, 2.6.0, 2.6.1, 2.7.0, 3.0.0, 3.0.1, 3.1.0, 3.1.1, 3.1.2, 3.1.3, 3.1.4, 3.2.0, 3.2.1, 3.3.0, 3.4.0, 3.4.1, 3.5.0, 3.5.1, 3.6.0, 3.7.0, 3.7.1, 3.7.2, 3.7.3, 4.0.0, 4.0.1, 4.0.2, 4.1.0, 4.2.0, 4.2.1, 4.2.2, 4.3.0, 4.3.1, 4.4.0, 4.4.1, 4.4.2, 4.4.3, 4.4.4)
    No matching distribution found for docker[ssh]>=5 (from docker-compose)
  • 手动使用命令pip3 install --upgrade pip
  • 手动使用命令pip3 --trusted-host pypi.python.org install -U docker-compose
  • 安装docker-compose成功

感谢师傅提供的工具节省了很多时间

remove

how i remove a image installed with f8x

curl -o f8x https://f8x.io/   # wget -O f8x https://f8x.io/
bash f8x -viper

Viper安装

viper应该安装不上,因为在docker-compose.yml中写死了/root/viper,所以挂载不上/tmp/viper

依赖问题

1、f8x -nginx命令安装nginx的时候会报错无法安装,apt-get install zlib1g zlib1g.dev,安装这2个依赖在执行就可以了。
2、cs能不能换成4.2或者4.3

ls: cannot access '/.dockerenv': No such file or directory

我根据手册wget -O f8x https://f8x.io/ && mv --force f8x /usr/local/bin/f8x && chmod +x /usr/local/bin/f8x
下载后可以正常f8x -h

但尝试安装基本环境时无法进行下去了,提示缺少/.dockerenv

root@rack: ~# cat  /tmp/f8x_error.log
2022-03-22
ls: cannot access '/.dockerenv': No such file or directory
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem. 
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem. 
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem. 
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem. 
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem. 

请问是先要安装docker后才能使用本工具吗

我在该项目下搜索dockerenv,发现使用了Docker_run_Check()函数

如果是的话,还请说明这点

我当前环境是

User          : root 
Date          : 2022-03-22 
Time          : 07:13:20 
Runtime       : 3days 
Distribution  : Ubuntu 18.04 bionic linux-x86_64
f8x Version   : 1.6.1 Dev(Beta2) 

后续更改为未安装docker的centos服务器又可以使用了

User          : root 
Date          : 2022-03-22 
Time          : 15:18:07 
Runtime       : 64days 
Distribution  : CentOS 7  linux-x86_64
f8x Version   : 1.6.1 Dev(Beta2) 

自我判断:应该不依赖docker

首次安装的建议

f8x在下载有两种选择

  • 在github release
  • 在 jsdelivr cdn下载
    但是这两种下载都太长了,一般也记不住,f8x主脚本一共200多k,能不能部署在类似f8xf8x.xyz这种域名上,使用
wget https://f8xf8x.xyz/f8x

这种方式下载,这样就不用每次都访问一下github主页了.

pupy一些问题

  1. 以docker这种情况安装,会进入终端类似tmux这种终端不方便看长文字?(有解决方法吗?
  2. 可以在安装时候自定义多映射几个端口吗?

一键安装VIPER时遇到的问题

安装的时候会问我proxy,就是这个弹出来proxy的配置,我不懂如何是好啊,哪里都没找到说明,故来此问问,上图
8Q(1 6`9 V$60P~S96EE0XG

能否开源代码以便自行修改。

  1. 虽然f8x已经能满足大部分需求,但是部署后的一些细节配置(如 api,去特征),仍需手动配置,希望能开源代码,自行修改和补充

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.