six2dez / reconftw

reconFTW is a tool designed to perform automated recon on a target domain by running the best set of tools to perform scanning and finding out vulnerabilities
MIT License
5.59k stars 910 forks source link

Can not run on Mac. #450

Closed sitanshuforever closed 2 years ago

sitanshuforever commented 2 years ago

Describe the bug After installing all the tools and dependencies via install.sh, when i am trying to run reconftw.sh file, its showing only usage description only no matter what switches/options i give.

To Reproduce Steps to reproduce the behavior: (MAC osx Monterey 12.1)

  1. clone the repo
  2. run install.sh
  3. run reconftw.sh with any option/mode: ( ./reconftw.sh -d domain.tld -p)
  4. Only usage example comes on screen

Screenshots If applicable, add screenshots to help explain your problem.

image image

Desktop (please complete the following information):

bileltechno commented 2 years ago

Try the dev branch.

sitanshuforever commented 2 years ago

same issue..

six2dez commented 2 years ago

You have to reinstall and run again under dev branch, not just changing the branch

sitanshuforever commented 2 years ago

Here is what I did. Let me know if i did something wrong. I removed the reconftw with rm -rf then cloned it using git clone https://github.com/six2dez/reconftw -b dev then ran ./install.sh here. installation went smooth then again i tried to run commands with -d example.com and getting the same issue.

six2dez commented 2 years ago

Hey! Can you check again with main branch?

hhls commented 2 years ago

macOS big sur 11.2.1 After the installation is completed, the execution still prompts that the installation was not successful The master branch is the same as the dev branch

~/Documents/gitsave/reconftw dev* ❯ sudo ./install.sh Password:

####################################################################### reconFTW installer/updater script

This may take time. So, go grab a coffee!

Running: Looking for new reconFTW version

reconFTW is already up to date!

Running: Installing system packages

brew is already installed

Running: Installing/Updating Golang

Golang is already installed and updated

Running: Installing requirements

Running: Installing Golang tools (31)

puredns installed (1/31) waybackurls installed (2/31) interactsh-client installed (3/31) nuclei installed (4/31) analyticsrelationships installed (5/31) dnsx installed (6/31) dalfox installed (7/31) cf-check installed (8/31) roboxtractor installed (9/31) gau installed (10/31) Gxss installed (11/31) mapcidr installed (12/31) qsreplace installed (13/31) notify installed (14/31) gotator installed (15/31) cero installed (16/31) gospider installed (17/31) clouddetect installed (18/31) crlfuzz installed (19/31) resolveDomains installed (20/31) httpx installed (21/31) gowitness installed (22/31) ffuf installed (23/31) subjs installed (24/31) github-endpoints installed (25/31) unfurl installed (26/31) anew installed (27/31) gf installed (28/31) Amass installed (29/31) github-subdomains installed (30/31) dnstake installed (31/31)

Running: Installing repositories (23)

dnsvalidator installed (1/23) wafw00f installed (2/23) ultimate-nmap-parser installed (3/23) Corsy installed (4/23) dnsrecon installed (5/23) CMSeeK installed (6/23) brutespray installed (7/23) JSA installed (8/23) GitDorker installed (9/23) LinkFinder installed (10/23) uDork installed (11/23) pydictor installed (12/23) cloud_enum installed (13/23) testssl installed (14/23) Interlace installed (15/23) Oralyzer installed (16/23) ctfr installed (17/23) fav-up installed (18/23) massdns installed (19/23) gf installed (20/23) commix installed (21/23) pwndb installed (22/23) Gf-Patterns installed (23/23) mv: rename unimap-osx to /usr/local/bin/unimap: No such file or directory chmod: /usr/local/bin/unimap: No such file or directory chmod: /usr/local/bin/ppfuzz: No such file or directory

Running: Downloading required files

chmod: /Users/wangxd/Tools/axiom_config.sh: No such file or directory Running: Performing last configurations

Remember set your api keys:

#######################################################################

~/Documents/gitsave/reconftw dev* 13m 28s ❯ ./reconftw.sh -d baidu.com -r

██▀███ ▓█████ ▄████▄ ▒█████ ███▄ █ █████▒▄▄▄█████▓ █ █░ ▓██ ▒ ██▒▓█ ▀ ▒██▀ ▀█ ▒██▒ ██▒ ██ ▀█ █ ▓██ ▒ ▓ ██▒ ▓▒▓█░ █ ░█░ ▓██ ░▄█ ▒▒███ ▒▓█ ▄ ▒██░ ██▒▓██ ▀█ ██▒▒████ ░ ▒ ▓██░ ▒░▒█░ █ ░█ ▒██▀▀█▄ ▒▓█ ▄ ▒▓▓▄ ▄██▒▒██ ██░▓██▒ ▐▌██▒░▓█▒ ░ ░ ▓██▓ ░ ░█░ █ ░█ ░██▓ ▒██▒░▒████▒▒ ▓███▀ ░░ ████▓▒░▒██░ ▓██░░▒█░ ▒██▒ ░ ░░██▒██▓ ░ ▒▓ ░▒▓░░░ ▒░ ░░ ░▒ ▒ ░░ ▒░▒░▒░ ░ ▒░ ▒ ▒ ▒ ░ ▒ ░░ ░ ▓░▒ ▒ ░▒ ░ ▒░ ░ ░ ░ ░ ▒ ░ ▒ ▒░ ░ ░░ ░ ▒░ ░ ░ ▒ ░ ░ ░░ ░ ░ ░ ░ ░ ░ ▒ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░░ ░ ░ ░ ░ ░ ░ dev-v2.1.4-32-g38c1a4c by @six2dez

