I took a quick look at the source and looks to be that there is an if/else where else is calling for a cast to list-type object (main.py lines 567 through 574) -- I'm assuming the conditional is faulting somewhere along the way and suspect that a compounding problem could be that this is a lab envrionment I'm running against.
Was able to run it by calling --skip-subcast ;; if everthing is looking good to you then it may just make sense to have a custom error report here instead of a crash? Like:
except TypeError: print('Subcast failed, try running with flag --skip-subcast') print(help) exit()
Traceback (most recent call last): File "/usr/local/bin/subrake", line 33, in <module> sys.exit(load_entry_point('subrake==3.3', 'console_scripts', 'subrake')()) File "/usr/local/lib/python3.10/dist-packages/subrake-3.3-py3.10.egg/subrake/__main__.py", line 586, in main TypeError: 'NoneType' object is not iterable
I took a quick look at the source and looks to be that there is an if/else where else is calling for a cast to list-type object (main.py lines 567 through 574) -- I'm assuming the conditional is faulting somewhere along the way and suspect that a compounding problem could be that this is a lab envrionment I'm running against.
Was able to run it by calling --skip-subcast ;; if everthing is looking good to you then it may just make sense to have a custom error report here instead of a crash? Like:
except TypeError: print('Subcast failed, try running with flag --skip-subcast') print(help) exit()
My original command:
subrake -d ironcorp.me -w /usr/share/wordlists/SecLists/Discovery/DNS/subdomains-top1million-5000.txt -o /root/ironcorp/scan_sub_doms.txt
The Crash Report:
Traceback (most recent call last): File "/usr/local/bin/subrake", line 33, in <module> sys.exit(load_entry_point('subrake==3.3', 'console_scripts', 'subrake')()) File "/usr/local/lib/python3.10/dist-packages/subrake-3.3-py3.10.egg/subrake/__main__.py", line 586, in main TypeError: 'NoneType' object is not iterable