Web

Howto decompose a SWF Adobe Flash file

This post describes howto decompose a SWF Flash-file using linux and a program named swfextract. The post came to life because I had to do some changes to one of my flash presentations but I had deleted all the source files. After searching the Internet i doscovered swfextract. SWF Tools is a collection of SWF […]

Read More
Linux

Replace specific HTML tags using sed and regular expression

In this post I would like to replace all <embed> HTML tags in a HTML file with a <strong> tag. # sed -e ‘s/<embed[^>]*>/<strong>/g’ filename.html > newfile.html And if you would like to remove the <embed> tag altogether # sed -e ‘s/<embed[^>]*>//g’ filename.html > newfile.html To remove all HTML tags in a file # sed […]

Read More
Security

WordPress themes with eval and base64_decode lines

Lately I’ve been downloading and reading myself up on WordPress themes and stumbled upon something curious. Many themes had encrypted code/lines starting with the following code Example 1 eval(base64_decode(‘abcdefgh….’) and other variations like Example 2 eval(gzinflate(str_rot13(base64_decode(‘abcdefgh…’) This made me curious about why would someone make such an effort to obfuscate their code. Personally I would […]

Read More
Linux

Simple Windows Print Accounting using Event Viewer data

This post continues where my previous post titled Export events including Event Properties from Windows Event Viewer left off. The data I’m going to work with was exported using eventquery.vbs and saved in a CSV-file, comma separated file and it is presented in the form shown below. “Information”,”10″,”12.05.2009 13:24:48″,”Print”,”Servername”,”None”,”AD\username”,”Document 232, filename.pdf owned by username was […]

Read More