Announcement

Collapse
No announcement yet.

I've written an emulator for the DC15 badge

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • I've written an emulator for the DC15 badge

    Edit:
    Originally posted by thecotman
    User requested in post down further an update to this post and the URL:
    Current Link:
    http://sourceforge.net/project/showf...roup_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
    Last edited by TheCotMan; August 9, 2007, 16:39.

  • #2
    Re: I've written an emulator for the DC15 badge

    Edit:
    Originally posted by thecotman
    User requested in post down further an update to this post and the URL:
    Current Link:
    http://sourceforge.net/project/showf...roup_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
    Last edited by TheCotMan; August 9, 2007, 16:40.

    Comment


    • #3
      Re: I've written an emulator for the DC15 badge

      Edit:
      Originally posted by thecotman
      User requested in post down further an update to this post and the URL:
      Current Link:
      http://sourceforge.net/project/showf...roup_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).
      Last edited by TheCotMan; August 9, 2007, 16:43.

      Comment


      • #4
        Re: I've written an emulator for the DC15 badge

        Originally posted by Mike View Post
        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!

        Comment


        • #5
          Re: I've written an emulator for the DC15 badge

          The download link seems to be busted, any way you can repost it?

          Comment


          • #6
            Re: I've written an emulator for the DC15 badge

            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?

            Comment


            • #7
              Re: I've written an emulator for the DC15 badge

              Code:
              $ 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.

              Comment


              • #8
                Re: I've written an emulator for the DC15 badge

                Edit:
                Originally posted by thecotman
                User requested in post down further an update to this post and the URL:
                Current Link:
                http://sourceforge.net/project/showf...roup_id=202809
                should replace the obsoleted base64 blob.
                EndEdit

                Stupid crappy free download site. I'll just base64 encode it:
                Code:
                H4sIAMWztEYAA+0Za1PbSDKf9SsaQ7Ac/JAMBrIGsgmQPTaB5IBUqs5mXbI0tnXIklcPHpfj
                v1/3zMh62SZXm7qtu1NXYks9/e6enh5jsZHpuQ290xga1pg12DRyjNDzG+2m3nrxY0BD2Ot0
                6Fvf62jp7xhe6Npup6Nv67u7SKfv7GnbL6Dzg/SvhCgIDR/ghW84lr2C7rn1/1KwVuX/8vTt
                yfnpH9ZBCd7d2VmWf729vZfkH581vdPBMgDtB/j3LPyf5/+E5x/0DvD8Q5x/uMMCUJTriR0A
                /jPg98g2b8FwLbBsP3yEiYGv3gh+9Rj84iO+GkBe2Mj2p/eGz8D0LFZXQg8Mx/Hu4dGLAF+E
                LgZ2CMhlINV0FoXMr0PgcRrTcMFid8zxZvTuczngeCaKeVTIlnDCXAhRfTBiPgkiHVK755ok
                G+2y2DAaj5lVB99ADh/ZUPLEuLPdMXIofJ1swEXJbIcBc0ZNjIAHUcB+UhS9Ccfe7FEYMjVs
                t2mKcLCp9/pK2//rL/vNCeknIWbk+8wNKVbMxHA+Ku0mXEYu99F2WHPmNBUAOAvh3nYclHfL
                0PDARAPNScIGaiuczloYKfyq1cF2sVyJ3rPskc0suGN+YHtuQMIwG8vtQrdZHeYxk3bIkKVM
                JkGJepvyMiJC15iiOqPpRWFT2RbONFv8XdlpwpeAcSk6V9GGW/YYcMneeIzcwb1NfslVDOtX
                3w5DtAPtfxS15TzC8BHObQzElTmx+X5T/uzt8T8PK/t/Uqx/SMfq81/vaDud3Pm/u4cjQdn/
                /wOwvgatKPBbQ9ttzZjvQONeUdYLnTx3LKxDvH+LW3YdrhgDMTrACFksFhq2E+Cmx0YKQejb
                ZthVlOkj/EydJYBDUKuZblWtQ1V0smpNUG5g+8OuhKTVVEOs4mIQDQGNb0/YA6gbNfiGDYwY
                3GiK1MHEHpEyjvt5iF2dkDMH216rVedUfFWSa118JptJAlKDynmEVEn16hDaXf5qj1AjUbHf
                oapVY6onYE6QWdPna0LG1lY3oWTzJctmUOkR101FEij0Hz98Fka+i5b7thuOoPpSa7YfqrED
                SBIbzXu1KgIrlDZGEkupIA3ibWLw/swe7CCkNr/w1Oq7FS69Yc0zQHpu6SGF4GKPvcix3GqY
                Xf4JNtZQxgr7CIuHCF84ROsEX4tTVnhyvBkW2tkFFsUBuZxx5tgglZyCL0h9kunTl2vkOiKu
                WMUixniNjLzHwsaxILZbZpkvUyrjskTTeS5IBRwcnH5631XWbdd0IpxQDqjI3XFzcpTgKvEW
                ak4qCpIrT7IqN2TUB6PINUM8y6nIq1z1/YRH6+Ds4iguoKDV91utMV8GcNlDSAa2fusHrxJV
                FvPtOyO071gftbW6K2gPJjYeAUh2tJKsEqBIw3le3Pmx3MVS5HyjcLo7z7b6wRbFmA3Ywwyn
                AWYNMPw49wW43ldbqZ2yKDCLWavxdlmo7iOzrkL/u8QL0kXinpB/4zn2FXbw0ayvcpNqOVlJ
                JVXogSg5YY3vP0FD8c5ID9b6QyOYcrcq6r1hh/8MQm9Wq/Rr3TdruLKhq7Xu2jiVg+kaWRO5
                gT12cZgzJwZGZcuuI/LvXbJpbYFNsQF8HxScpj2R6m5J71tIKcOb0Gd8x13jmjhhqypZBq9q
                DrMQVwfLCI3P9LCv1bqpmDyjbUmtLNHOfcQX04vwk86ClKaFlD5eZQ6hoRdMYikN2Gzma8tS
                +W+7AJubcwW8wlBCX+2rzOv37P4NbIL2oOn9GhyiH6lyK9Sb7FyxLDIEhfTsWISQkI6YIBJB
                OgD9dXZNrPLAUGTyiyBjxtm7maVC4FKmosjKWqWWY1CeYY4tOUIPMGBc9SKLsQsb2K8fekhw
                0xOeNZDuJh4IlujkXVw8/5CMikySI0vbQyZdBaeTxKDL+uvY59X+L/ddT3z/4b5mqzcu2yOy
                u7u8OT6lNlqhP+U2KAfuEE5by/pofKQOsc2Y01lfxe8BDiD9YUtg5q1ILtDJG/PIYyXFIzCL
                eDiTPM5Tu4JCF7R+U5uv3tT6Q22o9jT9ZgsfEVNrbWy3FveqjVRqxKRKp89GO4ulifhwPhsT
                0cJupj0Q5fIGVgg0gGME8937lB1UTcdD7rOL7vyZc+JabiCbD3rpuQgWjmcFwkWDWmGTYJ4Z
                jsyEPb8+Oz//dJLBfb5+ezKgD20xWs+gry6vz66OB/h5msF/eEfoD+/eHn9YQF8wAmmvc7Z9
                vn5HCt+d7C5G7y02D3OdxstdjBu317nJcIgztLevwRbouKTwYQTHA5oYcECYv9PwQO+ieAEv
                Fm0jMNXMtAAuElArUFK5fT6z5vdm1vyuzCbTZuTi7cXKzNk4e1uOPczjCvM40dleFjULJz4z
                uDxlHcdi28WL7Vcd6zupltRCO72gy8hi4gdnV5cgBjgZXsp9BqtkyjJfj/lCLFRgofTSNZcv
                tnyV5curUFcLCoonP1tK2Fu+aU+FgoJvT7mSIsxzVcX7TRDincUUKLO3fcN7SE8jTXi9Fm+6
                fEMTXIFpc0y/LyjkRdnkLUcoVfBgwhvRQLikCl1yfqvjEeF0c7qH0aint9FaPENfQYe8jTcP
                dlY2DVgIKhLVQatDYP+DeSN6rdU4AVWwmIBA3+/OT2D+1GjEDZ1ToW4+Y5AReDR3+MPWVvZ8
                yB7Qzk36SKBDyoiNqfT7rLetT9fpW5sm81KhpRfZXmvTRoFNST7zHK4gS/82gUs86BTZ2+GE
                akERWfUjM4TQnrI7w4Hwjv/GYg0oiiMroLfwrhneIcKMJy6BiFKY9yeDv51eflI3kaUmEVen
                1+rV9cnZxeD92cfTi091EKvQaqXR9PcLjQxhDjPDDMeWLnjqcPHl48f4czO8q6VqCTWdXS3T
                RR5TuWORoUMDbLvT2O/HIGRTnFyDMHyEhm/cAzMnXiXhwdIUDYeGJtEasN4MfywEiD2HR+1A
                FDB2sCVlCXkyLbMn+K3G8cxbEcyibbZpuJ5MqRGyB/rhK/FHlLVsVlTVWvrHifk0w7V0k8eJ
                4Y5ZMkITzvIGU6yDBCm7Qjixg8R6OS1lkciT28ape62Y1UDNstRzUanBWuYuM7dQz96rURhd
                QrPM9Zw9afWy2pdLRgy+jFloqnTquDGzHNnprpT5jRD4qXMIa/Sd28UJRzvH0ZYc7WUcupa7
                qBfGPLpoTaLJG+i/tGiTY3sstAP+JU85Va6K6to6hH3pmfx7jyqrJtZrGqizvfOTFJnUgyok
                HEFb68w1DnFv3HYTRn1vBaO+s7ecUVvB+Fpbyre7gq2zXF17lX87i9hwpDAiJ4z55rmQ4TvE
                dLwR+YgDWriBSV1JhuOZQ50rTPWAHLMo2NydiwygM+Ev9NH+NTkY5qvBvU6mAdqFhbpovZ2s
                t4vr4r502OMnUHvafxmIM+hG+CrmjSIbpyOCwpZMuRUFDmPYE/Y1TZNnVdyqz4+/DGyXmpzw
                WI59Azyk+EM3hTPxM8Q2tyne4yMi6dsCw5t6YTDmv+5OLfpZe2ya0PhKf7ptjKHxSYPG2fwX
                9HgMln+8XTAVNxxpD83DkeuwIACVPeDxSPKlF3xMxjPq9PIy9Ws8p6If90ce/e2dxmA4C4Ds
                kX9MZlhb4n4sRJBIeuPngE6O/dl/pCqhhBJKKKGEEkoooYQSSiihhBJKKKGEEkoooYQSSiih
                hBJKKKGEEkoooYQSSiihhBJKKKGEEjj8Cx1fyWIAUAAA
                Last edited by TheCotMan; August 9, 2007, 16:48.

                Comment


                • #9
                  Re: I've written an emulator for the DC15 badge

                  Where can I get demo9S08QG8.h and main.c? They were out of dev kits by the time I found out about them.

                  Comment


                  • #10
                    Re: I've written an emulator for the DC15 badge

                    Originally posted by bjzq8 View Post
                    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).

                    Comment


                    • #11
                      Re: I've written an emulator for the DC15 badge

                      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_B...201.0/Sources/

                      Comment


                      • #12
                        Re: I've written an emulator for the DC15 badge

                        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.

                        Comment


                        • #13
                          Re: I've written an emulator for the DC15 badge

                          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)
                          Last edited by Mike; August 9, 2007, 16:47.

                          Comment


                          • #14
                            Re: I've written an emulator for the DC15 badge

                            Originally posted by Mike View Post
                            (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
                            Last edited by TheCotMan; August 9, 2007, 16:49.

                            Comment

                            Working...
                            X