Changes for page Engine_XalanJ

Last modified by Nicolas Gregoire on 2012/01/31 17:35

From version Icon 65.1 Icon
edited by Nicolas Gregoire
on 2012/01/12 22:47
Change comment: There is no comment for this version
To version Icon 66.1 Icon
edited by Nicolas Gregoire
on 2012/01/12 23:03
Change comment: There is no comment for this version

Summary

Details

Icon Page properties
Content
... ... @@ -63,10 +63,15 @@
63 63  
64 64  === Reading stdout ===
65 65  
66 -As the output have an unknown number of lines, we must use a loop construct like "while" ... which is not available in XSLT. This limitation is due to the functional programming paradigm but can be circumvented using templates and recursion. This way, we can also __update__ some variables (yeah !), but the syntax is awful and error prone.
66 +As the output have an unknown number of lines, we must use a loop construct like "while" ... which is not available in XSLT. This limitation is due to the functional programming paradigm but can be circumvented using templates and recursion. This way, we can also __update__ some variables (using <loop:update>), but the syntax is awful and error prone.
67 67  
68 -It's far more efficient to 1) write loops using non-standard constructs 2) convert them in stylesheets using only templates and recursion. This conversion can be done with a tool like the [[XSLT Loop Compiler>>http://www2.informatik.hu-berlin.de/~~obecker/XSLT/loop-compiler/||rel="__blank"]] (which is itself in XSLT).
68 +It's far more efficient to 1) write loops using non-standard elements like <loop:while> 2) convert them in stylesheets using only templates and recursion. This conversion can be done with a tool like the [[XSLT Loop Compiler>>http://www2.informatik.hu-berlin.de/~~obecker/XSLT/loop-compiler/||rel="__blank"]] (which is itself in XSLT).
69 69  
70 +|=Using non standards elements|=Using recursion and templates|=Commands to execute|=Output
71 +|[[xalanj-reading-stdout.lxsl>>attach:xalanj-reading-stdout.lxsl]]||[[xalanj-reading-stdout.xsl>>attach:xalanj-reading-stdout.xsl]]||[[unix_commands.xml>>attach:unix_commands.xml]]||[[xalanj-reading-stdout.txt>>attach:xalanj-reading-stdout.txt]]
72 +
73 +xx
74 +
70 70  === A pure Java reverse-shell ===
71 71  
72 72  It is afaik not possible to get a pure Java reverse-shell, as we can't create threads :-(