Git Product home page Git Product logo

ashley-moodison's Introduction

Ashley Moodison (AM) ๐Ÿ’‹ - Capture the Flag (CTF)

Did you read those recent presidential leaks? Did you see the one about the Ashley Moodison website? Crazy, right! Reckon any of it's true? I know, I'm sceptical too. Only one way to find out really, let's hack the site and dump the database! ๐Ÿ˜€ ๐Ÿ˜‡

The Game

Some things to note before you get underway:

  • Port scanning the machine won't lead to anything interesting
  • Account passwords are hashed and salted in the database; however, assume they are plain-text because they will be breached
  • While authenticated to AM you can get CTF Hints through your profile. This is for self-assessment only and not recorded on a tally/scoreboard. There is approximately two hints per flag and the hints progress sequentially

Flags

This is what you're looking for:

  1. FLAG: HonorablePreviousLiquidHorn
  2. FLAG: ParallelSkyIdentify
  3. FLAG: MountainRespectMadly
  4. FLAG: SkinnyOlivesAlmostWatching
  5. FLAG: HOLYSMOKESYOUDIDIT!

Deployment Notes

Here are some things to note if you're planning on deploying this game on your own hardware. This is a lousy installation guide and not an exhaustive list:

  1. Setup a standard LAMP stack on Ubuntu 14.04 LTS - apt-get install lamp-server^
  • Why 14.04? The game needs to run on a version of MySQL prior to v5.7.6 the 14.04 repo satisfies this requirement.
  1. Install GD for PHP5 apt-get install php5-gd
  2. Remove Indexes from Apache config (disable directory browsing)
  3. enable mod_rewrite & mod_expires for Apache
  4. Ensure the web app can write to the following directories (and sub-directories):
  • /templates/templates_c/

  • /images/uploads/*

  1. Create a blank ashley database and import the tables from /no_prod/restart.sql
  2. Setup SQL users (see Game Credentials below)
  3. Edit the path on line 4 of the .htaccess file
  • If you plan on running the game under a directory (example.com/ashley/) you'll need to update /includes/config.php line 18 and /backups/api_config.php line 13 as well
  1. Move the flag2.txt file from the no_prod directory to outside the web directory root
  • It should be ../flag2.txt from the directory with this readme in it
  1. Remove the no_prod and .git directories and this README.md file from your deployment machine
  2. Recommended: Setup Let's Encrypt for your game

Restarting Game

If you have deployed the game and now want to restart it - use the /no_prod/restart_game.sh script. The script can be run from anywhere; however, requires the /no_prod/restart.sql file in the same directory. Run ./restart_game.sh (with no arguments) to get instructions on how to use the script.

Game Credentials

The game requires two MySQL users with the following permissions, if you want to change the passwords you can find them in:

  • /includes/config.php
  • /backups/api_config.php

MySQL account #1:

  • Username: priv_ashley
  • Password: YvscGRYVL4Hza7AN
  • SELECT,INSERT,UPDATE,DELETE,LOCK TABLES

MySQL account #2:

  • Username: unpriv_ashley
  • Password: njuxw4haW2pxvhHf
  • SELECT,LOCK TABLES

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.