PDA

View Full Version : I've written an emulator for the DC15 badge


Mike
08-03-2007, 07:38 PM
Edit:
User requested in post down further an update to this post and the URL:
Current Link:
http://sourceforge.net/project/showfiles.php?group_id=202809
should replace the obsoleted:
http://www.wikiupload.com/download_page.php?id=191820
EndEdit

If you want to rewrite the firmware for this year's badge, it can kind of be a pain to have to burn the new code to the badge as part of your code-compile-test loop.

So i wrote a quick and dirty badge emulator. This way, you can get your code all debugged on your own PC and then, once you're confident it works right, swing by Joe's table to burn it to a real badge. I've tested it on my Linux system, but it should work everywhere. It uses ANSI colors, so i strongly recomment you set your terminal to have a black background before you run it.

I don't at the moment have any good webspace to put this up on, so i google'd "free file hosting" and uploaded to the first match. Sorry it uses popup ads:

http://www.wikiupload.com/download_page.php?id=191820

Just click the brown "Download file" button and do the CAPTCHA, and you should be able to get the tarball.

--Mike Schiraldi

Mike
08-03-2007, 10:16 PM
Edit:
User requested in post down further an update to this post and the URL:
Current Link:
http://sourceforge.net/project/showfiles.php?group_id=202809
should replace the obsoleted:
http://www.wikiupload.com/download_page.php?id=191820
EndEdit

New version:
http://www.wikiupload.com/download_page.php?id=191865

Mike
08-04-2007, 11:16 AM
Edit:
User requested in post down further an update to this post and the URL:
Current Link:
http://sourceforge.net/project/showfiles.php?group_id=202809
should replace the obsoleted:
http://www.wikiupload.com/download_page.php?id=191820
EndEdit


Version 2.1:
http://www.wikiupload.com/download_page.php?id=192142

