Home
Calendar
Certifications
Columns
Features
Forum
Resources
Vitals
Latest Additions
April 2013 Free Giveaway Sponsor - eLearnSecurity
Human Intelligence to Navigate the Security Data Deluge
February 2013 Free Giveaway Winner of SANS CyberCon Training
Interview: Bugcrowd Founders on Herding Ninjas for Crowdsourced Bug Bounties
Network Forensics: The Tree in the Forest
March 2013 Free Giveaway Sponsor - Mile2
Book Review: Violent Python
February 2013 Free Giveaway Sponsor - SANS
Holiday 2012 Free Giveaway Winner of Metasploit Pro by Rapid7
Course Review: SANS FOR408 Computer Forensic Investigations – Windows In-Depth
The Security Consulting Sugar High
Tutorial: Fun with SMB on the Command Line
Interview: Ilia Kolochenko, CEO of High-Tech Bridge
October 2012 Free Giveaway Winner of LearningGate Training
The Broken: Assessing Corporate Security in 2012 to Make a Better 2013
EH-Net Login
Welcome Guest.
Username:
Password:
Remember me
Lost Password?
No account yet?
Register
Who's Online
We have 56 guests online
Free Business and Tech Magazines and eBooks
You are here:
Home
EH-Net
News Items and General Discussion About EH-Net
[Article]-Daemon - A Contest Revealed
EH-Net
May 18, 2013, 06:08:34 PM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: Go back to The Ethical Hacker Network Online Magazine
Home Page
Home
Help
Calendar
Login
Register
EH-Net
>
EH-Net
>
News Items and General Discussion About EH-Net
(Moderator:
don
) >
[Article]-Daemon - A Contest Revealed
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: [Article]-Daemon - A Contest Revealed (Read 12987 times)
0 Members and 1 Guest are viewing this topic.
don
Editor-In-Chief
Administrator
Hero Member
Offline
Posts: 4165
Editor-In-Chief
[Article]-Daemon - A Contest Revealed
«
on:
December 29, 2008, 11:46:54 PM »
Although many contributed to this contest and eventual tutorial, it's final form could not have happened without Ryan Linn. He's done some fantastic work as of late, and is well on his way to his own EH-Net column.
Hope you find this educational and fun.
Permanent link:
[Article]-Daemon - A Contest Revealed
Quote
Winner Announcement and Full Tutorial
Thanks to all who participated in Daemon: A Contest. Before we get to the winners as well as the tutorial on how to solve the challenge, EH-Net would like to once again thank Daemon author, Daniel Suarez, and all those involved in making this contest happen. It’s amazing how a few crazy ideas can all come together into something fun and educational while at the same time spreading the word of this truly unique work of fiction.
What started as a little game to hide a secret message turned into another classic teaching vehicle for EH-Net readers. The image is a twist on the usual steganographic content. Øyvind Østlund and Adam Wardon crafted some C# source code to hide data in an image of the author which is also invisible to the Daemon’s bots. What’s in the message still is up to you to find, but three talented people found the message and took the action it recommended. Because of that, EH-Net members
jason,
blackazarro
and
ozpj
have won signed, pre-release copies of Daemon, Hard Cover Edition. And now, with the coding expertise of regular EH-Net contributor,
Ryan Linn
, we will show you how it can be done using a couple tutorial files and all free tools.
Please let us know if you find any issues with the sample files or instructions. We're here to help.
Don
Logged
CISSP, MCSE, CSTA, Security+ SME
jason
Hero Member
Offline
Posts: 1012
Re: [Article]-Daemon - A Contest Revealed
«
Reply #1 on:
December 30, 2008, 08:32:57 AM »
Nice tutorial. Also note that you can shortcut the process considerably by using the decrypt tool here
http://www.tools4noobs.com/online_tools/decrypt/
Logged
nebu10uz
Sr. Member
Offline
Posts: 368
Re: [Article]-Daemon - A Contest Revealed
«
Reply #2 on:
December 30, 2008, 08:52:48 AM »
In order to solve this challenge I knew based on the author's website and the clues left behind that you needed to code or program (well not necessarily) to decrypt the Daemon's message. However, I'm a busy guy and I didn't have a lot of time on my hands to learn and code in C#, therefore, since I've been coding in Python lately I spoke with my team and we decided to use this language.
Analyzing the decrypted message, we came to realize that the DES encryption was encoded in base64 so we started searching for Python libraries that could help us decrypting the message. Here's a couple of references we found:
http://twhiteman.netfirms.com/des.html
http://snippets.dzone.com/posts/show/4072
And so we ended up with a few lines of Python code to solve the challenge:
Code:
import base64
import pyDes
import sys
key = "Gragg's Key"
IV = "\x12\x34\x56\x78\x90\xAB\xCD\xEF"
data = open(sys.argv[1], "r")
b64Mesg = data.read()
desMesg = base64.decodestring(b64Mesg)
k = des(key, CBC, IV, pad=None, padmode=None)
print
print "Decypted Daemon Message:\n"
Message = k.decrypt(desMesg)
print Message
It's a dirty script but it worked. This is the reason I love Python, it's easy and there's a whole lot of documentation, tutorials and libraries out there on the Net.
Also, not wanting to reinvent the wheel and for a quicker solution, you can go to the website that jason mentioned above. Make sure to add a checkmark on the base64 box and supply the decrypted message and hit the submit button.
«
Last Edit: December 30, 2008, 08:56:19 AM by blackazarro
»
Logged
Security+, OSCP, CEH
nebu10uz
Sr. Member
Offline
Posts: 368
Re: [Article]-Daemon - A Contest Revealed
«
Reply #3 on:
December 30, 2008, 09:48:36 AM »
Forgot to mention, thanx Don and Dan for an awesome hacking challenge and upcoming book. Can't wait to grab it and compare it with the self published title.
And Ryan, nice write-up on the tutorial. Going to study the perl script and incorporated it to my existing python script.
Also, fyi, Daemon's sequel, FreedomTM is coming in 2010 as posted in
Daemon's
website.
«
Last Edit: December 30, 2008, 10:16:57 AM by blackazarro
»
Logged
Security+, OSCP, CEH
jason
Hero Member
Offline
Posts: 1012
Re: [Article]-Daemon - A Contest Revealed
«
Reply #4 on:
December 30, 2008, 10:23:05 AM »
Also if you use the site that I mentioned above, and you're running noscript, you'll likely run into some odd issues. Contrary to common sense, you need to not let noscript run any of the scripts on the page in order to get more than the first sentence decrypted.
«
Last Edit: December 30, 2008, 11:00:53 AM by jason
»
Logged
jason
Hero Member
Offline
Posts: 1012
Re: [Article]-Daemon - A Contest Revealed
«
Reply #5 on:
January 18, 2009, 04:40:04 PM »
My signed copy arrived in the mail yesterday. Very cool!
Logged
nebu10uz
Sr. Member
Offline
Posts: 368
Re: [Article]-Daemon - A Contest Revealed
«
Reply #6 on:
January 18, 2009, 09:03:29 PM »
Cool man!! I haven't received mine yet. So I'm still waiting. Anyways, I'm a big fan of the book and last week I went to Borders and purchased a copy to help boost the sell. And besides, I'll leave the signed copy untouch.
Logged
Security+, OSCP, CEH
nebu10uz
Sr. Member
Offline
Posts: 368
Re: [Article]-Daemon - A Contest Revealed
«
Reply #7 on:
February 03, 2009, 08:49:51 AM »
Yes! Just received my signed book. Thanks again.
Logged
Security+, OSCP, CEH
kurosen1
Newbie
Offline
Posts: 1
Re: [Article]-Daemon - A Contest Revealed
«
Reply #8 on:
March 20, 2009, 01:04:05 PM »
Sorry to reopen such an old topic, but I just read the book and loved it. I went to find the official site for more info and that's when I found the code. I did some searching and found this site and the tutorial. I tried the tutorial but didn't get any output from the exe I compiled (not even an error message). I then tried using jason's method and got the results in the attachment below. I discovered it was a repeating message and just deleted eveything from (and including) the first |-BEGIN-| to (and including) the first |-END-|
I've also included a zip of the exe I made.
Any help would be greatly appreciated as I've been wracking my brains out over this one.
Thanks
Logged
Hoffmann
Newbie
Offline
Posts: 1
Re: [Article]-Daemon - A Contest Revealed
«
Reply #9 on:
June 21, 2010, 09:31:09 AM »
I know, it's been a while but I'm still so tired and enthusiastic, I have to post my dirty bash solution:
Code:
#!/bin/bash
SendTo="Hoffmann.P@gmx.net"
MessageFile=".lastMessageFromDanielSuarez"
lastMessageFromDanielSuarez=$(cat $MessageFile 2>/dev/null || echo 0);
thisMessage=$(lynx -dump -width 110 http://thedaemon.com/aboutauthor.html | grep -v ^$ | grep SetRegexFlagToSearchWhenDateChangedFromValue | cut -d '~' -f 2 | date -d - +%s)
test $thisMessage -gt $lastMessageFromDanielSuarez && lynx -dump -width 110 http://thedaemon.com/aboutauthor.html | grep -v ^$ | grep -m1 -A1000 SetRegexFlagToSearchWhenDateChangedFromValue | tr -d '\n ' | cut -d '|' -f 3 | base64 -d | openssl des-cbc -d -K $(echo -n "$Gregg's Key$" | hexdump -e '1/1 "%x"') -iv '1234567890abcdef' -nosalt | mail -a "Content-Type: text/plain; charset=utf-8" -s "New Message from Daniel Suarez" $SendTo && echo $thisMessage > $MessageFile
Logged
Pages: [
1
]
Go Up
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
EH-Net
-----------------------------
=> Calendar Of Events
===> ChicagoCon 2007
===> ChicagoCon 2008s
===> ChicagoCon 2008f
===> ChicagoCon 2009s
=> Ethical Hacktivism
=> News Items and General Discussion About EH-Net
===> Greetings
=> Special Events
-----------------------------
Ethical Hacking Discussions and Related Certifications
-----------------------------
=> General Certification
===> Networking
===> OS
===> Security
=> Compliance, Regulations & Standards
=> Control Systems
=> Cyber Warfare
=> Forensics
===> CCE / MCCE - (Master) Certified Computer Examiner
===> CHFI - Computer Hacking Forensic Investigator
===> EnCE - EnCase® Certified Examiner
===> GCFA - GIAC Certified Forensics Analyst
=> Hardware
=> Incident Response
===> CSIH - Computer Security Incident Handler
===> GCIH - GIAC Certified Incident Handler
=> Malware
===> Advisories
=> Mobile
=> Network Pen Testing
===> CEH - Certified Ethical Hacker
===> CPTC - Certified Penetration Testing Consultant
===> CPTE - Certified Penetration Testing Engineer
===> CSTA - Certified Security Testing Associate
===> eCPPT - eLearnSecurity Certified Professional Penetration Tester
===> ECSA - EC-Council Certified Security Analyst
===> GPEN - GIAC Certified Penetration Tester
===> OSCP - Offensive Security Certified Professional
=> Physical Security
=> Programming
=> Social Engineering
=> Web Applications
=> Wireless
===> CWNP Certs
===> GAWN - GIAC Assessing Wireless Networks
===> OSWP - Offensive Security Wireless Professional
=> Other
-----------------------------
Columns
-----------------------------
=> Editor-In-Chief
=> Andress
=> Gates
=> Haddix
=> Hadnagy
=> Heffner
=> Hoffman
=> Linn
=> RichM
=> Murray
=> J. Peltier
=> Weidman
=> Wilson
-----------------------------
Features
-----------------------------
=> /root
=> Book Reviews
=> Opinions
=> Skillz
===> Examples
===> May 06 - Star Hacks, Episode V: The Empire Hacks Back
===> July 06 - Hack Bill!
===> Sept 06 - Netcat in the Hat
===> Nov 06 - Hitch-Hackers Guide to the Galaxy
===> Dec 06 - A Christmas (Hacking) Story
===> Feb 07 - Charlottes Web Site
===> April 07 - Microsoft Office Space
===> June 07 - Serenity Hack
===> Oct 07 - Worst. Ethical. Hacker. Challenge. Ever.
===> Dec 07 - Frosty the Snow Crash
===> March 2008 - It Happened One Friday
===> Oct 2008 - Scooby Doo and the Crypto Caper
===> Dec 08 - Santa Claus Is Hacking to Town
===> Feb 2009 - Brady Bunch Boondoggle
===> July 2009 - Prison Break
===> October 2009 - SSHliders
===> December 2009 - Miracle on Thirty-Hack Street
===> December 2010 - The Nightmare Before Charlie Browns Christmas
-----------------------------
Resources
-----------------------------
=> Career Central
===> Looking For Work
===> Looking To Hire
=> Links to cool sites.
=> Mass Media
=> News from the Outside World
=> Tools
=> Tutorials
===> Tutorial Requests
Loading...
Exclusive Deal
SANSFIRE 2013
June 15 - 22
5% Off
w/ Code
:
EHN_5
SANS Deals 4 EH-Netters
5% OFF
Any
SANS Course
in Any Format!
Coupon Code:
EHN_5
Including
SANS Rocky Mountain 2013
&
SANS Boston 2013
Polls
Compared to this year, 2013 will be:
Great!
Better.
About the same.
Little worse.
FUBAR!
Recent Forum Topics
General Certification
: CPT Practical Submission
(0) by
z28power4u
OSCP - Offensive Security Certified Professional
: Class Scheduled 6/8 - Linux n00b
(5) by
MrTuxracer
Career Central
: Starter cert?
(0) by
Alert
Web Applications
: Nessus and Nikto
(4) by
Seen
Tutorials
: Need guidance
(7) by
impelse
Malware
: EICAR?
(2) by
SephStorm
Network Pen Testing
: Cracking salted MD5 hash
(4) by
n37sh@rk
CEH - Certified Ethical Hacker
: Passed my C|EH
(3) by
n37sh@rk
Mass Media
: EC-council hacked, irony at his best?
(0) by
j0rDy
Web Applications
: SQL Injection into an INSERT statement.
(6) by
eyenit0
Network Pen Testing
: Solution for sipXtapi INVITE Message CSeq Field Header Remote Overflow
(1) by
m0wgli
Web Applications
: dns
(2) by
H1t M0nk3y
Other
: BSides Boston
(0) by
3xban
Career Central
: InfoSec in Central, FL
(2) by
tturner
Web Applications
: Web vulnerability scanner
(4) by
H1t M0nk3y
EH-Net News Feeds
Latest Additions
Privacy Notice
for TDCC & All Properties
© 2013 The Ethical Hacker Network
Joomla!
is Free Software released under the GNU/GPL License.