Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

interlink search engine

by Juerd (Abbot)
on Feb 05, 2002 at 11:08 UTC ( [id://143404]=obfuscated: print w/replies, xml ) Need Help??

Hi,

There's a Dutch search engine called ilse (Interlink Search Engine) and it's located at www.ilse.nl. I don't like the search engine, google is my favourite.

But there's something ilse has that Google has not. Obfuscated perl. Try this one:
lynx -dump www.ilse.nl | perl

That will print a message we have all seen before :)

Replies are listed 'Best First'.
Re: interlink search engine
by belg4mit (Prior) on Feb 05, 2002 at 21:14 UTC
    Here's the code
  • because the server is slow from here
  • for archiving, in case they redesign their site
  • #!/usr/bin/perl eval eval '"'. ('[' ^'+').( ('[')^ (')')).( ('`')| ')').( ('`')| '.').( ('[')^ '/' ).+ '\\'.+ "\"".( '`'^'!').('`' ^',').('`'^ ',').( ('{')^ '[').('{'^'"') .('`'^'/').('{ +' ^'.'). ("\{"^ "\)").( (( "\{"))^ '[') +.( ('{')^ '(').( '`'^'%' ).('`' ^'!' +). ("\{"^ ')').( '`'^('#')).( '`'^'(' ).(' +{'^ '[').( ('`')^ '!').('{'^')') .('`'^'%').('{'^ +'[' ).('`' ^'"'). ('`'^('%')).( '`'^',').('`'^'/ +'). ("\`"^ '.').( '`'^"'") .('{'^ '[').( ('{')^ ( '/')).( ('`')^ '/').( '{'^'[' ).('{' ^'.').( '{'^'(' ).( +( '\\')) .('\\').( '`'|'.').('\\'). '"'.';'.(('!' +)^ "\+"). "\"";$:= '.'^'~';$~= '@'|'(';#;#

    --
    perl -pe "s/\b;([st])/'\1/mg"

Re: interlink search engine
by jorg (Friar) on Feb 05, 2002 at 15:28 UTC
    nifty!!
    there's probably a fellow dutch perlmonk working there :)

    Jorg

    "Do or do not, there is no try" -- Yoda
Re: interlink search engine
by dmmiller2k (Chaplain) on Feb 08, 2002 at 18:26 UTC

    Here is the output of perltidy, which offers a clue (nifty obfu!!):

    #!/usr/bin/perl eval eval '"' . ( '[' ^ '+' ) . ( ('[') ^ (')') ) . ( ('`') | ')' ) . ( ('`') | '.' ) . ( ('[') ^ '/' ) . +'\\' . +"\"" . ( '`' ^ '!' ) . ( '`' ^ ',' ) . ( '`' ^ ',' ) . ( ('{') ^ '[' ) . ( '{' ^ '"' ) . ( '`' ^ '/' ) . ( '{' ^ '.' ) . ( "\{" ^ "\)" ) . ( ( ("\{") ) ^ '[' ) . ( ('{') ^ '(' ) . ( '`' ^ '%' ) . ( '`' ^ '!' ) . ( "\{" ^ ')' ) . ( '`' ^ ('#') ) . ( '`' ^ '(' ) . ( '{' ^ '[' ) . ( ('`') ^ '!' ) . ( '{' ^ ')' ) . ( '`' ^ '%' ) . ( '{' ^ '[' ) . ( '`' ^ '"' ) . ( '`' ^ ('%') ) . ( '`' ^ ',' ) . ( '`' ^ '/' ) . ( "\`" ^ '.' ) . ( '`' ^ "'" ) . ( '{' ^ '[' ) . ( ('{') ^ ('/') ) . ( ('`') ^ '/' ) . ( '{' ^ '[' ) . ( '{' ^ '.' ) . ( '{' ^ '(' ) . ( ('\\') ) . ('\\') . ( '`' | '.' ) . ('\\') . '"' . ';' . ( ('!') ^ "\+" ) . "\""; $: = '.' ^ '~'; $~ = '@' | '('; #;# __END__ ... etc...

    And for a further clue, try replacing eval eval with print ;)

    dmm

    If you GIVE a man a fish you feed him for a day
    But,
    TEACH him to fish and you feed him for a lifetime
      Deparse++
      2;0 juerd@ouranos:~$ lynx -dump www.ilse.com | perl -MO=Deparse eval eval qq["print\\"ALL YOUR SEARCH ARE BELONG TO US\\\\n\\";\n"]; $: = 'P'; $~ = 'h'; - syntax OK

      2;0 juerd@ouranos:~$ perl -e'undef christmas' Segmentation fault 2;139 juerd@ouranos:~$

        Cool module. ++Deparse, indeed!

        dmm

        If you GIVE a man a fish you feed him for a day
        But,
        TEACH him to fish and you feed him for a lifetime
Re: interlink search engine
by Anonymous Monk on Feb 08, 2002 at 11:23 UTC
    Hi,

    maybe I'm blind but I can't figure out how it's done. The code is not in the HTML or JavaScript stuff, is it?
    Does anyone know?

    Dominik

      The code is only available to the savvy users of the lynx browser. Or to perl users who know how to tweak their user-agent string:

      perl -MLWP::UserAgent -e'$ua=LWP::UserAgent->new;$ua->agent("lynx");$req=HTTP::Request->new(GET=>"http://www.ilse.nl");$res=$ua->request($req);print $res->content' | less
Re: interlink search engine
by ellem (Hermit) on Feb 08, 2002 at 16:17 UTC
    Abort trap
    should I be seeing that often?
    --
    ellem@optonline.net
    There's more than one way to do it, just don't use my way.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: obfuscated [id://143404]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (8)
As of 2024-04-18 08:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found