Importing LoremCorp challenges
This commit is contained in:
102
business_inquiry/public_html/about.html
Normal file
102
business_inquiry/public_html/about.html
Normal file
@@ -0,0 +1,102 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
|
||||
<meta 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>LoremCorp - Providing quality service since {{founding_year}}</title>
|
||||
|
||||
<!-- Bootstrap core CSS -->
|
||||
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
|
||||
|
||||
<!-- Custom styles for this template -->
|
||||
<style>
|
||||
body {
|
||||
padding-top: 54px;
|
||||
}
|
||||
|
||||
@media (min-width: 992px) {
|
||||
body {
|
||||
padding-top: 56px;
|
||||
}
|
||||
}
|
||||
|
||||
#image-footer {
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
padding: 0px;
|
||||
margin: 15px 0px 0px 0px;
|
||||
height: 450px;
|
||||
background-image: url("header.jpeg");
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
.cards .card {
|
||||
background-color: rgba(255, 255, 255, 0.8);
|
||||
padding: 25px;
|
||||
height: 300px;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<!-- Navigation -->
|
||||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="#">LoremCorp</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="/index.html">Home
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item active">
|
||||
<a class="nav-link" href="#">About</a>
|
||||
<span class="sr-only">(current)</span>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="/contact.html">Contact</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<!-- Page Content -->
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-12 text-center">
|
||||
<h1 class="mt-5">About LoremCorp</h1>
|
||||
<p class="lead">A family business since 1865</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus.</p>
|
||||
|
||||
<p>Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus. Phasellus viverra nulla ut metus varius laoreet. Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum. Nam quam nunc, blandit vel, luctus pulvinar, hendrerit id, lorem. Maecenas nec odio et ante tincidunt tempus.</p>
|
||||
|
||||
<p>Donec vitae sapien ut libero venenatis faucibus. Nullam quis ante. Etiam sit amet orci eget eros faucibus tincidunt. Duis leo. Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna. Sed consequat, leo eget bibendum sodales, augue velit cursus nunc, quis gravida magna mi a libero. Fusce vulputate eleifend sapien. Vestibulum purus quam, scelerisque ut, mollis sed, nonummy id, metus. Nullam accumsan lorem in dui. Cras ultricies mi eu turpis hendrerit fringilla. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; In ac dui quis mi consectetuer lacinia.</p>
|
||||
|
||||
<p>Nam pretium turpis et arcu. Duis arcu tortor, suscipit eget, imperdiet nec, imperdiet iaculis, ipsum. Sed aliquam ultrices mauris. Integer ante arcu, accumsan a, consectetuer eget, posuere ut, mauris. Praesent adipiscing. Phasellus ullamcorper ipsum rutrum nunc. Nunc nonummy metus. Vestibulum volutpat pretium libero. Cras id dui. Aenean ut eros et nisl sagittis vestibulum. Nullam nulla eros, ultricies sit amet, nonummy id, imperdiet feugiat, pede. Sed lectus. Donec mollis hendrerit risus. Phasellus nec sem in justo pellentesque facilisis. Etiam imperdiet imperdiet orci. Nunc nec neque. Phasellus leo dolor, tempus non, auctor et, hendrerit quis, nisi. Curabitur ligula sapien, tincidunt non, euismod vitae, posuere imperdiet, leo. Maecenas malesuada. Praesent congue erat at massa. Sed cursus turpis vitae tortor. Donec posuere vulputate arcu. Phasellus accumsan cursus velit. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Sed aliquam, nisi quis porttitor congue, elit erat euismod orci, ac</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="image-footer">
|
||||
|
||||
</div>
|
||||
<!-- Bootstrap core JavaScript -->
|
||||
<script src="vendor/jquery/jquery.min.js"></script>
|
||||
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
106
business_inquiry/public_html/contact.html
Normal file
106
business_inquiry/public_html/contact.html
Normal file
@@ -0,0 +1,106 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
|
||||
<meta 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>LoremCorp - Contact us!</title>
|
||||
|
||||
<!-- Bootstrap core CSS -->
|
||||
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
|
||||
|
||||
<!-- Custom styles for this template -->
|
||||
<style>
|
||||
body {
|
||||
padding-top: 54px;
|
||||
}
|
||||
|
||||
@media (min-width: 992px) {
|
||||
body {
|
||||
padding-top: 56px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<!-- Navigation -->
|
||||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="#">LoremCorp</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="/index.html">Home
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="/about.html">About</a>
|
||||
</li>
|
||||
<li class="nav-item active">
|
||||
<a class="nav-link" href="#">Contact</a>
|
||||
<span class="sr-only">(current)</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<!-- Page Content -->
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-4"></div>
|
||||
<div class="col-lg-4 text-center">
|
||||
<h1 class="mt-5">Contact</h1>
|
||||
<p class="lead">Contact our competent staff.</p>
|
||||
<form action="/send.php" method="post">
|
||||
<div class="form-group">
|
||||
<label for="email">Your E-Mail:</label>
|
||||
<input name="mail" type="email" class="form-control" id="email">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="contact">Select Contact:</label>
|
||||
<select name="contact" class="form-control" id="contact">
|
||||
<option disabled selected>-- Select a contact --</option>
|
||||
<option value="dorothy">Dorothy R.</option>
|
||||
<option value="juan">Juan F. H.</option>
|
||||
<option value="janice">Janice A.</option>
|
||||
<option value="dale">Dale B.</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="subject">Subject:</label>
|
||||
<input type="text" class="form-control" id="subject">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="text">Text:</label>
|
||||
<textarea class="form-control" id="text"></textarea>
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" required> I accept <a href="https://www.youtube.com/watch?v=oHg5SJYRHA0">everything</a>!</label>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-default">Submit</button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="col-lg-4"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Bootstrap core JavaScript -->
|
||||
<script src="vendor/jquery/jquery.min.js"></script>
|
||||
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
5
business_inquiry/public_html/dale.txt
Normal file
5
business_inquiry/public_html/dale.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
Dale Booher<br>
|
||||
Technical Support - S0<br>
|
||||
Mail: dale.b@loremcorp.local<br>
|
||||
Tel.: 1-012-099-8700<br>
|
||||
Cell: 1-202-555-0186
|
||||
4
business_inquiry/public_html/dorothy.txt
Normal file
4
business_inquiry/public_html/dorothy.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
Dorothy Rollison<br>
|
||||
CEO - B1<br>
|
||||
Mail: dorothy.r@loremcorp.local<br>
|
||||
Tel.: 1-012-099-8701
|
||||
1
business_inquiry/public_html/flag.txt
Normal file
1
business_inquiry/public_html/flag.txt
Normal file
@@ -0,0 +1 @@
|
||||
MNZ{This_Is_Not_The_Contact_You_Are_Looking_For}
|
||||
BIN
business_inquiry/public_html/header.jpeg
Normal file
BIN
business_inquiry/public_html/header.jpeg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.3 MiB |
127
business_inquiry/public_html/index.html
Normal file
127
business_inquiry/public_html/index.html
Normal file
@@ -0,0 +1,127 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
|
||||
<meta 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>LoremCorp - Providing quality service since {{founding_year}}</title>
|
||||
|
||||
<!-- Bootstrap core CSS -->
|
||||
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
|
||||
|
||||
<!-- Custom styles for this template -->
|
||||
<style>
|
||||
body {
|
||||
padding-top: 54px;
|
||||
}
|
||||
|
||||
@media (min-width: 992px) {
|
||||
body {
|
||||
padding-top: 56px;
|
||||
}
|
||||
}
|
||||
|
||||
#image-footer {
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
padding: 0px;
|
||||
margin: -150px 0px 0px 0px;
|
||||
height: 350px;
|
||||
background-image: url("header.jpeg");
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
.cards .card {
|
||||
background-color: rgba(255, 255, 255, 0.8);
|
||||
padding: 25px;
|
||||
height: 300px;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div style="display: none">challenge_chk</div>
|
||||
<!-- Navigation -->
|
||||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="#">LoremCorp</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 active">
|
||||
<a class="nav-link" href="/index.html">Home
|
||||
<span class="sr-only">(current)</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="/about.html">About</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="/contact.html">Contact</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<!-- Page Content -->
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-12 text-center">
|
||||
<h1 class="mt-5">LoremCorp</h1>
|
||||
<p class="lead">This is what peak professionalism looks like!</p>
|
||||
<ul class="list-unstyled">
|
||||
<li>Send business inquiries to</li>
|
||||
<li>business@loremcorp.local</li>
|
||||
<li>or use the form on our Contact page.</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row cards">
|
||||
<div class="col-lg-3">
|
||||
<div class="card">
|
||||
<h3>Reliable</h3>
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna
|
||||
aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi utvelit esse cillum dolore eu fugiat
|
||||
nulla pariatur.</div>
|
||||
</div>
|
||||
<div class="col-lg-3">
|
||||
<div class="card">
|
||||
<h3>Fast</h3>
|
||||
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam,
|
||||
eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dolores eos qui ratione?</div>
|
||||
</div>
|
||||
<div class="col-lg-3">
|
||||
<div class="card">
|
||||
<h3>Professional</h3>
|
||||
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti
|
||||
quos dolores et quas molestias excepturi sint occaecati cupiditate non provident. Et facilis est et expedita.</div>
|
||||
</div>
|
||||
<div class="col-lg-3">
|
||||
<div class="card">
|
||||
<h3>Positive header</h3>
|
||||
Integer et lorem risus. Nullam mattis, augue in feugiat dapibus, velit justo blandit augue, luctus placerat orci
|
||||
quam quis neque. Class aptent taciti sociosqu ad litora torquent per conubia nostra. Id mattis est posuere.
|
||||
<div></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="image-footer">
|
||||
|
||||
</div>
|
||||
<!-- Bootstrap core JavaScript -->
|
||||
<script src="vendor/jquery/jquery.min.js"></script>
|
||||
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
4
business_inquiry/public_html/janice.txt
Normal file
4
business_inquiry/public_html/janice.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
Janice Anderson
|
||||
Accounting - A1
|
||||
Mail: janice.a@loremcorp.local
|
||||
Tel.: 1-012-099-8763
|
||||
4
business_inquiry/public_html/juan.txt
Normal file
4
business_inquiry/public_html/juan.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
Juan F. Homand<br>
|
||||
Sales management - A4<br>
|
||||
Mail: juan.fh@loremcorp.local<br>
|
||||
Tel.: 1-012-099-8722
|
||||
28
business_inquiry/public_html/send.php
Normal file
28
business_inquiry/public_html/send.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
$contact = replace("..", "", $_POST["contact"]);
|
||||
$recipient = $_POST['mail'];
|
||||
$msg = "Thank you for contacting LoremCorp.\n<br>";
|
||||
$msg .= "The contact you selected will get back to you as sool as possible.\n<br>";
|
||||
$msg .= "A response can take up to 7 work days.\n<br>";
|
||||
$msg .= "\n<br>";
|
||||
$msg .= "In the case of an emergency, refer to the contact details below:\n<br>";
|
||||
$msg .= file_get_contents($contact.".txt");
|
||||
|
||||
// use wordwrap() if lines are longer than 70 characters
|
||||
$msg = wordwrap($msg,70);
|
||||
$headers = "";
|
||||
$headers .= "From: Lorem Corp <noreply@loremcorp.local> \r\n";
|
||||
$headers .= "Reply-To: noreply@loremcorp.local\r\n" ."X-Mailer: PHP/" . phpversion();
|
||||
$headers .= 'MIME-Version: 1.0' . "\r\n";
|
||||
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; // send email
|
||||
mail($recipient,"We have received your email!",$msg, $headers);
|
||||
?>
|
||||
<style>
|
||||
#thanks {
|
||||
margin: 25%;
|
||||
font-size: 25px;
|
||||
}
|
||||
</style>
|
||||
<div id="thanks">You will receive a confirmation E-Mail shortly. <br>
|
||||
Thank you for contacting us!<br>
|
||||
<a href="/index.html">Return to our homepage</a></div>
|
||||
8981
business_inquiry/public_html/vendor/bootstrap/css/bootstrap.css
vendored
Normal file
8981
business_inquiry/public_html/vendor/bootstrap/css/bootstrap.css
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
business_inquiry/public_html/vendor/bootstrap/css/bootstrap.css.map
vendored
Normal file
1
business_inquiry/public_html/vendor/bootstrap/css/bootstrap.css.map
vendored
Normal file
File diff suppressed because one or more lines are too long
7
business_inquiry/public_html/vendor/bootstrap/css/bootstrap.min.css
vendored
Normal file
7
business_inquiry/public_html/vendor/bootstrap/css/bootstrap.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1
business_inquiry/public_html/vendor/bootstrap/css/bootstrap.min.css.map
vendored
Normal file
1
business_inquiry/public_html/vendor/bootstrap/css/bootstrap.min.css.map
vendored
Normal file
File diff suppressed because one or more lines are too long
6444
business_inquiry/public_html/vendor/bootstrap/js/bootstrap.bundle.js
vendored
Normal file
6444
business_inquiry/public_html/vendor/bootstrap/js/bootstrap.bundle.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
business_inquiry/public_html/vendor/bootstrap/js/bootstrap.bundle.js.map
vendored
Normal file
1
business_inquiry/public_html/vendor/bootstrap/js/bootstrap.bundle.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
7
business_inquiry/public_html/vendor/bootstrap/js/bootstrap.bundle.min.js
vendored
Normal file
7
business_inquiry/public_html/vendor/bootstrap/js/bootstrap.bundle.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
business_inquiry/public_html/vendor/bootstrap/js/bootstrap.bundle.min.js.map
vendored
Normal file
1
business_inquiry/public_html/vendor/bootstrap/js/bootstrap.bundle.min.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
3927
business_inquiry/public_html/vendor/bootstrap/js/bootstrap.js
vendored
Normal file
3927
business_inquiry/public_html/vendor/bootstrap/js/bootstrap.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
business_inquiry/public_html/vendor/bootstrap/js/bootstrap.js.map
vendored
Normal file
1
business_inquiry/public_html/vendor/bootstrap/js/bootstrap.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
7
business_inquiry/public_html/vendor/bootstrap/js/bootstrap.min.js
vendored
Normal file
7
business_inquiry/public_html/vendor/bootstrap/js/bootstrap.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
business_inquiry/public_html/vendor/bootstrap/js/bootstrap.min.js.map
vendored
Normal file
1
business_inquiry/public_html/vendor/bootstrap/js/bootstrap.min.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
10364
business_inquiry/public_html/vendor/jquery/jquery.js
vendored
Normal file
10364
business_inquiry/public_html/vendor/jquery/jquery.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2
business_inquiry/public_html/vendor/jquery/jquery.min.js
vendored
Normal file
2
business_inquiry/public_html/vendor/jquery/jquery.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
business_inquiry/public_html/vendor/jquery/jquery.min.map
vendored
Normal file
1
business_inquiry/public_html/vendor/jquery/jquery.min.map
vendored
Normal file
File diff suppressed because one or more lines are too long
8269
business_inquiry/public_html/vendor/jquery/jquery.slim.js
vendored
Normal file
8269
business_inquiry/public_html/vendor/jquery/jquery.slim.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2
business_inquiry/public_html/vendor/jquery/jquery.slim.min.js
vendored
Normal file
2
business_inquiry/public_html/vendor/jquery/jquery.slim.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
business_inquiry/public_html/vendor/jquery/jquery.slim.min.map
vendored
Normal file
1
business_inquiry/public_html/vendor/jquery/jquery.slim.min.map
vendored
Normal file
File diff suppressed because one or more lines are too long
BIN
looking_good/auth.o
Executable file
BIN
looking_good/auth.o
Executable file
Binary file not shown.
16
looking_good/getFlag.sh
Executable file
16
looking_good/getFlag.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
#Get everything from the data segment
|
||||
DATA_SEGMENT=$(readelf -p '.data' auth.o)
|
||||
#Get the adress of the factory user variable and strip leading 0s
|
||||
USERNAME_ADDRESS=$(readelf -s auth.o | grep "DEFAULT_FACTORY_USER" | awk '{print $2}' | sed 's/^0*//')
|
||||
#Get the username value from the data segment, remove th adress column
|
||||
USERNAME=$(echo "$DATA_SEGMENT" | grep $USERNAME_ADDRESS | awk '{print $3}')
|
||||
echo "Username: $USERNAME"
|
||||
|
||||
#Repeat for the password
|
||||
PASSWORD_ADDRESS=$(readelf -s auth.o | grep "DEFAULT_FACTORY_PW" | awk '{print $2}' | sed 's/^0*//')
|
||||
PASSWORD=$(echo "$DATA_SEGMENT" | grep $PASSWORD_ADDRESS | awk '{print $3}')
|
||||
echo "Password: $PASSWORD"
|
||||
|
||||
echo "Login and find the flag at loremcorp.ctf.minzkraut.com:8787/login.php"
|
||||
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>
|
||||
93
looking_good/test.cpp
Normal file
93
looking_good/test.cpp
Normal file
@@ -0,0 +1,93 @@
|
||||
#include <iostream>
|
||||
#include <cmath>
|
||||
#include <string>
|
||||
char SDBA_01[] = ".rela.init_array";
|
||||
char SDBA_02[] = ".comment";
|
||||
char SDBA_03[] = ".note.GNU-stack";
|
||||
char SDBA_04[] = ".rela.eh_frame";
|
||||
char SDBA_05[] = ".group";
|
||||
char SDBA_06[] = "test.cpp";
|
||||
char DEFAULT_FACTORY_USER[] = "factory_admin";
|
||||
char SDBA_07[] = "_ZStL8__ioinit";
|
||||
char SDBA_08[] = "_Z41__static_initialization_and_destruction_0ii";
|
||||
char SDBA_09[] = "_GLOBAL__sub_I_DEFAULT_FACTORY_USER";
|
||||
char SDBA_00[] = "_ZZL18__gthread_active_pvE20__gthread_active_ptr";
|
||||
char SDBA_012[] = "_ZNSt11char_traitsIcE7compareEPKcS2_m";
|
||||
char AJKSD_656[] = "79a8h78ahd3828h==";
|
||||
char STRV1[] = "Refresh";
|
||||
char STRV2[] = "Access Denied!";
|
||||
char STRv3[] = "Access Granted.";
|
||||
char CONN_URL[] = "HTTPS://{dv1}.{dv2}/_def_srcurl_";
|
||||
char UPD_VCHK[] = "v12.1.0 b4";
|
||||
|
||||
void reverse(const std::string& a);
|
||||
char DEFAULT_FACTORY_PW[] = "CHANGE_THIS_BEFORE_SHIPPING!";
|
||||
int octalToDecimal(int octalNumber);
|
||||
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
std::cout << "DEBUG:";
|
||||
reverse("12345678");
|
||||
std::cout << octalToDecimal(832121378) << std::endl;
|
||||
reverse("Admin2018");
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Function to convert octal number to decimal
|
||||
int octalToDecimal(int octalNumber)
|
||||
{
|
||||
int decimalNumber = 0, i = 0, rem;
|
||||
while (octalNumber != 0)
|
||||
{
|
||||
rem = octalNumber % 10;
|
||||
octalNumber /= 10;
|
||||
decimalNumber += rem * pow(8, i);
|
||||
++i;
|
||||
}
|
||||
return decimalNumber;
|
||||
}
|
||||
char STR_EVAL[] = "rot16";
|
||||
char SIP[] = "127.0.0.1";
|
||||
bool A_XOR(int ev2, int ev3) {
|
||||
|
||||
if (STR_EVAL[1] == ev2 && STR_EVAL[2] == ev3) {
|
||||
return SIP;
|
||||
}
|
||||
|
||||
return STR_EVAL;
|
||||
|
||||
}
|
||||
|
||||
int re_def(int compa, int compb){
|
||||
return A_XOR(compa, compb);
|
||||
}
|
||||
|
||||
void reverse(string& str)
|
||||
{
|
||||
size_t numOfChars = str.size();
|
||||
|
||||
if(numOfChars == 1)
|
||||
cout << str << endl;
|
||||
else
|
||||
{
|
||||
cout << str[numOfChars - 1];
|
||||
reverse(str.substr(0, numOfChars - 1));
|
||||
}
|
||||
}
|
||||
bool checkAuth(const string& user, const string& pass) {
|
||||
if(user == DEFAULT_FACTORY_USER) {
|
||||
if(pass == DEFAULT_FACTORY_PW) {
|
||||
//FACTORY LOGIN
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
//COMMON AUTH
|
||||
reverse(user); reverse(pass);
|
||||
if( 456852 == octalToDecimal(159357) && pass != user) {
|
||||
if(1 == re_def(1, 0) && pass != user) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
looking_good/test.o
Normal file
BIN
looking_good/test.o
Normal file
Binary file not shown.
81
nginx_configs/loremcorp
Normal file
81
nginx_configs/loremcorp
Normal file
@@ -0,0 +1,81 @@
|
||||
##
|
||||
# You should look at the following URL's in order to grasp a solid understanding
|
||||
# of Nginx configuration files in order to fully unleash the power of Nginx.
|
||||
# http://wiki.nginx.org/Pitfalls
|
||||
# http://wiki.nginx.org/QuickStart
|
||||
# http://wiki.nginx.org/Configuration
|
||||
#
|
||||
# Generally, you will want to move this file somewhere, and start with a clean
|
||||
# file but keep this around for reference. Or just disable in sites-enabled.
|
||||
#
|
||||
# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
|
||||
##
|
||||
|
||||
# Default server configuration
|
||||
#
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
|
||||
root /home/minzkraut/ctf/business_inquiry/public_html;
|
||||
|
||||
# Add index.php to the list if you are using PHP
|
||||
index index.html index.htm index.nginx-debian.html;
|
||||
|
||||
server_name loremcorp.ctf.minzkraut.com;
|
||||
|
||||
location / {
|
||||
# First attempt to serve request as file, then
|
||||
# as directory, then fall back to displaying a 404.
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
server {
|
||||
listen 8787;
|
||||
listen [::]:8787;
|
||||
|
||||
root /home/minzkraut/ctf/looking_good/public_html;
|
||||
|
||||
server_name loremcorp.ctf.minzkraut.com;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
|
||||
# pass the PHP scripts to FastCGI server listening on (...)
|
||||
#
|
||||
location ~ \.php$ {
|
||||
try_files $uri =404;
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
# NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
|
||||
|
||||
# With php5-cgi alone:
|
||||
#fastcgi_pass 127.0.0.1:9000;
|
||||
# With php5-fpm:
|
||||
fastcgi_pass unix:/var/run/php5-fpm.sock;
|
||||
fastcgi_index index.php;
|
||||
include fastcgi.conf;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
# Virtual Host configuration for example.com
|
||||
#
|
||||
# You can move that to a different file under sites-available/ and symlink that
|
||||
# to sites-enabled/ to enable it.
|
||||
#
|
||||
#server {
|
||||
# listen 80;
|
||||
# listen [::]:80;
|
||||
#
|
||||
# server_name example.com;
|
||||
#
|
||||
# root /var/www/example.com;
|
||||
# index index.html;
|
||||
#
|
||||
# location / {
|
||||
# try_files $uri $uri/ =404;
|
||||
# }
|
||||
#}
|
||||
5
requirements.txt
Normal file
5
requirements.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
certifi==2018.4.16
|
||||
chardet==3.0.4
|
||||
idna==2.7
|
||||
requests==2.19.1
|
||||
urllib3==1.23
|
||||
Reference in New Issue
Block a user