knock icon indicating copy to clipboard operation
knock copied to clipboard

string index out of range

Open AlphaLabs2302 opened this issue 4 years ago • 5 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

AlphaLabs2302 avatar Jan 16 '21 09:01 AlphaLabs2302

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

superboy-zjc avatar Jan 25 '21 13:01 superboy-zjc

same issue!

locklocklock avatar Feb 01 '21 06:02 locklocklock

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

locklocklock avatar Feb 02 '21 06:02 locklocklock

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 avatar Feb 02 '21 07:02 superboy-zjc

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

5kyw41k3r avatar Mar 17 '21 05:03 5kyw41k3r