Wonko just pointed out to me an incredibly easy way of including XPath expressions inside your XSLT templates, especially within tags that need to have dynamic content like images and links. The best method I’ve been able to come up with prior to this point is to add a custom attribute to the tag, like so:

<cr:code lang=“xml”> <xsl:attribute name=“href”> <xsl:value-of select=“link_edit” /> </xsl:attribute> Edit </cr:code>

But there’s a much easier way to do it, if you don’t mind sacrificing some structure for readability. Just include the XPath expression for the value you want to include in braces, like this:

Continue reading (130 words)

If you run a server with SSHD exposed to the internet, chances are that server is being scanned for common username and password combinations. These often appear in the authorization log (/var/log/auth.log) as entries like:

cr:code Jun 12 13:33:57 localhost sshd[18900]: Illegal user admin from 219.254.25.100
Jun 12 13:37:17 localhost sshd[18904]: Illegal user admin from 219.254.25.100
Jun 12 13:37:20 localhost sshd[18906]: Illegal user test from 219.254.25.100
Jun 12 13:37:22 localhost sshd[18908]: Illegal user guest from 219.254.25.100
</cr:code>

Extend that for several hundred lines, and you’ll have an idea of what one scan looks like.

Continue reading (331 words)