Closed eaulakh closed 2 years ago
Hi, i would assume you used python2.7 and not python3.
It should work if you use:
# display used python version
python -V
# use python3 ; requirements might be installed as well for new environment
# pip3 install -r requirements.txt
python3 brutespray.py --file ~/recon//nmap/jio.gnmap -i --service ssh
The reason is that the input
function works differently for both python versions. Python2's input
also evaluates your input. Since no ssh variable is defined an error is thrown.
closing
Command used:- python brutespray.py --file ~/recon//nmap/jio.gnmap -i --service ssh
Welcome to interactive mode!
WARNING: Leaving an option blank will leave it empty and refer to default
Available services to brute-force: Service: ssh on port 22 with 2 hosts Service: postgres on port 5432 with 3 hosts
Enter services you want to brute - default all (ssh,ftp,etc): ssh Traceback (most recent call last): File "brutespray.py", line 424, in
interactive()
File "brutespray.py", line 90, in interactive
args.service = input('\n' + colors.lightblue + 'Enter services you want to brute - default all (ssh,ftp,etc): ' + colors.red)
File "", line 1, in
NameError: name 'ssh' is not defined
System type: ubuntu 18