Archive for the 'Code' Category



Asterisk CDR Grapher

On the Binrev forums, Natas recently mentioned he was interested in finding a way to view total concurrent calls on an Asterisk server at any given date / time from the CDR csv file.
I therefore decided to code up two php scripts.
The first acdrt.php (Asterisk CDR totaler) acccepts a single date / time, and will [...]

Update: See also RFID Enabling Your Front Door (with a Parallax BASIC Stamp & 13.5 MHz APSX RW-210)
How I RFID enabled my front door with a Parallax RFID reader, a TTL serial to Ethernet module, and some custom C# .net code.
There are a number of options available for RFID front door projects. RFID Toys [...]

PHP Honeypot

I have recently been seeing quite a few attacks for old PHP based vulnerabilities showing up in my logs:

Mambo "GLOBALS['mosConfig_absolute_path']" File Inclusion
PHP-Nuke "phpbb_root_path" Arbitrary File Inclusion
WebCalendar "includedir" Arbitrary File Inclusion Vulnerability

I therefore decided to look at them closer, and coded up a php script that mimics falling for the attack, and downloads a copy of [...]

Simple PHP Site Search

Someone recently asked me about adding search capabilities to a small, simple static html based site.
There are a number of options available. The most obvious of which is perhaps just to just link to Google with the “site:” option, slightly messy but it works. There is however a better way, which is to [...]

Email on the Cisco 7960

The Cisco 7960 is a fairly popular VoIP phone especially among Asterisk users, primarily since it can be re-flashed with a SIP image. It has also featured appearances on TV shows such as FOX’s ‘24’, NBC’s ‘The West Wing’, and CBS’s ‘The Agency’. Among other things it supports call forwarding, call conferencing, and [...]

Last week I was set the task of coding up a tabular weekly calendar for DDP HackRadio in the same style as C-SPAN’s.
From what I could see it appears that C-SPAN just used some WYSIWYG editor to create their schedule, however we wanted to integrate ours into the existing HackRadio management system to save more [...]

A while ago I noticed many people were uploading content to archive.org for their various podcast shows however archive.org provide no API to automate the process. Therefore I coded up a PHP script that can be integrated into an existing CMS or used standalone on a cron which will automatically upload MP3 files in a [...]

I have used a standard cheap wireless remote control extender to change channels on a Sky Digital decoder box in another room for a number of years. Due to the distance between rooms, this usually involves pointing the remote control into the box, and moving the two in parallel around in the air until the [...]




About

You are currently browsing the Digital DawgPound weblog archives for the 'Code' category.

Longer entries are truncated. Click the headline of an entry to read it in its entirety.
Add to My Yahoo!