fork(1) download
  1. <!DOCTYPE html>
  2. <!--
  3. Part of this template was developed by https://b...content-available-to-author-only...b.io
  4. -->
  5. <html lang="en" class="gr__blackrockdigital_github_io"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  6.  
  7. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  8. <meta name="description" content="">
  9. <meta name="author" content="">
  10.  
  11. <title>Steal The Steel CTF</title>
  12.  
  13. <!-- Bootstrap core CSS -->
  14. <link href="https://s...content-available-to-author-only...n.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet">
  15.  
  16. <!-- Custom fonts for this template -->
  17. <link href="https://f...content-available-to-author-only...s.com/css?family=Catamaran:100,200,300,400,500,600,700,800,900" rel="stylesheet">
  18. <link href="https://f...content-available-to-author-only...s.com/css?family=Lato:100,100i,300,300i,400,400i,700,700i,900,900i" rel="stylesheet">
  19.  
  20. <!-- Custom styles for this template -->
  21. <link href="https://h...content-available-to-author-only...s.com/bootstrap-themes/demo/theme-machine/neon-glow/css/bootstrap4-neon-glow.min.css" rel="stylesheet">
  22.  
  23. <!-- Font awesome -->
  24. <link rel="stylesheet" href="https://u...content-available-to-author-only...e.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
  25. <style>
  26. * {
  27. box-sizing: border-box;
  28. }
  29. *:before,
  30. *:after {
  31. box-sizing: border-box;
  32. }
  33. html,
  34. body {
  35. height: 100%;
  36. position: relative;
  37. }
  38. #main-container {
  39. min-height: 100vh; /* will cover the 100% of viewport */
  40. overflow: hidden;
  41. display: block;
  42. position: relative;
  43. padding-bottom: 100px; /* height of your footer */
  44. }
  45. footer {
  46. position: absolute;
  47. bottom: 0;
  48. width: 100%;
  49. }
  50. </style>
  51. </head>
  52.  
  53. <body data-gr-c-s-loaded="true">
  54.  
  55. <!-- Navigation -->
  56. <nav class="navbar navbar-expand-lg navbar-dark navbar-custom fixed-top">
  57. <div class="container">
  58. <a class="navbar-brand" href="/">Break it until you make IT</a>
  59. <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
  60. <span class="navbar-toggler-icon"></span>
  61. </button>
  62. <div class="collapse navbar-collapse" id="navbarResponsive">
  63. <ul class="navbar-nav ml-auto">
  64. <li class="nav-item">
  65. <a class="nav-link" href="https://t...content-available-to-author-only...r.com/CyberStudents" target="_blank">Twitter</a>
  66. </li>
  67. <li class="nav-item">
  68. <a class="nav-link" href="https://w...content-available-to-author-only...n.com/groups/8477102//" target="_blank">Linkedin</a>
  69. </li>
  70. <li class="nav-item">
  71. <a class="nav-link" href="https://w...content-available-to-author-only...k.com/CyberStudents.org/s" target="_blank">Facebook</a>
  72. </li>
  73. </ul>
  74. </div>
  75. </div>
  76. </nav>
  77.  
  78. <div id="main-container">
  79. <header class="masthead text-center text-white" style="padding-top: 6.5em; padding-bottom: 2.5em;"></header>
  80. <div class="masthead-content">
  81. <div class="container">
  82. <h1 class="masthead-heading mb-0" style="text-align:center;">Secure Coding CTF - The Winter Challenge</h1>
  83. </div>
  84. </div>
  85. </header>
  86.  
  87. <section>
  88. <div class="container">
  89. <div class="row align-items-center">
  90. <div class="col-lg-4 order-lg-2">
  91. <div class="p-5">
  92. <blockquote style="padding-top: 20px;">
  93. <p>Good code is its own best documentation.</p>
  94. <footer>&mdash; <cite>Steve McConnell</cite></footer>
  95. </blockquote>
  96. </div>
  97. </div>
  98. <div class="col-lg-8 order-lg-1">
  99. <div class="p-5">
  100. <h2 class="display-4" style="color: #812990;">Compiling Juggling 1... JK :)</h2>
  101. <?php
  102. require "settings.php";
  103.  
  104. if (isset($_GET['password'])){
  105.  
  106. $actualPass="999";
  107.  
  108. if($_GET['password']==="999"){
  109. $_GET['password']="=P"; //hahaha
  110. }
  111.  
  112.  
  113. if($_GET['password']==$actualPass)
  114. {
  115. echo $flag;
  116. }
  117. else
  118. {
  119. echo "Nope<br/><br/><br/>";
  120. }
  121. }
  122. ?>
  123. <h3>This site is password protected!</h3>
  124. <!-- Hint: no sql is needed... -->
  125. <form method='get'>
  126. <div class='form-group'>
  127. <label>Password:</label><br>
  128. </div>
  129. <div class='form-group'>
  130. <input type='text' name='password' id='password'><br>
  131. </div>
  132. <div class='form-group'>
  133. <button class='btn btn-primary' type='submit'>Submit</button>
  134. </div>
  135. </form>
  136.  
  137.  
  138. </div>
  139. </div>
  140. </div>
  141. </div>
  142. </section>
  143.  
  144. <!-- Footer -->
  145. <footer class="py-5">
  146. <div class="container">
  147. <p class="m-0 text-center">Secure Coding CTF - The Winter Challenge&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<i class="fas fa-dragon"></i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Because We Care</p>
  148. <p class="m-0 text-center">Deployed by<br>Vitaly Ford && Alexandr Chebatarev</p>
  149. </div>
  150. <!-- /.container -->
  151. </footer>
  152. </div>
  153. <!-- Bootstrap core JavaScript -->
  154. <script src="https://c...content-available-to-author-only...y.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
  155. <script src="https://s...content-available-to-author-only...n.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
  156.  
  157. </body><span class="gr__tooltip"><span class="gr__tooltip-content"></span><i class="gr__tooltip-logo"></i><span class="gr__triangle"></span></span></html>
