Programming 1

Put your programming skills to the test in these challenges.

Re: Programming 1

Post by UsernameNotAvailable on Fri Apr 06, 2012 6:34 am
([msg=65517]see Re: Programming 1[/msg])

easy peasy lemon squeesy
UsernameNotAvailable
New User
New User
 
Posts: 2
Joined: Fri Apr 06, 2012 6:30 am
Blog: View Blog (0)


Authenticate with cookies (help needed)

Post by ZyrgEr on Wed Sep 12, 2012 12:20 pm
([msg=69346]see Authenticate with cookies (help needed)[/msg])

Okay now I'm being a real noob and I need help.

I'm using perl (could also use any else language) and I don't know how to get the problem. Every time I try to get everything from i.e. http://www.hackthissite.org/missions/prog/1/ I run to problem where I need to login. Well I'm logged with firefox and I know I have to use cookies somehow. Problems are I don't know how :D I believe cookies are stored in cookies.sqlite and I dont know how get data from it and how to send it so I can retrieve the full website.

Thanks in advance

EDIT:
I dont know what the heck I did different but somehow the exactly same code works now :roll: Im quite amazed 8-)
Last edited by ZyrgEr on Tue Oct 09, 2012 11:36 am, edited 1 time in total.
ZyrgEr
New User
New User
 
Posts: 8
Joined: Tue Sep 11, 2012 9:41 am
Blog: View Blog (0)


Re: Programming 1

Post by NoviceBlackout on Sat Sep 29, 2012 12:58 pm
([msg=69793]see Re: Programming 1[/msg])

darkdan21 wrote:Well, if you people are having trouble, it took me about 40 minutes to make a program to do it in excel. :D


I also did this in excel as I found it the easiest way to transfer the word list in and get the answer out
User avatar
NoviceBlackout
New User
New User
 
Posts: 46
Joined: Sat Sep 08, 2012 10:50 am
Blog: View Blog (0)


Re: Programming 1

Post by ZyrgEr on Sat Oct 06, 2012 3:16 pm
([msg=69980]see Re: Programming 1[/msg])

got stuck for like thee hours because I didnt notice that wordlist.txt was in some dos format :evil:
I was about lose my mind because perl says "someword" is NOT equal to "someword".
Otherwise it was a good warmup mission :)
ZyrgEr
New User
New User
 
Posts: 8
Joined: Tue Sep 11, 2012 9:41 am
Blog: View Blog (0)


Re: Programming 1

Post by LoGiCaL__ on Sat Oct 06, 2012 10:11 pm
([msg=69993]see Re: Programming 1[/msg])

ZyrgEr wrote: perl says "someword" is NOT equal to "someword".


Interesting point. I've actually come across something similar to this at work. Because I was getting input from a file there was formatting issues when comparing strings. Ended up being that there was also line feeds, carraige returns and tabs along with the string which can be unseen to the eye. I was dealing with this in sql, so I used the replace function with the respected char() value from the ascii chart. Since it's perl you can try chomp then compare the strings again to see if they match.
User avatar
LoGiCaL__
Addict
Addict
 
Posts: 1060
Joined: Sun May 30, 2010 12:33 pm
Blog: View Blog (0)


Re: Programming 1

Post by KthProg on Thu Jan 24, 2013 4:49 pm
([msg=72603]see Re: Programming 1[/msg])

For entertainment, I'm going to post a modified version of the VBA form I created to solve this problem.
The modified version has some extra features and is not quite the one I used to find the answer (it's a LOT more complicated)
uh...how do i upload a file?
There is a lot of unneccesary code now since I built it up quite a bit lol.
It's all stored in an excel spreadsheet so I'd have to upload it...
any idea how?
User avatar
KthProg
Poster
Poster
 
Posts: 219
Joined: Wed Jan 23, 2013 7:06 pm
Blog: View Blog (0)


Re: Programming 1

Post by -Ninjex- on Thu Jan 24, 2013 5:11 pm
([msg=72605]see Re: Programming 1[/msg])

KthProg wrote:For entertainment, I'm going to post a modified version of the VBA form I created to solve this problem.
The modified version has some extra features and is not quite the one I used to find the answer (it's a LOT more complicated)
uh...how do i upload a file?
There is a lot of unneccesary code now since I built it up quite a bit lol.
It's all stored in an excel spreadsheet so I'd have to upload it...
any idea how?


You do not post answers on the forum...
period.
If you're not willing to learn, no one can help you. If you're determined to learn, no one can stop you.⠠⠵
The absence of evidence is not evidence of absence.
I can explain it for you, but I can't understand it for you.
User avatar
-Ninjex-
Addict
Addict
 
Posts: 1223
Joined: Sun Sep 02, 2012 8:02 pm
Blog: View Blog (0)


Re: Programming 1

Post by lucantrop on Fri Mar 29, 2013 5:18 pm
([msg=74812]see Re: Programming 1[/msg])

As with everything in life, hacking related or not, don't make things too complicated. You don't even need to do any permutations. Both the scrambled and the original word have the same alphabetical letter order, don't they? Use that to your advantage, the code will be a quicker and shorter, mine ended up being 20 lines of code in python.
Also, for all those that have the correct words, but are not accepted, they need to be in the same order as given to you, separated by commas, w/out any spaces.
Hope I didn't give away too much tho. Good luck ;)
lucantrop
New User
New User
 
Posts: 1
Joined: Fri Mar 29, 2013 5:06 pm
Blog: View Blog (0)


Re: Programming 1

Post by KthProg on Wed Apr 03, 2013 6:22 pm
([msg=74891]see Re: Programming 1[/msg])

No they dont have the same letter order theyre scrambled...? wtf are you talking about...
User avatar
KthProg
Poster
Poster
 
Posts: 219
Joined: Wed Jan 23, 2013 7:06 pm
Blog: View Blog (0)


Re: Programming 1

Post by vv0lf on Fri Apr 05, 2013 11:55 pm
([msg=74938]see Re: Programming 1[/msg])

Done in Python :)

The fun part was making it as memory efficient as possible~
I'm interested to know how easy/hard it is in other languages :P
vv0lf
New User
New User
 
Posts: 2
Joined: Fri Apr 05, 2013 9:52 pm
Blog: View Blog (0)


PreviousNext

Return to Programming

Who is online

Users browsing this forum: No registered users and 0 guests