Unable to check updates

Usage: ./reconftw.sh [-d domain.tld] [-m name] [-l list.txt] [-x oos.txt] [-i in.txt] [-r] [-s] [-p] [-a] [-w] [-n] [-i] [-h] [-f] [--deep] [-o OUTPUT]

TARGET OPTIONS -d domain.tld Target domain -m company Target company name -l list.txt Targets list, one per line -x oos.txt Exclude subdomains list (Out Of Scope) -i in.txt Include subdomains list

MODE OPTIONS -r, --recon Recon - Full recon process (only recon without attacks) -s, --subdomains Subdomains - Search subdomains, check tko and web probe -p, --passive Passive - Performs only passive steps -a, --all All - Perform all checks and exploitations -w, --web Web - Just web checks from list provided -n, --osint OSINT - Just checks public intel info -h Help - Show this help

GENERAL OPTIONS --deep Deep scan (Enable some slow options for deeper scan) -f confile_file Alternate reconftw.cfg file -o output/path Define output folder -v, --vps Axiom distributed VPS

USAGE EXAMPLES Recon: ./reconftw.sh -d example.com -r

Subdomain scanning with multiple targets: ./reconftw.sh -l targets.txt -s

Web scanning for subdomain list: ./reconftw.sh -d example.com -l targets.txt -w

Multidomain recon: ./reconftw.sh -m company -l domainlist.txt -r

Full recon with custom output and excluded subdomains list: ./reconftw.sh -d example.com -x out.txt -a -o custom/path

####################################################################### Checking installed tools

[] OneListForAll [NO] [] getjswords [NO] [] Massdns [NO] [] jq [NO] [] unimap [NO] [] emailfinder [NO] [] ppfuzz [NO] [] uro [NO] [*] bbrf [NO]

Try running the installer script again ./install.sh If it fails for any reason try to install manually the tools missed Finally remember to set the $tools variable at the start of this script If nothing works and the world is gonna end you can always ping me :D

Tools check finished #######################################################################

six2dez commented 2 years ago

Hi @hhls sorry but I will only give support for latest macOS versions (currently macOS 12.x)

sitanshuforever commented 2 years ago

Hey! Can you check again with main branch?

Tried just now. Still now working. Can i help with any kind of logs etc?

giany commented 2 years ago

Hey! Can you check again with main branch?

Tried just now. Still now working. Can i help with any kind of logs etc?

Run bash -x before the script..and paste the output.

sitanshuforever commented 2 years ago

Hey! Can you check again with main branch?

Tried just now. Still now working. Can i help with any kind of logs etc?

Run bash -x before the script..and paste the output.

Here is the result.

`RedmePro:reconftw chief$ bash -x reconftw.sh -d example.com

#######################################################################

chilik commented 2 years ago

@sitanshuforever @six2dez I have fixed it to run on macOS, be sure to use homebrew and install the lynx, gnu-getopt and coreutils packages, then modify the script to the installation paths as such:

# macOS PATH initialization, thanks @0xtavian <3
if [[ "$OSTYPE" == "darwin"* ]]; then
    PATH="/opt/homebrew/opt/gnu-getopt/bin:$PATH"
    PATH="/opt/homebrew/opt/coreutils/libexec/gnubin:$PATH"
fi
BonkBink commented 2 years ago

I'm facing the same issue described. reconftw main-v2.3.2-10-g997bf10 MacBook Air M1, Monterey 12.3 And I've installed lynx, gnu-getopt and coreutils packages Any other idea what can be causing this?

six2dez commented 2 years ago

which is the value of $OSTYPE env var on your system?

BonkBink commented 2 years ago

It's darwin21.1.0 I've put at print line in the OS check block and it evaluates to true

# macOS PATH initialization, thanks @0xtavian <3
if [[ "$OSTYPE" == "darwin"* ]]; then
    printf "OS\n"
    printf "$OSTYPE\n"
    PATH="/usr/local/opt/gnu-getopt/bin:$PATH"
    PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"
fi
reconftw git:(main) ✗ ./reconftw.sh -d example.com -r
OS
darwin21.1.0

Thanks