Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #26184

Re: alternatives to eval

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!Xl.tags.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date Fri, 21 Nov 2014 12:05:55 -0600
From Sean Hagen <sean.hagen@gmail.com>
Newsgroups comp.lang.javascript
Subject Re: alternatives to eval
References <9603e9d2-1496-4971-9bbe-e4f08e713310@googlegroups.com>
Date Fri, 21 Nov 2014 10:05:52 -0800
Message-ID <87lhn4l98f.fsf@gmail.com> (permalink)
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)
Cancel-Lock sha1:ESOVvBP1+jsHboD4q7VikFofKZg=
MIME-Version 1.0
Content-Type text/plain
Lines 10
X-Usenet-Provider http://www.giganews.com
X-Trace sv3-pxfielGID4FsgJyUI8/w4ZJpdw29lkhcK4C0LDXG3Frw4Yzkw8tms8+c391qUXop2iN2+urcuFYZpvp!6MDeNmLQr5XWGYkXIXx73jEjetTTJIUXy1Z5p87ImMiq0cI=
X-Complaints-To abuse@giganews.com
X-DMCA-Notifications http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info Otherwise we will be unable to process your complaint properly
X-Postfilter 1.3.40
X-Original-Bytes 1259
Xref csiph.com comp.lang.javascript:26184

Show key headers only | View raw


> 'alert(1)'.replace(/.+/,eval)

This one seems to actually send 'alert(1)' to the eval function,
although I'm not entirely sure how.

> function::['alert'](1)

No idea on this one, running it in the Chrome Dev console does nothing.

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

alternatives to eval gandalf23@mail.com - 2014-11-21 08:23 -0800
  Re: alternatives to eval Bala <k.balamurugan@gmail.com> - 2014-11-21 09:34 -0800
    Re: alternatives to eval gandalf23@mail.com - 2014-11-21 11:10 -0800
  Re: alternatives to eval Sean Hagen <sean.hagen@gmail.com> - 2014-11-21 10:05 -0800
    Re: alternatives to eval Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-11-21 20:01 +0100
      Re: alternatives to eval gandalf23@mail.com - 2014-11-21 11:48 -0800
        Re: alternatives to eval Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-11-21 21:09 +0100
          Re: alternatives to eval "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-11-21 22:41 +0100
            Re: alternatives to eval Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-11-26 22:11 +0100
              Re: alternatives to eval "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-11-27 00:28 +0100
                Re: alternatives to eval Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-11-27 10:37 +0100
                Re: alternatives to eval "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-11-27 11:38 +0100
                Re: alternatives to eval Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-11-27 12:13 +0100
          Re: alternatives to eval gandalf23@mail.com - 2014-11-21 14:19 -0800

csiph-web