!752 static double sleepTime = 10; // seconds concepts. concept IP { S ip; bool myIP, aware; long lastCheck, lastSeenAware; S computerID; new Set pastComputerIDs; } concept SuccessfulProxyContact { S proxy, target; long lastSuccess; S targetComputerID; } static L aware; p { conceptsAndBot(); Concepts in = new Concepts("#1006041").load(); // Information Gatherer aware = findConcepts(in, IP, aware := true); print("Aware computers I can see: " + struct(collect(aware, "ip"))); L unaware = findConcepts(in, IP, aware := false); print("Computers I could try to proxy-contact: " + struct(collect(unaware, "ip"))); for (IP ip : unaware) tryToContact(ip.ip); } svoid tryToContact(S target) { for (IP proxy : aware) pcall { print("Trying to contact " + target + " through " + proxy.ip); long time = now(); S answer = sendToPublicCommBotThroughProxy(proxy.ip, target, "test"); print(" Answer: " + answer); if (match("test", answer)) { print(" Success!!\n"); SuccessfulProxyContact contact = uniq(SuccessfulProxyContact, proxy := proxy.ip, +target); cset(contact, lastSuccess := time); answer = sendToPublicCommBotThroughProxy(proxy.ip, target, forward("Awareness", "get computer id")); S computerID = matchOK(answer); if (computerID != null) cset(contact, targetComputerID := computerID); break; } } }