[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

[QUIZ] Obfuscated Email

Matthew Moss

5/16/2008 3:24:00 PM

[Note: parts of this message were removed to make it a legal post.]

_If you want to ignore the introduction and just get to the task, skip down
to the last paragraph._

Ah, yes... I remember the good ol' days of Usenet, when the signal to noise
ratio was high, very high... certainly much higher than the 1-to-100 ratio
that is the curse of many newsgroups today.

Back then we had rules! And etiquette! And people felt compelled to adhere
to such rules, because... well, that was how things were done. For the most
part, we didn't have to deal with the unrestrained spam that now pervades
the Internet net like the lingering smell of boiled cabbage.

Where was I? ..... Oh yes, signatures! We had signatures for our posts and
email, restricted to a narrow space of no more than four lines and no wider
than the terminal. We'd put our names, email, phone... even funny quotes (or
angry, political quotes for those angry, political folks). But it always fit
within four terminal lines: never more.

But nowadays... What sane person would put his email address in his
signature file, out in plain view for spammers to see? It is folly, I say.
Insanity. Lunacy. I would sooner code in BASIC than publicly divulge my
email address to the world.

Now, I hear you say, "So, genius, how do you provide such information if not
in the signature?" Well, you are right to ask and also right to call me a
genius. Pay attention, and I shall reveal to you how such is accomplished
(best viewed in monospaced font):

x = ("swDlw ms > mMm.hh@ttaiog" + ## Matthew D Moss, 888-555-1234
"<.cMmssoottaaee").split(//); z = ## Department of Fine Ruby Studies
[""] * x.size; puts x.map {z = x. ## University of Wherever I Like
zip(z).sort }.last[9].join + "\n" ## "He that runs Ruby, runs well."

Do you see it? You don't, do you? Look again after I run this signature
through the Ruby interpreter:

Matthew D Moss <matthew.moss@gmail.com>

The silence suggests to me that you are stunned beyond words. I think you
are needing such a challenge...

For your task this week, I ask that you make your own signature such that
displays your email address when run through the Ruby interpreter. The
signature must fit within four lines of no more than 80 characters per line.
(If you still want to avoid outputting an email address, your script may
produce something else: a phone number, a funny quote, vCard, a poem to your
love, whatever...)

44 Answers

John

5/16/2008 7:23:00 PM

0

Google catches my spam for me.

Robert Dober

5/16/2008 7:33:00 PM

0

On Fri, May 16, 2008 at 9:25 PM, DJ Jazzy Linefeed
<john.d.perkins@gmail.com> wrote:
> Google catches my spam for me.
Optimism is the root of all evil ;) and BTW do you really want to keep
them *extra busy*.
This said, Google catches my spam pretty well too and thanks for that !
Robert
--
http://ruby-smalltalk.blo...

---
Whereof one cannot speak, thereof one must be silent.
Ludwig Wittgenstein

John

5/16/2008 8:04:00 PM

0

> Optimism is the root of all evil ;) and BTW do you really want to keep
> them *extra busy*.
> This said, Google catches my spam pretty well too and thanks for that !

Dude! It's not like they do it by hand or something. They have 15-
infinity 26 year old Python hackers working on every link in gmail.

But, I'm bored@work so... here's my response to the... 'task':


sig = "j|hn.d.perkins@gmail.c|m".gsub!('|', 'o')
puts sig if self == nostalgic_hacker
# => false

Robert Dober

5/16/2008 9:07:00 PM

0

On Fri, May 16, 2008 at 10:05 PM, DJ Jazzy Linefeed
<john.d.perkins@gmail.com> wrote:
>> Optimism is the root of all evil ;) and BTW do you really want to keep
>> them *extra busy*.
>> This said, Google catches my spam pretty well too and thanks for that !
>
> Dude! I
I do not approve of that kind of language and therefore do not read
the rest of your post.
If you really want to tell me something please kindly try again. If
you think that I am getting this wrong please do likewise.

Cheers
Robert


--
http://ruby-smalltalk.blo...

---
Whereof one cannot speak, thereof one must be silent.
Ludwig Wittgenstein

Phillip Gawlowski

5/16/2008 9:18:00 PM

0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

DJ Jazzy Linefeed wrote:
|> Optimism is the root of all evil ;) and BTW do you really want to keep
|> them *extra busy*.
|> This said, Google catches my spam pretty well too and thanks for that !
|
| Dude! It's not like they do it by hand or something. They have 15-
| infinity 26 year old Python hackers working on every link in gmail.
|
| But, I'm bored@work so... here's my response to the... 'task':

