From 17d276e060b9318f3ce2caf6cf52fd208efb9a82 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Wed, 16 Oct 2013 23:19:18 +0000 Subject: [PATCH] move dht_flood.py into tools. only reveal 3 bits passed the shared target prefix when doing obfuscated dht lookups --- src/kademlia/find_data.cpp | 2 +- dht_flood.py => tools/dht_flood.py | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename dht_flood.py => tools/dht_flood.py (100%) diff --git a/src/kademlia/find_data.cpp b/src/kademlia/find_data.cpp index 6ff97db02..22cd87636 100644 --- a/src/kademlia/find_data.cpp +++ b/src/kademlia/find_data.cpp @@ -300,7 +300,7 @@ bool obfuscated_get_peers::invoke(observer_ptr o) // now, obfuscate the bits past shared_prefix + 5 node_id obfuscated_target = generate_random_id(); - obfuscated_target >>= shared_prefix + 6; + obfuscated_target >>= shared_prefix + 3; obfuscated_target^= m_target; a["target"] = obfuscated_target.to_string(); diff --git a/dht_flood.py b/tools/dht_flood.py similarity index 100% rename from dht_flood.py rename to tools/dht_flood.py