guelfoweb / knock

Knock Subdomain Scan
GNU General Public License v3.0
3.85k stars 854 forks source link

string index out of range #91

Open AlphaLabs2302 opened 3 years ago

AlphaLabs2302 commented 3 years ago

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

superboy-zjc commented 3 years ago

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

locklocklock commented 3 years ago

same issue!

locklocklock commented 3 years ago

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
superboy-zjc commented 3 years ago

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

谢谢! :)

5kyw41k3r commented 3 years ago

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