I assume I am not the first one, however I have run into a challenge I can not resolve.
In order to understand the program better, I am trying to make a network scanner.
What I want to do is to scan 192.168.0.{1}, where {1} is 100 to 200 (this part I am succesfull).
What I also want to do is to increase a counter every time I get a response via ping, but the problem I run into is that result.setvar seems to create a string (as does RegEx), is this correct? I am unsuccesful in retrieving the integer (whole number) from that string (I am new to Python) and do a +1 to it.
The idea is to store the first hit (IP-number) in IP{var.nr}, so that if I later recall IP{3} I get the IP-nr that was the 3rd hit
Is there a workaround?
Hope someone can point me in the right direction