Advertisement
Googleinurl

XKeyScore-rules

Jul 5th, 2014
1,133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 5.20 KB | None | 0 0
  1. ___________                __     _______     _________   _____  
  2. \_   _____/ __ __   ____  |  | __ \      \   /   _____/  /  _  \  
  3.  |    __)  |  |  \_/ ___\ |  |/ / /   |   \  \_____  \  /  /_\  \
  4.  |     \   |  |  /\  \___ |    < /    |    \ /        \/    |    \
  5.  \___  /   |____/  \___  >|__|_ \\____|__  //_______  /\____|__  /
  6.      \/                \/      \/        \/         \/         \/
  7.  
  8. ___________                __    ____  ___ __                                                            
  9. \_   _____/ __ __   ____  |  | __\   \/  /|  | __  ____   ___.__.  ______  ____    ____  _______   ____  
  10.  |    __)  |  |  \_/ ___\ |  |/ / \     / |  |/ /_/ __ \ <   |  | /  ___/_/ ___\  /  _ \ \_  __ \_/ __ \
  11.  |     \   |  |  /\  \___ |    <  /     \ |    < \  ___/  \___  | \___ \ \  \___ (  <_> ) |  | \/\  ___/
  12.  \___  /   |____/  \___  >|__|_ \/___/\  \|__|_ \ \___  > / ____|/____  > \___  > \____/  |__|    \___  >
  13.      \/                \/      \/      \_/     \/     \/  \/          \/      \/                      \/
  14.  
  15.   _________                                        _________              .___        
  16.  /   _____/  ____   __ __ _______   ____    ____   \_   ___ \   ____    __| _/  ____  
  17.  \_____  \  /  _ \ |  |  \\_  __ \_/ ___\ _/ __ \  /    \  \/  /  _ \  / __ | _/ __ \
  18.  /        \(  <_> )|  |  / |  | \/\  \___ \  ___/  \     \____(  <_> )/ /_/ | \  ___/
  19. /_______  / \____/ |____/  |__|    \___  > \___  >  \______  / \____/ \____ |  \___  >
  20.         \/                             \/      \/          \/              \/      \/
  21.  
  22.  
  23. #############################################################################
  24. #############################################################################
  25.  
  26. // START_DEFINITION
  27. /*
  28. The fingerprint  identifica sessões que visitam o site do Tor Project
  29. países non-fvey..
  30. */
  31. fingerprint('anonymizer/tor/torpoject_visit')=http_host('www.torproject.org')
  32. and not(xff_cc('US' OR 'GB' OR 'CA' OR 'AU' OR 'NZ'));
  33. // END_DEFINITION
  34.  
  35.  
  36. // START_DEFINITION
  37. /*
  38. Estas variáveis ​​definem termos e sites relacionados com as TAILs (The Amnesic
  39. Incognito Live System) software program, um mecanismo de COMSEC defendida por
  40. extremistas em fóruns extremistas.
  41. */
  42.  
  43. $TAILS_terms=word('tails' or 'Amnesiac Incognito Live System') and word('linux'
  44. or ' USB ' or ' CD ' or 'secure desktop' or ' IRC ' or 'truecrypt' or ' tor ');
  45. $TAILS_websites=('tails.boum.org/') or ('linuxjournal.com/content/linux*');
  46. // END_DEFINITION
  47.  
  48. // START_DEFINITION
  49. /*
  50. This fingerprint identifica os utilizadores que procuram TAILs (The Amnesic
  51. Incognito Live System) software program, visualização de documentos relacionados com TAILs,
  52. ou sites de visualização que detalham TAILs.
  53. */
  54. fingerprint('ct_mo/TAILS')=
  55. fingerprint('documents/comsec/tails_doc') or web_search($TAILS_terms) or
  56. url($TAILS_websites) or html_title($TAILS_websites);
  57. // END_DEFINITION
  58.  
  59.  
  60. // START_DEFINITION
  61. requer gramática versão 5
  62. /**
  63.  * Tor endereços de serviços agregados escondida visto em trânsito.
  64.  */
  65. mapreduce::plugin('anonymizer/tor/plugin/onion') =
  66.   immediate_keyword(/(?:([a-z]+):\/\/){0,1}([a-z2-7]{16})\.onion(?::(\d+)){0,1}/c : c++
  67.     includes: {{
  68.       #include <boost/lexical_cast.hpp>
  69.     }}
  70.     proto: {{
  71.       message onion_t {
  72.         required string address = 1;
  73.         optional string scheme = 2;
  74.         optional string port = 3;
  75.       }
  76.     }}
  77.     mapper<onion_t>: {{
  78.       static const std::string prefix = "anonymizer/tor/hiddenservice/address/";
  79.  
  80.       onion_t onion;
  81.       size_t matches = cur_args()->matches.size();
  82.       for (size_t pos=0; pos < matches; ++pos) {
  83.         const std::string &value = match(pos);
  84.         if (value.size() == 16)
  85.           onion.set_address(value);
  86.         else if(!onion.has_scheme())
  87.           onion.set_scheme(value);
  88.         else
  89.           onion.set_port(value);
  90.       }
  91.  
  92.       if (!onion.has_address())
  93.         return false;
  94.  
  95.       MAPPER.map(onion.address(), onion);
  96.       xks::fire_fingerprint(prefix + onion.address());
  97.       return true;
  98.     }}
  99.     reducer<onion_t>: {{
  100.       for (values_t::const_iterator iter = VALUES.begin();
  101.           iter != VALUES.end();
  102.           ++iter) {
  103.         DB["tor_onion_survey"]["onion_address"] = iter->address() + ".onion";
  104.         if (iter->has_scheme())
  105.           DB["tor_onion_survey"]["onion_scheme"] = iter->scheme();
  106.         if (iter->has_port())
  107.           DB["tor_onion_survey"]["onion_port"] = iter->port();
  108.         DB["tor_onion_survey"]["onion_count"] = boost::lexical_cast<std::string>(TOTAL_VALUE_COUNT);
  109.         DB.apply();
  110.         DB.clear();
  111.       }
  112.       return true;
  113.     }});
  114.  
  115. /*
  116.   *
  117.   * Espaço reservado para impressão digital Tor endereços serviço escondido.
  118.   * Fingerpritns reais serão disparados pelos plugins
  119.   * 'anonymizer/tor/plugin/onion/ *'
  120. */
  121. fingerprint('anonymizer/tor/hiddenservice/address') = nil;
  122. // END_DEFINITION
  123.  
  124.  
  125. // START_DEFINITION
  126. appid('anonymizer/mailer/mixminion', 3.0, viewer=$ascii_viewer) =
  127.         http_host('mixminion') or
  128.         ip('128.31.0.34');
  129. // END_DEFINITION
  130.  
  131. #############################################################################
  132. #############################################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement