guelfoweb / knock

Knock Subdomain Scan

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

string index out of range

AlphaLabs2302 opened this issue · comments

Traceback (most recent call last):
File "knockpy.py", line 384, in
main()
File "knockpy.py", line 326, in main
print_output(subdomain_resolve)
File "knockpy.py", line 92, in print_output
subdomain_csv_list.append(ip_alias+','+str(data['status'])+','+'alias'+','+str(alias)+','+escape_csv(str(server_type)))
File "knockpy.py", line 75, in escape_csv
if user_generated_string[0] in ('@','+','-', '='):
IndexError: string index out of range

commented

hi bro, I have the same error as you. Have you found a fix for it?

commented

same issue!

commented

hi bro, I have the same error as you. Have you found a fix for it?

I have tried this method to solve the issue and it works!

  1. Go to line 75 of knockpy.py and replace "user_generated_string[0]" to "user_generated_string"
  2. Back to "knock" directory and execute "python setup.py install"
  3. finished
commented

hi bro, I have the same error as you. Have you found a fix for it?

I have tried this method to solve the issue and it works!

  1. Go to line 75 of knockpy.py and replace "user_generated_string[0]" to "user_generated_string"
  2. Back to "knock" directory and execute "python setup.py install"
  3. finished

谢谢! :)

hi bro, I have the same error as you. Have you found a fix for it?

I have tried this method to solve the issue and it works!

  1. Go to line 75 of knockpy.py and replace "user_generated_string[0]" to "user_generated_string"
  2. Back to "knock" directory and execute "python setup.py install"
  3. finished

Thanks mate