- Navigate to mistaken git commit of
.envfile here - Log into docker instance of admin dashboard (e.g., http://challenge.ctf.games:30715/dashboard)
- Enter creds
- Find the flag and output contents instead of resetting the server
find / -maxdepth 10 -iname "flag.txt" -exec cat {} \; 2>/dev/null
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| repos.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # shellcheck disable=SC2086 | |
| IFS="$(printf '\n\t')" | |
| trap 'unset IFS' INT HUP QUIT | |
| help() { | |
| cat <<- DESCRIPTION >&2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # shellcheck disable=SC2207 | |
| base_url="https://github.com/$user_name/$repo_name/releases" | |
| pkg_path=$(pwd) | |
| distro=$(uname) # Linux / Darwin | |
| arch=$(uname -m) # x86_64 / aarch64 / arm64 | |
| help() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # * Download latest bfg bin from https://rtyley.github.io/bfg-repo-cleaner/ | |
| # * Copy somewhere in path (e.g., ~/.local/bin) | |
| SCRIPT_DIR=$(dirname "$(readlink -f "$0")") | |
| java -jar "${SCRIPT_DIR}/bfg-1.14.0.jar" "$@" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # create dirs | |
| mkdir -p /data/{0..2} | |
| # mkfs xfs | |
| mkfs.xfs /dev/nvme0n1 | |
| mkfs.xfs /dev/nvme1n1 | |
| mkfs.xfs /dev/nvme2n1 | |
| # mount partition manually (optional) | |
| # mount /dev/nvme0n1 /data/0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # shellcheck disable=all | |
| # pass a password to this script and it will return the hash | |
| if [ -z "$1" ]; then | |
| echo "Usage: $0 <password> <salt>" | |
| exit 1 | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import json | |
| from decouple import config | |
| from gql import gql, Client | |
| from gql.transport.requests import RequestsHTTPTransport | |
| from gql.transport.exceptions import TransportServerError, TransportQueryError | |
| api_key = config('OMNIVORE_API_KEY') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # shellcheck disable=SC2143,SC2317 | |
| # TODO: debug ctrl-d | |
| # trap ctrl-c, ctrl-d, and ctrl-z | |
| trap_card() { | |
| echo -e "\nGoodbye!"; exit 0 | |
| } | |
| trap trap_card SIGINT SIGQUIT SIGTSTP |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import argparse | |
| import base64 | |
| import datetime | |
| import requests | |
| from colorama import Fore | |
| """ | |
| SOURCE |