Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"Free markets select for winning solutions." -- Eric S. Raymond


devel / comp.lang.javascript / Dynamic code

SubjectAuthor
* Dynamic codeJonas Thörnvall
+- Re: Dynamic codeJJ
`- Re: Dynamic codeMichael Haufe (TNO)

1
Dynamic code

<1eab5418-7e12-4ac2-a451-f04a72c9ba29n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17487&group=comp.lang.javascript#17487

  copy link   Newsgroups: comp.lang.javascript
X-Received: by 2002:a05:620a:e0c:: with SMTP id y12mr21411244qkm.109.1638600672027; Fri, 03 Dec 2021 22:51:12 -0800 (PST)
X-Received: by 2002:aca:f20a:: with SMTP id q10mr13671151oih.176.1638600671809; Fri, 03 Dec 2021 22:51:11 -0800 (PST)
Path: i2pn2.org!i2pn.org!paganini.bofh.team!news.dns-netz.com!news.freedyn.net!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!tr2.eu1.usenetexpress.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.javascript
Date: Fri, 3 Dec 2021 22:51:11 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=84.217.164.86; posting-account=kxPkPAoAAACjJi8w0gL9bnyznPzdw9HW
NNTP-Posting-Host: 84.217.164.86
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1eab5418-7e12-4ac2-a451-f04a72c9ba29n@googlegroups.com>
Subject: Dynamic code
From: jonas.thornvall@gmail.com (Jonas Thörnvall)
Injection-Date: Sat, 04 Dec 2021 06:51:12 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 5
 by: Jonas Thörnvall - Sat, 4 Dec 2021 06:51 UTC

Is eval the only way to create and execute dynamic commands?
command="parent.MultiID.document.getElementById('MVOL"+track+"').value=CCvol"

eval(command);

Or is there a way to insert a string into a command?

Re: Dynamic code

<16c8beqx759c1.6bp3plwrwcja$.dlg@40tude.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17492&group=comp.lang.javascript#17492

  copy link   Newsgroups: comp.lang.javascript
Path: i2pn2.org!i2pn.org!aioe.org!IV51k2578VAyZaOT4WBlVQ.user.46.165.242.91.POSTED!not-for-mail
From: jj4public@gmail.com (JJ)
Newsgroups: comp.lang.javascript
Subject: Re: Dynamic code
Date: Sun, 5 Dec 2021 13:48:11 +0700
Organization: Aioe.org NNTP Server
Message-ID: <16c8beqx759c1.6bp3plwrwcja$.dlg@40tude.net>
References: <1eab5418-7e12-4ac2-a451-f04a72c9ba29n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="59182"; posting-host="IV51k2578VAyZaOT4WBlVQ.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: 40tude_Dialog/2.0.15.84
X-Notice: Filtered by postfilter v. 0.9.2
X-Face: \*\`0(1j~VfYC>ebz[&O.]=,Nm\oRM{of,liRO#7Eqi4|!]!(Gs=Akgh{J)605>C9Air?pa d{sSZ09u+A7f<^paR"/NH_#<mE1S"hde\c6PZLUB[t/s5-+Iu5DSc?P0+4%,Hl
X-Bitcoin: 1LcqwCQBQmhcWfWsVEAeyLchkAY8ZfuMnS
 by: JJ - Sun, 5 Dec 2021 06:48 UTC

On Fri, 3 Dec 2021 22:51:11 -0800 (PST), Jonas Thörnvall wrote:
> Is eval the only way to create and execute dynamic commands?
> command="parent.MultiID.document.getElementById('MVOL"+track+"').value=CCvol"
>
> eval(command);
>
> Or is there a way to insert a string into a command?

Script element injection; function instantiation; `javascript:` protocol;
and own JS interpreter.

Re: Dynamic code

<68e3dd26-bade-4e3a-963f-ce4de69cdfc7n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17496&group=comp.lang.javascript#17496

  copy link   Newsgroups: comp.lang.javascript
X-Received: by 2002:a05:6214:400e:: with SMTP id kd14mr31390710qvb.70.1638724823148;
Sun, 05 Dec 2021 09:20:23 -0800 (PST)
X-Received: by 2002:a9d:2647:: with SMTP id a65mr25468037otb.185.1638724822885;
Sun, 05 Dec 2021 09:20:22 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.javascript
Date: Sun, 5 Dec 2021 09:20:22 -0800 (PST)
In-Reply-To: <1eab5418-7e12-4ac2-a451-f04a72c9ba29n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2603:6000:8900:6915:d1cb:769b:6087:39a4;
posting-account=hYRygAoAAABkmvJVmPilz9Q1TOjgPQAq
NNTP-Posting-Host: 2603:6000:8900:6915:d1cb:769b:6087:39a4
References: <1eab5418-7e12-4ac2-a451-f04a72c9ba29n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <68e3dd26-bade-4e3a-963f-ce4de69cdfc7n@googlegroups.com>
Subject: Re: Dynamic code
From: tno@thenewobjective.com (Michael Haufe (TNO))
Injection-Date: Sun, 05 Dec 2021 17:20:23 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 10
 by: Michael Haufe (TNO) - Sun, 5 Dec 2021 17:20 UTC

On Saturday, December 4, 2021 at 12:51:16 AM UTC-6, jonas.t...@gmail.com wrote:
> Is eval the only way to create and execute dynamic commands?
> command="parent.MultiID.document.getElementById('MVOL"+track+"').value=CCvol"
>
> eval(command);
>
> Or is there a way to insert a string into a command?

The correct answer is that you're doing it wrong.

Use a function and not a string. Your command is a reference to that function.


devel / comp.lang.javascript / Dynamic code

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor