Featured image of post 在Ubuntu 22.04上安裝Autorecon

在Ubuntu 22.04上安裝Autorecon

Ubuntu 22.04 Autorecon Install

安裝

  1. 輸入以下指令

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    
    sudo apt install git -y 
    sudo apt install python3 -y
    sudo apt install python3-pip -y
    snap install feroxbuster
    cd ~
    wget -c https://github.com/danielmiessler/SecLists/archive/master.zip -O SecList.zip
    unzip SecList.zip
    rm -f SecList.zip
    sudo mv ./SecLists-master/ /usr/share/seclists/
    cd /usr/share/
    sudo git clone https://github.com/CiscoCXSecurity/enum4linux.git
    sudo nano /usr/bin/enum4linux
    
  2. /usr/bin/enum4linux被開啟後貼上以下並存檔

    1
    2
    3
    
    #!/bin/bash
    
    cd /usr/share/enum4linux/ && ./enum4linux.pl "$@"
    
  3. 繼續輸入已下指令

    1
    2
    3
    4
    5
    
    sudo chmod +x /usr/bin/enum4linux
    sudo apt install python3-impacket -y
    cd /usr/share/
    sudo git clone https://gitlab.com/kalilinux/packages/oscanner.git
    sudo nano /usr/bin/oscanner
    
  4. /usr/bin/oscanner被開啟後貼上以下並存檔

    1
    2
    
    #!/bin/bash
    cd /usr/share/oscanner/ && ./oscanner.sh "$@"
    
  5. 繼續輸入已下指令

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    
    sudo chmod +x /usr/bin/oscanner
    sudo apt-get install default-jre -y
    sudo wget http://www.red-database-security.com/scripts/tnscmd10g.pl.txt -O /usr/bin/tnscmd10g
    sudo chmod +x /usr/bin/tnscmd10g
    sudo apt install curl dnsrecon gobuster nbtscan nikto nmap onesixtyone redis-tools smbclient smbmap snmp sslscan sipvicious whatweb wkhtmltopdf -y
    sudo apt install python3-venv
    python3 -m pip install --user pipx
    python3 -m pipx ensurepath
    cd ~
    source .bashrc
    pipx install git+https://github.com/Tib3rius/AutoRecon.git
    
  6. 完成

後記 : sudo用法

以下方法二擇一即可

方法一

1
sudo env "PATH=$PATH" autorecon

方法二

1
sudo $(which autorecon)

參考

https://github.com/Tib3rius/AutoRecon

comments powered by Disqus
Built with Hugo
Theme Stack designed by Jimmy