Runtime error #stdin #stdout #stderr 0.02s 24344KB
stdin
Standard input is empty
stdout
<!DOCTYPE html>
  <!--
    Part of this template was developed by https://b...content-available-to-author-only...b.io 
  -->
<html lang="en" class="gr__blackrockdigital_github_io"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Steal The Steel CTF</title>

    <!-- Bootstrap core CSS -->
    <link href="https://s...content-available-to-author-only...n.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom fonts for this template -->
    <link href="https://f...content-available-to-author-only...s.com/css?family=Catamaran:100,200,300,400,500,600,700,800,900" rel="stylesheet">
    <link href="https://f...content-available-to-author-only...s.com/css?family=Lato:100,100i,300,300i,400,400i,700,700i,900,900i" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="https://h...content-available-to-author-only...s.com/bootstrap-themes/demo/theme-machine/neon-glow/css/bootstrap4-neon-glow.min.css" rel="stylesheet">

    <!-- Font awesome -->
    <link rel="stylesheet" href="https://u...content-available-to-author-only...e.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
    <style>
    * {
 box-sizing: border-box;
}
*:before,
*:after {
 box-sizing: border-box;
}
html,
body {
 height: 100%;
 position: relative;
}
#main-container {
 min-height: 100vh; /* will cover the 100% of viewport */
 overflow: hidden;
 display: block;
 position: relative;
 padding-bottom: 100px; /* height of your footer */
}
footer {
 position: absolute;
 bottom: 0;
 width: 100%;
}
  </style>
  </head>

  <body data-gr-c-s-loaded="true">

    <!-- Navigation -->
    <nav class="navbar navbar-expand-lg navbar-dark navbar-custom fixed-top">
      <div class="container">
        <a class="navbar-brand" href="/">Break it until you make IT</a>
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
          <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarResponsive">
        <ul class="navbar-nav ml-auto">
            <li class="nav-item">
              <a class="nav-link" href="https://t...content-available-to-author-only...r.com/CyberStudents" target="_blank">Twitter</a>
            </li>
            <li class="nav-item">
              <a class="nav-link" href="https://w...content-available-to-author-only...n.com/groups/8477102//" target="_blank">Linkedin</a>
            </li>
            <li class="nav-item">
              <a class="nav-link" href="https://w...content-available-to-author-only...k.com/CyberStudents.org/s" target="_blank">Facebook</a>
            </li>
          </ul>
        </div>
      </div>
    </nav>

<div id="main-container">
    <header class="masthead text-center text-white" style="padding-top: 6.5em; padding-bottom: 2.5em;"></header>
      <div class="masthead-content">
        <div class="container">
          <h1 class="masthead-heading mb-0" style="text-align:center;">Secure Coding CTF - The Winter Challenge</h1>
        </div>
      </div>
    </header>

    <section>
      <div class="container">
        <div class="row align-items-center">
          <div class="col-lg-4 order-lg-2">
            <div class="p-5">
              <blockquote style="padding-top: 20px;">
                <p>Good code is its own best documentation.</p>
                <footer>&mdash; <cite>Steve McConnell</cite></footer>
              </blockquote>
            </div>
          </div>
          <div class="col-lg-8 order-lg-1">
            <div class="p-5">
              <h2 class="display-4" style="color: #812990;">Compiling Juggling 1... JK :)</h2>
stderr
PHP Warning:  require(settings.php): failed to open stream: No such file or directory in /home/2QOFTQ/prog.php on line 102
PHP Fatal error:  require(): Failed opening required 'settings.php' (include_path='.:/usr/share/php') in /home/2QOFTQ/prog.php on line 102