Importing LoremCorp challenges
This commit is contained in:
76
looking_good/public_html/login.php
Normal file
76
looking_good/public_html/login.php
Normal file
@@ -0,0 +1,76 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta challenge_chk_login />
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>SECURE REMOTE CAMERA LOGIN</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<link rel="stylesheet" type="text/css" media="screen" href="main.css" />
|
||||
</head>
|
||||
<body>
|
||||
<style>
|
||||
body {
|
||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||
padding-top: 5%;
|
||||
padding-left: 15%;
|
||||
padding-right: 15%;
|
||||
background-color: wheat;
|
||||
}
|
||||
.container {
|
||||
box-shadow: 3px 3px 2px gray;
|
||||
width: 50%;
|
||||
margin: 0 auto;
|
||||
height: 250px;
|
||||
position: relative;
|
||||
text-align: center;
|
||||
padding: 5%;
|
||||
background-color: rgb(167, 167, 155);
|
||||
}
|
||||
.container.heading {
|
||||
height: 20px;
|
||||
padding-top: 5px;
|
||||
}
|
||||
button {
|
||||
padding: 10px 20px;
|
||||
font-size: 18px;
|
||||
margin-top: 15px;
|
||||
color:whitesmoke;
|
||||
background-color:rgba(0, 0, 0, 0.85);
|
||||
border-radius: 2px;
|
||||
border: none;
|
||||
box-shadow: 3px 3px 2px gray;
|
||||
}
|
||||
form {
|
||||
z-index: 999;
|
||||
position: relative;
|
||||
}
|
||||
form label {
|
||||
font-weight: bold;
|
||||
font-size: 18px;
|
||||
}
|
||||
.lock {
|
||||
z-index: -0;
|
||||
font-size: 20em;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
left: 50%;
|
||||
text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.35);
|
||||
font-family: 'Times New Roman', Times, serif;
|
||||
color: rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
</style>
|
||||
<div class="container heading"><h1>Remote Camera Login</h1></div>
|
||||
<div class="container">
|
||||
<form action="/view.php" method="POST">
|
||||
<label>Username<br>
|
||||
<input name="username" type="text"></label><br>
|
||||
<label>Password<br>
|
||||
<input name="password" type="password"></label><br>
|
||||
<button type="submit">Login</button>
|
||||
</form>
|
||||
<span class="lock">🔒</span>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
1877
looking_good/public_html/sketchfab-viewer-1.2.1.js
Normal file
1877
looking_good/public_html/sketchfab-viewer-1.2.1.js
Normal file
File diff suppressed because it is too large
Load Diff
236
looking_good/public_html/view.php
Normal file
236
looking_good/public_html/view.php
Normal file
@@ -0,0 +1,236 @@
|
||||
|
||||
<!--
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
There's no flag in the source code ;)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
-->
|
||||
<?php
|
||||
if ($_POST['username'] != "factory_admin" || $_POST['password'] != 'CHANGE_THIS_BEFORE_SHIPPING!') {
|
||||
echo "Invalid Credentials!";
|
||||
die();
|
||||
}
|
||||
setcookie("show_viewer_hint", 0, time()+3600, "/", "sketchfab.com", false);
|
||||
?>
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<meta challenge_chk_view />
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Camera Feed</title>
|
||||
|
||||
<!-- Insert this script -->
|
||||
<script type="text/javascript" src="/sketchfab-viewer-1.2.1.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<style>
|
||||
body {
|
||||
background-color: black;
|
||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||
color: white;
|
||||
}
|
||||
.topbox {
|
||||
position: absolute;
|
||||
top:0px;
|
||||
left: 50%;
|
||||
height: 50px;
|
||||
background-color: black;
|
||||
width: 810px;
|
||||
z-index:2;
|
||||
transform: translateX(-50%);
|
||||
|
||||
}
|
||||
.bottombox {
|
||||
position: absolute;
|
||||
top: 550px;
|
||||
left: 50%;
|
||||
height: 60px;
|
||||
background-color: black;
|
||||
width: 810px;
|
||||
z-index:2px;
|
||||
transform: translateX(-50%);
|
||||
|
||||
}
|
||||
.loading-box {
|
||||
position: absolute;
|
||||
top: 300px;
|
||||
text-align: center;
|
||||
left: 50%;
|
||||
height: 60px;
|
||||
background-color: black;
|
||||
width: 810px;
|
||||
z-index:-2px;
|
||||
transform: translateX(-50%);
|
||||
|
||||
}
|
||||
.bottombox>p {
|
||||
color:white;
|
||||
}
|
||||
#api-frame {
|
||||
left:50%;
|
||||
transform: translateX(-50%);
|
||||
z-index: -1;
|
||||
position: absolute;
|
||||
top:0px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="topbox">Logged in as "factory_admin"</div>
|
||||
<div class="bottombox"><p>Control camera movement by dragging the screen!<br>Control zoom using your mousewheel!</p></div>
|
||||
<!-- Insert an empty iframe -->
|
||||
<iframe style="display:none; border:none; width:800px; height:600px;" src="" id="api-frame" allow="autoplay;"></iframe>
|
||||
<div class="loading-box" id="loadingbox">Loading camera feed...</div>
|
||||
<!-- Initialize the viewer -->
|
||||
<script type="text/javascript">
|
||||
var iframe = document.getElementById( 'api-frame' );
|
||||
var urlid = '31a3cdd73b4344f1a836c4cf364a22ae';
|
||||
|
||||
var client = new Sketchfab( iframe );
|
||||
|
||||
|
||||
client.init( urlid, {
|
||||
preload: 1,
|
||||
camera: 0,
|
||||
ui_hint: 0,
|
||||
success: function onSuccess( api ){
|
||||
api.start();
|
||||
api.addEventListener( 'viewerready', function() {
|
||||
|
||||
// API is ready to use
|
||||
// Insert your code here
|
||||
console.log( 'Viewer is ready' );
|
||||
document.getElementById("api-frame").style.display = "block";
|
||||
document.getElementById("loadingbox").style.display = "none";
|
||||
} );
|
||||
},
|
||||
error: function onError() {
|
||||
console.log( 'Viewer error' );
|
||||
}
|
||||
} );
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user