allah gen

This commit is contained in:
2022-07-29 13:31:17 -04:00
parent 58d5351d68
commit e68e5afde7
3 changed files with 84 additions and 5 deletions
+4 -3
View File
@@ -37,13 +37,14 @@ proc hit(host: string) {.gcsafe.} =
proc main(): void {.thread.} =
while true:
var ip = GenerateIP()
var ping = status(ip)
var
ip = GenerateIP()
ping = status(ip)
if ping:
hit(ip)
discard
var cmd = os.execShellCmd("clear")
discard os.execShellCmd("clear")
var cLock: Lock
initLock(cLock)
var thread: Thread[void]