48h grace period, in which the Quiz gets discussed (if necessary) or
pulled (if Matthew didn't think things through :P), after which you can
post your solution.

- --
Phillip Gawlowski
Twitter: twitter.com/cynicalryan
Blog: http://justarubyist.bl...

Use library functions.
~ - The Elements of Programming Style (Kernighan & Plaugher)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail....

iEYEARECAAYFAkgt+hIACgkQbtAgaoJTgL848QCcCVFWWwQakPZuMLpV9xw3U4bE
mF8AnjRQP+j3nuMQTiaWXT4PltE/0Bft
=FAjb
-----END PGP SIGNATURE-----

Matthew Moss

5/16/2008 9:35:00 PM

0



On May 16, 2:25 pm, DJ Jazzy Linefeed <john.d.perk...@gmail.com>
wrote:
> Google catches my spam for me.

True. And it does for me as well.

But that's not the point. The quiz description was exaggeration,
satire even. I thought I had laid it on thick enough to be obvious,
especially considering that (a) security through obscurity is not at
all security, and (b) I just told spammers how to defeat this
technique: run the sig through Ruby.

Honestly, this is more an exercise in creative obfuscation and golfing.

Phillip Gawlowski

5/16/2008 9:39:00 PM

0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Matthew Moss wrote:
|
| On May 16, 2:25 pm, DJ Jazzy Linefeed <john.d.perk...@gmail.com>
| wrote:
|> Google catches my spam for me.
|
| True. And it does for me as well.

I get Russian spam. At least I think it is spam. ;)

| But that's not the point. The quiz description was exaggeration,
| satire even.

More dark humor, really.

| I thought I had laid it on thick enough to be obvious,
| especially considering that (a) security through obscurity is not at
| all security, and (b) I just told spammers how to defeat this
| technique: run the sig through Ruby.

On which I have a question: What do you mean by 'running it through the
interpreter'? Creatively using Ruby's feature to convert hex into ASCII,
for example?

- --
Phillip Gawlowski
Twitter: twitter.com/cynicalryan
Blog: http://justarubyist.bl...

Yugoslavian ceasefire [noun]:
Unit of time, roughly equal to the time it take to reload a gun.
~ -- "Ny Tid" (Norwegian Weekly).
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail....

iEUEARECAAYFAkgt/vYACgkQbtAgaoJTgL9IcACY8Ozm4klCTgw8yENPG22scHfT
ZACcDUUa9lCBCYmqn7utCa9arR8che4=
=+Aze
-----END PGP SIGNATURE-----

John

5/16/2008 10:05:00 PM

0


> I do not approve of that kind of language and therefore do not read
> the rest of your post.
> If you really want to tell me something please kindly try again. If
> you think that I am getting this wrong please do likewise.
>
> Cheers
> Robert
>
> --http://ruby-smalltalk.blo...
>
> ---
> Whereof one cannot speak, thereof one must be silent.
> Ludwig Wittgenstein

Yeah, wait whilst I rephrase everything I write to conform to what I
have to imagine you find acceptable. Please be joking.

Todd Benson

5/16/2008 11:32:00 PM

0

On Fri, May 16, 2008 at 4:39 PM, Phillip Gawlowski
<cmdjackryan@googlemail.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Matthew Moss wrote:
> |
> | On May 16, 2:25 pm, DJ Jazzy Linefeed <john.d.perk...@gmail.com>
> | wrote:
> |> Google catches my spam for me.
> |
> | True. And it does for me as well.
>
> I get Russian spam. At least I think it is spam. ;)

I have nightmares thinking some foreign power is sending me obfuscated
emails that are encrypted and important -- started happening after I
joined this list, in fact. Sigh. It's just spam... or is it? :-)

I can't wait to see some clever stuff on this quiz.

Todd

Matthew Moss

5/17/2008 2:15:00 AM

0


> On which I have a question: What do you mean by 'running it through the
> interpreter'? Creatively using Ruby's feature to convert hex into ASCII,
> for example?

My primary meaning is that if your signature is stored in sig.rb, I
should be able to type:

ruby sig.rb

to see your email address.

But feel free to be a bit more creative, if you like. I shudder to
think what kind of summary I'll have to write if I say, "Go nuts."
But... go (slightly) nuts.