Delivery-Date: Sun, 06 Jul 2014 13:42:39 -0400
Return-Path: <tor-talk-bounces@lists.torproject.org>
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on moria.seul.org
X-Spam-Level: 
X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED,
	DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID
	autolearn=ham version=3.3.1
X-Original-To: archiver@seul.org
Delivered-To: archiver@seul.org
Received: from eugeni.torproject.org (eugeni.torproject.org [38.229.72.13])
	(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by khazad-dum.seul.org (Postfix) with ESMTPS id 700491E0938
	for <archiver@seul.org>; Sun,  6 Jul 2014 13:42:37 -0400 (EDT)
Received: from eugeni.torproject.org (localhost [127.0.0.1])
	by eugeni.torproject.org (Postfix) with ESMTP id 535C72E961;
	Sun,  6 Jul 2014 17:42:36 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by eugeni.torproject.org (Postfix) with ESMTP id 87BCD2D54C
 for <tor-talk@lists.torproject.org>; Sun,  6 Jul 2014 17:30:04 +0000 (UTC)
X-Virus-Scanned: Debian amavisd-new at eugeni.torproject.org
Received: from eugeni.torproject.org ([127.0.0.1])
 by localhost (eugeni.torproject.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id WhahjoyHrWdH for <tor-talk@lists.torproject.org>;
 Sun,  6 Jul 2014 17:30:04 +0000 (UTC)
Received: from mail-qc0-x236.google.com (mail-qc0-x236.google.com
 [IPv6:2607:f8b0:400d:c01::236])
 (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits))
 (Client CN "smtp.gmail.com",
 Issuer "Google Internet Authority G2" (not verified))
 by eugeni.torproject.org (Postfix) with ESMTPS id 607B02AA70
 for <tor-talk@lists.torproject.org>; Sun,  6 Jul 2014 17:30:04 +0000 (UTC)
Received: by mail-qc0-f182.google.com with SMTP id m20so2997366qcx.13
 for <tor-talk@lists.torproject.org>; Sun, 06 Jul 2014 10:30:01 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:in-reply-to:references:date:message-id:subject:from:to
 :cc:content-type;
 bh=biXJenjPo7xW6n3aGqidSABE3VXtguqaWB+cXEt0A9M=;
 b=mBsTpWcfUw+ZFstX8fjlmLH6iitZ1cLipcolVPLxYVJ8poQD/EniMm4mB+77SFMiAQ
 +sARZKbt9A3bKLUVQI3C6aR0j49Bdt595U8jJ+v+m0SwIO0YzBwKnXeTP6bIWLHeflgS
 XA5kXvcrsK95OtW9+CthBp77afXR8awyQ0mVj0DKpowz5eTgd4LaVYmOVfSBXBsZ8+nn
 7tdB+niAAVzKp4lMub/C+hGYQsaej8DH9E2+dPOgJlOQ1FdNelQDcFwdmXrC2RjzUGG8
 idW7TI3DdW6U2BauOmNPu88rSgpCRcJh9NPfFO+fwwVvY5u0tOpwXi3A6AjJ50q8fr0l
 u0Qw==
MIME-Version: 1.0
X-Received: by 10.140.48.45 with SMTP id n42mr38133134qga.107.1404667801389;
 Sun, 06 Jul 2014 10:30:01 -0700 (PDT)
Received: by 10.96.179.232 with HTTP; Sun, 6 Jul 2014 10:30:01 -0700 (PDT)
In-Reply-To: <CAJVRA1RVnA1kamSg=at=7kHsLD4EpnJKV0fyw4g9n6Ygs0p_Xg@mail.gmail.com>
References: <CAJVRA1RVnA1kamSg=at=7kHsLD4EpnJKV0fyw4g9n6Ygs0p_Xg@mail.gmail.com>
Date: Sun, 6 Jul 2014 19:30:01 +0200
Message-ID: <CAJVRA1SPoP4cOMjuZXbCBYRdgQ=8P2wrc31wsmfJiT6438FYHw@mail.gmail.com>
From: coderman <coderman@gmail.com>
To: tor-talk@lists.torproject.org
Cc: cpunks <cypherpunks@cpunks.org>,
 Liberation Technologies <liberationtech@lists.stanford.edu>
Subject: Re: [tor-talk] XKeyScore code authenticity - genuine [was: messing
	with XKeyScore]
X-BeenThere: tor-talk@lists.torproject.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: tor-talk@lists.torproject.org
List-Id: "all discussion about theory, design,
 and development of Onion Routing" <tor-talk.lists.torproject.org>
List-Unsubscribe: <https://lists.torproject.org/cgi-bin/mailman/options/tor-talk>, 
 <mailto:tor-talk-request@lists.torproject.org?subject=unsubscribe>
List-Archive: <http://lists.torproject.org/pipermail/tor-talk/>
List-Post: <mailto:tor-talk@lists.torproject.org>
List-Help: <mailto:tor-talk-request@lists.torproject.org?subject=help>
List-Subscribe: <https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-talk>, 
 <mailto:tor-talk-request@lists.torproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: tor-talk-bounces@lists.torproject.org
Sender: "tor-talk" <tor-talk-bounces@lists.torproject.org>

On Sun, Jul 6, 2014 at 7:11 PM, coderman <coderman@gmail.com> wrote:
> ...
> a regexp rule like:
> '''
> extractors: {{
>     bridges[] =
> /bridge\s([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}):?([0-9]{2,4}?[^0-9])/;
>   }}
> '''
> is both written by a novice regexp'er, and also took them a bit of
> time. more than they'd spend on an example.


i should have clarified this statement.  this is code someone wrote to
get a job done.  they are pulling bridge addresses out of text (email
bodies?) and getting a job done.

this is fine code and similar to what you'd see in any production environment.

this is not what a regexp guru would use to show their ability to
tightly match with sparse efficiency.

it is also not so simple that a non-PCRE fluent person would use it as
a fictitious example.


to be clear: all signs point to this being real code a person wrote to
get a job done - parse out bridge addresses from text.  the signs
point toward this code being legitimate depricated code, even if not
currently useful.

the code do not point toward this being a non-fictitious example, and
it seems Robert even alludes to as much with.
 "One interesting thing to note about the port number is that it
captures the first non-digit character after the number as well. This
is obvious[sic] a bug, but since it's usually whitespace, one that
doesn't impact the system."
 - implying he believes this is a legitimate rule, and also not
written by an expert.


best regards,
-- 
tor-talk mailing list - tor-talk@lists.torproject.org
To unsubscribe or change other settings go to
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-talk

