[elinks-users] Run external command and display result as HTML
Kalle Olavi Niemitalo
kon at iki.fi
Mon Jul 23 17:12:47 MDT 2007
"Kelly Jones" <kelly.terry.jones at gmail.com> writes:
> I tried "Goto" "run:/bin/ls", but got back:
>
> This URL contains a protocol not yet known by ELinks.
> You can configure an external handler for it through
> the options system.
>
> How would I do this? Using the 'user:' protocol w/ lua somehow?
I don't know how user protocols work. But if you define a
protocol that runs arbitrary shell commands, you enable attacks
where a malicious web page runs such a command, pretending to get
a style sheet from the output. So I advise against defining such
risky protocols until ELinks gets a way to disable a link based
on its source.
Instead, you could define a "goto-url" hook, as ELinks does not
call that when following a link from a document. (There is a
separate "follow-url" hook that is called for those.)
More information about the elinks-users
mailing list