This one has been confirmed to work not just on Linux, but also on Macs. You'll need gcc, available with Apple's XCode toolkit (http://developer.apple.com/tools).

punkrokk
08-04-2007, 04:40 PM
Version 2.1:
http://www.wikiupload.com/download_page.php?id=192142

This one has been confirmed to work not just on Linux, but also on Macs. You'll need gcc, available with Apple's XCode toolkit (http://developer.apple.com/tools).

Cool stuff!

Wumpus
08-07-2007, 10:04 PM
The download link seems to be busted, any way you can repost it?

Mike
08-07-2007, 11:23 PM
The download link works for me -- what problem are you having?

Regardless, i registered this as a SourceForge project over the weekend, but they require all projects to be approved by a human, which takes several business days. Once that goes through, i'll post a link here.

I'd also like to make the SourceForge page an ad-hoc place for people to post their modified firmware -- i wrote a version of Pong for the badge (though i've only tested it on the emulator) and will post it there along with the emulator. I'm interested in seeing other people's hacks too. I heard someone wrote a version of Conway's game of Life?

F2D Wicked
08-08-2007, 12:20 AM
$ cat /tmp/defcon-15-badge-emulator-2.1.tgz
<br />
<b>Fatal error</b>: Call to undefined function noImage() in <b>/home/vhosts/www.wikiupload.com/website/download_page.php</b> on line <b>91</b><br />


That can't be right.

Mike
08-08-2007, 12:31 AM
Edit:
User requested in post down further an update to this post and the URL:
Current Link:
http://sourceforge.net/project/showfiles.php?group_id=202809
should replace the obsoleted base64 blob.
EndEdit

Stupid crappy free download site. I'll just base64 encode it:

H4sIAMWztEYAA+0Za1PbSDKf9SsaQ7Ac/JAMBrIGsgmQPTaB5IBUqs5mXbI0tnXIklcPHpfj
v1/3zMh62SZXm7qtu1NXYks9/e6enh5jsZHpuQ290xga1pg12DRyjNDzG+2m3nrxY0BD2Ot0
6Fvf62jp7xhe6Npup6Nv67u7SKfv7GnbL6Dzg/SvhCgIDR/ghW84lr2C7rn1/1KwVuX/8vTt
yfnpH9ZBCd7d2VmWf729vZfkH581vdPBMgDtB/j3LPyf5/+E5x/0DvD8Q5x/uMMCUJTriR0A
/jPg98g2b8FwLbBsP3yEiYGv3gh+9Rj84iO+GkBe2Mj2p/eGz8D0LFZXQg8Mx/Hu4dGLAF+E
LgZ2CMhlINV0FoXMr0PgcRrTcMFid8zxZvTuczngeCaKeVTIln DCXAhRfTBiPgkiHVK755ok
G+2y2DAaj5lVB99ADh/ZUPLEuLPdMXIofJ1swEXJbIcBc0ZNjIAHUcB+UhS9Ccfe7FEYM jVs
t2mKcLCp9/pK2//rL/vNCeknIWbk+8wNKVbMxHA+Ku0mXEYu99F2WHPmNBUAOAvh3nYc lHfL
0PDARAPNScIGaiuczloYKfyq1cF2sVyJ3rPskc0suGN+YHtuQM IwG8vtQrdZHeYxk3bIkKVM
JkGJepvyM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g0oiiMroLfwrhneIcKMJy6BiFKY9yeDv51eflI3kaUmEVen
1+rV9cnZxeD92cfTi091EKvQaqXR9PcLjQxhDjPDDMeWLnjqcP Hl48f4czO8q6VqCTWdXS3T
RR5TuWORoUMDbLvT2O/HIGRTnFyDMHyEhm/cAzMnXiXhwdIUDYeGJtEasN4MfywEiD2HR+1A
FDB2sCVlCXkyLbMn+K3G8cxbEcyibbZpuJ5MqRGyB/rhK/FHlLVsVlTVWvrHifk0w7V0k8eJ
4Y5ZMkITzvIGU6yDBCm7Qjixg8R6OS1lkciT28ape62Y1UDNst RzUanBWuYuM7dQz96rURhd
QrPM9Zw9afWy2pdLRgy+jFloqnTquDGzHNnprpT5jRD4qXMIa/Sd28UJRzvH0ZYc7WUcupa7
qBfGPLpoTaLJG+i/tGiTY3sstAP+JU85Va6K6to6hH3pmfx7jyqrJtZrGqizvfOTFJ nUgyok
HEFb68w1DnFv3HYTRn1vBaO+s7ecUVvB+Fpbyre7gq2zXF17lX 87i9hwpDAiJ4z55rmQ4TvE
dLwR+YgDWriBSV1JhuOZQ50rTPWAHLMo2NydiwygM+Ev9NH+NT kY5qvBvU6mAdqFhbpovZ2s
t4vr4r502OMnUHvafxmIM+hG+CrmjSIbpyOCwpZMuRUFDmPYE/Y1TZNnVdyqz4+/DGyXmpzw
WI59Azyk+EM3hTPxM8Q2tyne4yMi6dsCw5t6YTDmv+5OLfpZe2 ya0PhKf7ptjKHxSYPG2fwX
9HgMln+8XTAVNxxpD83DkeuwIACVPeDxSPKlF3xMxjPq9PIy9W s8p6If90ce/e2dxmA4C4Ds
kX9MZlhb4n4sRJBIeuPngE6O/dl/pCqhhBJKKKGEEkoooYQSSiihhBJKKKGEEkoooYQSSiih
hBJKKKGEEkoooYQSSiihhBJKKKGEEjj8Cx1fyWIAUAAA

bjzq8
08-08-2007, 10:43 AM
Where can I get demo9S08QG8.h and main.c? They were out of dev kits by the time I found out about them.

Voltage Spike
08-08-2007, 03:10 PM
Where can I get demo9S08QG8.h and main.c? They were out of dev kits by the time I found out about them.

I believe that both of those files can be found on the DefCon CD (in two directories, one under Extras and the other under Grand's talk directory).

Mike
08-08-2007, 05:11 PM
Looks like this guy posted a mirror of the files:
http://biobug.org/defcon/DEFCON_15_Badge/Badge_Extras/

In particular:
http://biobug.org/defcon/DEFCON_15_Badge/Badge_Extras/Firmware/Production%201.0/Sources/

vect0rx
08-09-2007, 04:46 PM
This year's badge really made me take an interest in possibly competing in next year's challenge.

I'm not fantastic EE (soldering/adding components) but embedded programming would be a non-issue.

Thanks for providing the emu as a nice way to better understand the process.

Mike
08-09-2007, 05:12 PM
News

The SourceForge site is up, and i've written a new release, v2.2. This release allows you to either momentarily activate a switch, or toggle its state until the next toggle.

http://d15badgeemu.wiki.sourceforge.net/

(BTW, if anyone knows a forum admin, i'd appreciate it if they could go back and edit my earlier posts, deleting the old download links and the base64 blob)

TheCotMan
08-09-2007, 05:42 PM
(BTW, if anyone knows a forum admin, i'd appreciate it if they could go back and edit my earlier posts, deleting the old download links and the base64 blob)

Any Admin or Mod can do that.
Your top few posts were edited to include a top quote so as to allow people to recognize what is your original text and what was added.

HTH