Hopbot log for 2007-03-24 - Helma IRC channel: #helma on irc.freenode.net

2007-03-24:

[10:44] <p3k> javascript: a = 1;
[10:46] <zumbrunn> oooh... a hop shell built into the channel?
[10:48] <p3k> mal sehen
[10:48] <p3k> javascript: a = 1;
[10:56] <p3k> javascript:a = 1; a
[10:56] <ibot3000> 1
[10:57] <p3k> javascript: new Date
[10:57] <ibot3000> Sat Mar 24 2007 11:58:27 GMT+0100 (CET)
[10:57] <p3k> javascript: getDBConnection("test")
[10:57] <rist> wow
[10:57] <p3k> hehe :)
[10:58] <zumbrunn> :-)
[10:59] <p3k> javascript: getDBConnection("test")
[10:59] <ibot3000> InternalError: DbSource test does not exist
[10:59] <p3k> javascript: root.size()
[10:59] <ibot3000> ReferenceError: "root" is not defined.
[11:00] <earl> javascript: new Date
[11:00] <ibot3000> Sat Mar 24 2007 12:02:17 GMT+0100 (CET)
[11:01] * earl pats ibot3000 on the back
[11:02] <p3k> javascript: getDBConnection("debug")
[11:02] <ibot3000> [Database: 'org.hsqldb.jdbcDriver - connected]
[11:02] <p3k> uiuiui
[11:03] <p3k> javascript: this
[11:03] <ibot3000> Version{PircBot 1.4.4 Java IRC Bot - www.jibble.org} Connected{true} Server{irc.freenode.net} Port{6667} Password{null}
[11:04] <p3k> javascript: this.partChannel("#helma");
[11:04] <p3k> muahaha
[11:04] <earl> get him back! :)
[11:04] <earl> javascript: ['hello', 'tobi'].join(' ')
[11:04] <ibot3000> hello tobi
[11:05] <p3k> javascript: "hello" + " " + "earl"
[11:05] <ibot3000> hello earl
[11:05] <earl> javascript: java.lang.System.exit(0)
[11:05] <earl> ah yes :)
[11:05] <p3k> :)
[11:05] <rist> *LOL*
[11:05] <p3k> den kannte ich noch ?BERHAUPT nicht!
[11:05] <earl> niemals! :)
[11:05] <p3k> (nee im ernst)
[11:06] <rist> I was just thinking of looking it up in the java.lang docu
[11:06] <earl> ich wollt ja eigentlich ein ls machen
[11:06] <p3k> auch nicht schlecht
[11:06] <earl> aber das war schneller getippt :)
[11:06] <zumbrunn> lol
[11:07] <earl> java.lang.Runtime.getRuntime().exec('ls') oder so
[11:12] <p3k> javascript: this
[11:12] <ibot3000> Version{PircBot 1.4.4 Java IRC Bot - www.jibble.org} Connected{true} Server{irc.freenode.net} Port{6667} Password{null}
[11:13] <p3k> javascript: this.partChannel("#helma")
[11:13] <ibot3000> Error: You're kidding!
[11:13] <p3k> javascript: java.lang.System.exit(0)
[11:13] <ibot3000> Error: You're kidding!
[11:13] <p3k> javascript: getDBConnection("debug")
[11:13] <ibot3000> Error: You're kidding!
[11:14] <p3k> javascript: "javascript:"
[11:14] <ibot3000> javascript:
[11:14] <p3k> javascript: "javascript: 123"
[11:14] <ibot3000> javascript: 123
[11:15] <p3k> javascript: new Date
[11:15] <ibot3000> Sat Mar 24 2007 12:17:17 GMT+0100 (CET)
[11:16] <rist> javascript: helma.main.Server.getApplications()
[11:16] <ibot3000> TypeError: Cannot read property "Server" from undefined
[11:16] <p3k> Packages?
[11:16] <rist> javascript: Packages.org.helma.main.Server.getApplications()
[11:16] <ibot3000> Error: You're kidding!
[11:16] <p3k> :)
[11:17] <rist> mmmm
[11:17] <rist> javascript: eval("17")
[11:17] <ibot3000> 17
[11:18] <p3k> javascript: eval(this + ".partChannel('#helma')"
[11:18] <ibot3000> SyntaxError: missing ) after argument list
[11:18] <p3k> eval(this + ".partChannel('#helma')")
[11:19] <p3k> javascript: eval(this + ".partChannel('#helma')")
[11:19] <ibot3000> SyntaxError: missing ; before statement
[11:19] <p3k> javascript: eval("this" + ".partChannel('#helma')")
[11:19] <p3k> aha
[11:20] <p3k> javascript: eval("this" + ".partChannel('#helma')")
[11:20] <ibot3000> Error: You're kidding! :)
[11:22] <zumbrunn> "I'm sorry Dave, I'm afraid I can't do that." ;-)
[11:23] <p3k> ja, das is besser
[11:23] <rist> var a = "al"; var b = "ev"; global[ b + a ]( 12 );
[11:23] <rist> javascript var a = "al"; var b = "ev"; global[ b + a ]( 12 );
[11:24] <p3k> doppelpunkt nach javascript
[11:24] <rist> javascript: var a = "al"; var b = "ev"; global[ b + a ]( 12 );
[11:24] <ibot3000> EvalError: Function "eval" must be called directly, and not by way of a function of another name.
[11:24] <rist> und ich wunder mich schon
[11:25] <zumbrunn> js: foo
[11:25] <p3k> w?r euch das lieber?
[11:25] <zumbrunn> javascript ist etwas lang, oder?
[11:25] <p3k> ja
[11:28] <p3k> js: for (var i=0; i<10; i+=1) {i}
[11:28] <ibot3000> 9
[11:30] <rist> js: global["Pack" + "ages"].org.mozilla.javascript.Context.getCurrentContext();
[11:30] <ibot3000> org.mozilla.javascript.Context@61d46f
[11:31] <p3k> ts ts ts
[11:31] <rist> und der context wiederum h?tt eine evaluateString() methode
[11:31] <p3k> so kommst du sicher eh auch an java.lang.System ran
[11:31] <p3k> die security is a hund
[11:31] <rist> wahrscheinlich
[11:32] <rist> js: global["java"].lang.System
[11:32] <ibot3000> class java.lang.System
[11:33] <rist> ja das is ein eleganter shellzugang auf deinen rechner via irc
[11:33] <p3k> aber er funktioniert
[11:33] <p3k> :)
[11:34] <rist> sch?n
[11:34] <p3k> js:
[11:34] <ibot3000> I'm sorry Dave, I'm afraid I can't do that. :)
[11:36] <rist> den zugriff auf system und co k?nntest vielleicht mittels http://java.sun.com/j2se/1.4.2/docs/api/java/lang/SecurityManager.html und http://java.sun.com/j2se/1.4.2/docs/guide/security/permissions.html abdrehen
[11:37] <p3k> ah danke f?r den tipp
[11:37] <zumbrunn> ich hab vor einer weile mit rhino scopes f?r untrusted e4x basierende skins rumgebastelt
[11:37] <zumbrunn> ich such mal rasch den code...
[11:41] <zumbrunn> js = Packages.org.mozilla.javascript; context = js.Context.enter(); scope = context.initStandardObjects();
[11:42] <zumbrunn> context.evaluateString(scope,'function foo(){return "hello"};foo();','<cmd>',1,null);
[11:43] <zumbrunn> das ist dann allerdings ein reiner js scope, ohne helma global object
[11:43] <rist> und java und Packages?
[11:44] <zumbrunn> muesstest du beim initialisieren den scopes loeschen
[11:45] <p3k> java = null; ?
[11:45] <zumbrunn> ja
[11:45] <p3k> ich probier's mal
[11:46] <p3k> an welcher stelle soll der zu evaluierende code stehen? foo() oder <cmd>?
[11:47] <zumbrunn> foo
[11:47] <p3k> und wof?r steht <cmd>?
[11:47] <zumbrunn> muesste selber in den api docs nachschauen
[11:49] <p3k> sourceName - a string describing the source, such as a filename
[11:49] <p3k> uns das letzte argument kann ein SecurityController sein
[11:50] <p3k> js: java.lang
[11:50] <ibot3000> TypeError: Cannot read property "lang" from null
[11:50] <p3k> js: Packages.helma
[11:50] <ibot3000> TypeError: Cannot read property "helma" from null
[11:51] <p3k> js: global.java.lang
[11:51] <ibot3000> ReferenceError: "global" is not defined.
[11:51] <p3k> js: new Date
[11:51] <ibot3000> Sat Mar 24 2007 12:53:23 GMT+0100 (CET)
[11:52] <p3k> bitte meine herren :)
[11:58] <p3k> js: print("hello")
[11:58] <ibot3000> ReferenceError: "print" is not defined.
[12:00] <p3k> js: this
[12:00] <ibot3000> [object Object]
[12:00] <p3k> js: this.toSource()
[12:00] <ibot3000> ({})
[12:00] <p3k> js: console
[12:00] <ibot3000> ReferenceError: "console" is not defined.
[17:21] <robi42> js: this
[17:22] <zumbrunn> ibot3000 has left with p3k, unfortunately
[17:24] <robi42> seems like i'm too late -- as usual. :-)
[17:24] <zumbrunn> or to early
[17:24] <zumbrunn> I'm sure ibot3000 will be back at some point
[17:24] <robi42> depends on the perspective, sure.
[17:24] <robi42> good to know.
[17:24] <zumbrunn> p3k can't just tease us like this
[17:25] <robi42> hope so.

 

 

In the channel now:

Logs by date: