Sites That Teach You How to Hack Legally

I'm sure there are more than this, but the two sites I recently discovered are Hack This Site! and Hellbound Hackers. Both are lots are lots of fun and very educational, though I prefer Hackthissite.org more. Lately I've been working on the Programming Missions, which on both sites are timed missions. For example, on hackthissite.org the first programming challenge is something like:

Find the original (unscrambled) words, which were randomly taken from a wordlist [linked].
Send a comma separated list of the original words, in the same order as in the list below.

You have 30 seconds time to send the solution.

List of scrambled words:
  • 1bbabu
  • wtenrae
  • heysehr
  • oeibod
  • siektnr
  • padssw
  • urpeoe
  • lechmil
  • hpiillp
  • oe1ums
You then have an input box and a button to click to send in the answer. The actual programming part of this mission is fairly straitforward (though I'm sure there are a number of different approaches), but what I had difficulty figuring out is how to access the site directly though my script. I initially passed this challenge by quickly copying and pasting the list in a file, running my script on my file, and then copying and pasting my answer back into the input field.

Not only was this approach uneligent, but I also failed to get the data transfered back and forth fast enough the first couple of times (on like the 5th try I was able to move fast enough). I knew I needed to figure out how to get the script to do all this mechanical work for me. My first thought was to use Greasemonkey, but Javascript seems unable to do things I need to do, like read from files on my local machine (i.e., the wordlist). Now maybe there is a way to do it, but I'm pretty new to Javascript so I couldn't figure it out. More importantly, Javascript seem even more limited when it comes to some of later missions (consider, for example, mission two).

My preferred language of choice is Perl and the big breakthrough I needed was discovering the WWW::Mechanize module (which has been ported to other languages, in case you don't use Perl). You can use this module to simulate a browser in your code. For example, you can sign into hackthissite.org with the following (appropriately modified) code:

my $url1 = "http://www.hackthissite.org/";
my $mech = WWW::Mechanize->new;

my $res = $mech->get($url1);
die "can't get" unless $res->is_success;
$mech->submit_form(with_fields => {
txt_username => $username,
txt_password => $password
});


From there you can access the parts of the site you need. Once you get a hang of many of the features of this module, it will radically simply your progress in fulfilling the missions!

Comments

Anonymous said…
Thankfulness to my father who shared with me about this web site,
this website is truly awesome.

Here is my homepage acheter followers
Also see my page - Achat Retweet pas cher
Anonymous said…
I'm really enjoying the design and layout of your blog. It's
a very easy on the eyes which makes it much more enjoyable for me to come here and visit more often.
Did you hire out a developer to create your theme?
Excellent work!

Feel free to visit my website - squidoo.com
Anonymous said…
hello!,I like your writing very much! share we
be in contact extra about your article on AOL?
I need a specialist on this space to unravel my problem.
Maybe that's you! Taking a look forward to see you.

Here is my web blog ... related resource site
Anonymous said…
I wanted to thank you for this wonderful read!
! I certainly loved every bit of it. I've got you saved as a favorite to look at new things you post…

my weblog; More Help
Anonymous said…
Removed will probably be many when processed food and moreover
junk foods unhealthy on the inside grease together with natural oil acquired strongly
on call outs in between many people across the country.
For you more or less got to usa that will in order to really drive the mixture is perfectly to the mower blades which might try taking some becoming accustomed to whilst it fired up.

The wrong completely was treats like a definite at once offer electric power gadget only at this present time electrically
powered juice machines will be the norm.

Here is my page used industrial cake mixers
Anonymous said…
That is where a comparison overview years of. Wheat-grass is seen as a young yards within the whole position, that has become a well-liked
making juice factor for that chlorophyll substances in addition detoxifying factors.
Than establishing, hypothetically talking the best Vita-Mix and
Blendtec basket ripping tools thing to make $20.00 very well
as the Blendtec Bowl towards $50.00, this
indicates well developed top notch purchase price should be all about $300.
Almost everything that after referring to killer the
rocks, you want a food processor or blender effectively extend to show your internet:
a tough locomotive's motor and as a consequence quickly styled, long lived cutting blades.

my homepage; ultimate chopper electric blender
Anonymous said…
By following the LEED certification requirements, you are sure to make intelligent and sustainable building choices.
Anytime you are considering changing your landscape,
you must also thing about the structures that already stand on your property.
Knowing how to time your purchases at the right time can save you a lot of money.


Stop by my page: landscaping ideas for front of house ()
Unknown said…

It seems to collect a lot of different ideas in the Word document. I do it in different sheets of paper in my notebook. You have what you do now?
Buy Essays Uk
jaring safety said…
The article posted was very informative and useful
thanks for sharing..
jaring futsal | jaring golf | jaring kassa / jaring polynet | jaring pengaman proyek | jaring pengaman bangunan | jaring pengaman gedung | jaring gawang | jaring paranet / jaring tanaman | rumput sintetis / rumput futsal |
tangga darurat | jaring cargo | agen jaring | jaring outbound | jaring truk | tali tambang
http://jaringfutsal.wordpress.com
http://jualjaringfutsal.wordpress.com
http://tokojaring.wordpress.com
http://jualtambangmurah.wordpress.com
http://pasangjaringfutsal.wordpress.com
http://pancasamudera.wordpress.com
Danny Danials said…

Try this new app Key Root Master Apk : which is maximum trending now.

Popular posts from this blog

Base64 decode to file

Installing Virtualbox's Guest Additions on Debian and getting shared folders to work