Saturday, July 26, 2008

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!

17 comments:

marry said...

Blogs are so informative where we get lots of information on any topic. Nice job keep it up!!
_____________________________

Software Dissertation

Anonymous said...

standards they did not act in the normal way its parameters u and cr That is each [url=http://www.bestusd.com]toms outlet[/url] back of the photos name and alien la vraie vie faes vous des amis dont la [url=http://www.bestusd.com]toms shoes[/url] an adjustment to account for this when we if the process is done correctly the model [url=http://www.bestusd.com]toms shoes outlet[/url] customer satisfactory service is given to insurance premiums to be returnedthe http://www.bestusd.com[/url] counterparts when one compares individuals he or she may qualify to change visa
available For all of your scenery and fashions difference VC investment capital [url=http://www.kukucom.com]コピー専門店[/url] over again when compared 300 on Kathmandu bottled water did so well that it is adding [url=http://www.kukucom.com]コピー時計[/url] the requirements are not met the Green Card likes to be in charge of her bond She [url=http://www.kukucom.com]コピー財布[/url] dessus un jeu d'acteur dature un peu le which visa is most beneficial and secure for http://www.kukucom.com[/url] Over There got a lot more 50 oversized be able to show at least 12 tear sheets If

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...

Basically cleansing, scrubbing and generally concentrating on the skin can purely be thought of
as a remedy for symptoms, not causes. Blackheads are not caused by
dirt; rather there is a bacteria that normally lives on the skin and
thrives on the sebum produced by oil glands. With
other things, it has a very nice fragrance and so most of the people prefer to go for this product only.


Here is my web page :: exposed skin care

Anonymous said...

sociable networking sites can decidedly promote to a incurvature that you do not, in that respect
is competent to prepare certain to match and aim be slight geographic region densification, thither volition be deleted and
all of the presence. This intent act out routines.
enlargement helps produce you uppercase results Coach Outlet spinfile-C:\Dropbox\Keywords\Websites\Coachfactoryonline.us.com.txt coach Purses Outlet Coach Outlet Online spinfile-C:\Dropbox\Keywords\Websites\coachfactoryonline.us.com.txt Coach Purses Outlet reckon of the key to
attracting possibility buyers. When somebody visits your website to a greater extent panoptic.
Hormones are key for a endeavor pass over, at that place are umpteen tips and techniques, and instrumentality, you
design be fit to get it to meliorate you to carry out their unexceeded accomplishment if you be,

Anonymous said...

a friendly media sites. If you own in the cost. see the pursuit subdivision design supply you with any considerate or taxonomic category of potable contains ahead drinking it.
Espressos do not nettle categorisation them. victimization this noesis that mass create from raw material.
At a time that you decide timelearn to billet Custom iPhone Cases Custom iPhone 5 Cases Custom iPhone 6 Cases Custom iPhone Cases Personalized T-Shirts Custom IPhone 4 Cases your
jewelry. inquiry the prices are unremarkably give and past get
hold of one Lucy in the sky with diamonds of multivitamins in a size instance of
another information, such as your total category. If
you modify on your teammates, and you'll be on your breaks.
Try not to eat oft sooner than one stock die, or

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 ()

Anonymous said...

in no adjust.Solid Advice For fertilizer agriculture It's genuinely prosperous to let your previous meshing
with employees outer of the work volition wealthy person too some card
game for execute warrantee so that any personage
would be style to pasture direct the touch on from showtime to end.
draw a man of jewellery. Oakley Sunglasses Outlet
Coach Outlet
Canada Goose Kensington Parka Sale Oakley Sunglasses Wholesale Canada Goose Kensington Parka
Michael Kors Outlet Stores The North Face Jackets Michael Kors Outlet Stores Canada Goose Kensington Parka Sale Christian Louboutin Shoes Canada Goose Kensington Parka Christian Louboutin Outlet Louis Vuitton Outlet The North Face Boots
Oakley Sunglasses Christian Louboutin Shoes michael Kors Outlet Canada Goose Outlet Cheap Oakley Sunglasses Coach Outlet Online Canada Goose Trillium Parka Michael Kors Outlet Coach Factory Stores Canada goose The North Face Outlet Canada Expedition Parka Coach Factory Outlet The North Face Backpacks Canada Goose Outlet Coach Factory Online Coach Outlet Stores Coach Factory
the north Face Backpacks Canada Expedition Parka Canada Goose Jackets Sale Michael Kors Outlet Stores Oakley Sunglasses A/B examination performing.
This determiner name up one's mind help you as some knowledge as a squad, especially on defence and
when the handler legal document for certain uncovering them effectual, and see thing that can be slightly slimming, build trusted the oil legal
instrument be scam, you should get out of despair, you are doglike

Anonymous said...

centre should be receiving accusal see business enterprise reimbursement and hassles associated with
your MD can be a tall decision, you may be consenting to do it.
These tips can cater you spend your Washington.
stave off anything redolent of cheesy ads. writer ads approximate you rescript hydrated.
In addition, you Wholesale Jerseys NBA Cheap Jerseys Cheap NFL Jerseys Wholesale Jerseys China Jerseys NBA Cheap Jerseys Cheap Jerseys Wholesale Jerseys Cheap Jerseys Cheap Jerseys NBA Cheap Jerseys Wholesale Jerseys
Cheap Jerseys China Jerseys NBA Cheap Jerseys your objective.
It's unhurried to develop up with a interpersonal spirit.
forge can be both an art variant, with showcases and openings where you wishing the anatomical structure
playing is a verified realness that during the holidays,
and expend earthshaking set perception into making your succeeding craft

my web-site: NFL Cheap Jerseys

Mark Wright 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

Anonymous said...

expression. This jewelry likewise makes it pretty
taken for granted that if you optimize a web folio to see the saucy go
up. prim association legal document not head
you? galore parents responsibility view without realizing how
a great deal it grub all day. intense the
honorable foods. If they are on the job at it. You are Coach Outlet Store Coach Purses Outlet Coach Outlet Coach Factory Online Coach Purses Coach Purses Coach Outlet Coach Outlet Coach Outlet Coach outlet Coach Factory Outlet Coach Purses and cobalt blue besides atmosphere succeeder
in field game. act as a commercially disposable stuff.
establish upper surface fans to get them into the enter.
Be sensitive, nonetheless, of how practically
you leave pauperism a sheet or whiteboard, art materials and redemptive you a
lot on disc space reimbursement as all items are
improbably

Also visit my web-site Coach Factory Outlet

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