Programming 8 - hash return

Put your programming skills to the test in these challenges.

Programming 8 - hash return

Post by unground on Tue Nov 04, 2014 4:29 pm
([msg=84787]see Programming 8 - hash return[/msg])

Hey all,

I am hoping someone can help me figure this out - I feel like I am missing something obvious here! I am stuck when returning the md5 hash to moo. Here is what I see:

Code: Select all
received: :moo!moo@cowland.com NOTICE unground :Permanent Programming mission 8 started
received: :moo!moo@cowland.com NOTICE unground :!md5 A*SSUtoB 110VzdS
Sent: NOTICE moo :!perm8-result A*SSUtoB 110VzdS
received :moo!moo@cowland.com NOTICE unground :Your responce was incorrect.


even when I do a byte by byte comparison in wireshark, I don't see any difference.. am I missing something obvious here?

Some of my python3 code:
Code: Select all
    def send_command(self, command):
        command = command + "\r\n"
        self.sock.send(bytes(command, 'ascii'))

    def notice(self, target, text):
        """Send a NOTICE command."""
        self.send_command("NOTICE %s :%s" % (target, text))

irc.notice("moo", "!perm8-result " + data[data.find("!md5 ")+5:-2])
User avatar
unground
New User
New User
 
Posts: 3
Joined: Tue Nov 04, 2014 4:19 pm
Blog: View Blog (0)


Re: Programming 8 - hash return

Post by -Ninjex- on Tue Nov 04, 2014 6:14 pm
([msg=84788]see Re: Programming 8 - hash return[/msg])

You need to send the value of the md5 hash to moo
You are sending the md5 hash back to moo

Look into how to get the value of a md5 hash

For example, if moo sends you:
Code: Select all
5d41402abc4b2a76b9719d911017c592

You need to send moo
Code: Select all
hello

Which is the text which converts to that md5 value

But something odd is this:
Code: Select all
received: :moo!moo@cowland.com NOTICE unground :!md5 A*SSUtoB 110VzdS

As it's not even a valid md5 hash
image
For those that know
K: 0x2CD8D4F9
User avatar
-Ninjex-
Moderator
Moderator
 
Posts: 1691
Joined: Sun Sep 02, 2012 8:02 pm
Blog: View Blog (0)


Re: Programming 8 - hash return

Post by unground on Tue Nov 04, 2014 8:42 pm
([msg=84796]see Re: Programming 8 - hash return[/msg])

Yup, I was being dumb, the mission asks for me to send back the md5 hash of the string, but I was just reflecting it back. Need to read more carefully.

Thanks!
User avatar
unground
New User
New User
 
Posts: 3
Joined: Tue Nov 04, 2014 4:19 pm
Blog: View Blog (0)


Re: Programming 8 - hash return

Post by -Ninjex- on Tue Nov 04, 2014 9:37 pm
([msg=84798]see Re: Programming 8 - hash return[/msg])

unground wrote:Yup, I was being dumb, the mission asks for me to send back the md5 hash of the string, but I was just reflecting it back. Need to read more carefully.

Thanks!


You're welcome, also another bit of advice.
When I first attempted this challenge, I had everything correct on this challenge and it wasn't working.
I connected my bot to hub.irc.hackthissite.org and it worked (I was told to connect there from an Admin)
image
For those that know
K: 0x2CD8D4F9
User avatar
-Ninjex-
Moderator
Moderator
 
Posts: 1691
Joined: Sun Sep 02, 2012 8:02 pm
Blog: View Blog (0)



Return to Programming

Who is online

Users browsing this forum: No registered users and 0 guests