index.html
DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>靶场访问首页title>
<style>
body {
background-color: #f2f2f2;
color: #333;
font-family: 'Courier New', monospace;
text-align: center;
padding-top: 100px;
}
h1 {
font-size: 60px;
margin-bottom: 40px;
letter-spacing: 8px;
}
.target-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
margin-top: 50px;
}
.target {
position: relative;
width: 20%;
background-color: #fff;
padding: 40px;
margin: 20px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
cursor: pointer;
border-radius: 10px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
transition: box-shadow 0.3s ease;
}
.target:hover {
transform: scale(1.05);
box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}
.target-name {
font-size: 24px;
margin-top: 20px;
text-transform: uppercase;
}
.target-icon {
font-size: 80px;
animation: rotate-icon 5s infinite linear;
}
@keyframes rotate-icon {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
@keyframes fade-in-rotate {
0% {
opacity: 0;
transform: rotate(-180deg);
}
100% {
opacity: 1;
transform: rotate(0deg);
}
}
/* 刷新动画 */
.refresh-animation {
animation: fade-in-rotate 1s ease-out;
}
/* 鼠标移动动态效果 */
body.active {
background-color: #c7d2d9;
}
.target.active {
box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}
/* 点击背景动态效果 */
body.clicked {
background: linear-gradient(to bottom right, #ed355f, #fba63c);
}
/* 鼠标移动轨迹效果 */
.mouse-trail {
position: fixed;
top: 0;
left: 0;
pointer-events: none;
z-index: 9999;
}
.mouse-trail .trail-item {
position: absolute;
background-color: #777;
width: 8px;
height: 8px;
border-radius: 50%;
transform-origin: 50% 50%;
opacity: 0.4;
transition: transform 0.3s ease, opacity 0.3s ease;
}
style>
head>
<body>
<h1>PHPSTUDY靶场h1>
<div class="target-container">
<div class="target">
<a href="http://127.0.0.1/target/DVWA-master">
<div class="target-icon">⛑div>
<div class="target-name">DVWA-masterdiv>
a>
div>
<div class="target">
<a href="http://127.0.0.1/target/sqli-labs-master">
<div class="target-icon">☎div>
<div class="target-name">sqli-labs-masterdiv>
a>
div>
<div class="target">
<a href="http://127.0.0.1/target/bWAPP-master/app">
<div class="target-icon">☠div>
<div class="target-name">bWAPP-masterdiv>
a>
div>
<div class="target">
<a href="http://127.0.0.1/target/pikachu-master">
<div class="target-icon">⛄div>
<div class="target-name">pikachu-masterdiv>
a>
div>
<div class="target">
<a href="http://127.0.0.1/target/upload-labs-master">
<div class="target-icon">◿div>
<div class="target-name">upload-labs-masterdiv>
a>
div>
<div class="target">
<a href="http://127.0.0.1/target/xss">
<div class="target-icon">☊div>
<div class="target-name">xssdiv>
a>
div>
<div class="target">
<a href="http://127.0.0.1/target/http">
<div class="target-icon">☀div>
<div class="target-name">httpdiv>
a>
div>
<div class="target">
<a href="http://127.0.0.1/target/doubibd/doubibd.html">
<div class="target-icon">☖div>
<div class="target-name">doubibddiv>
a>
div>
div>
<div class="mouse-trail">div>
<script>
// 添加刷新动画类名
document.addEventListener("DOMContentLoaded", function() {
const targets = document.getElementsByClassName("target");
setTimeout(function() {
for (let i = 0; i < targets.length; i++) {
targets[i].classList.add("refresh-animation");
}
}, 100);
});
// 添加鼠标移动动态效果和轨迹效果
document.addEventListener("mousemove", function(event) {
document.body.classList.add("active");
const trail = document.querySelector(".mouse-trail");
const trailItem = document.createElement("div");
trailItem.classList.add("trail-item");
trail.appendChild(trailItem);
// 实时设置轨迹位置
trailItem.style.left = event.clientX + "px";
trailItem.style.top = event.clientY + "px";
// 设置淡出效果
setTimeout(function() {
trailItem.style.opacity = "0";
}, 100);
// 当轨迹元素过多时,移除最早的元素
if (trail.children.length > 10) {
trail.removeChild(trail.firstChild);
}
});
// 添加点击背景动态效果
document.body.addEventListener("click", function() {
this.classList.add("clicked");
setTimeout(function() {
document.body.classList.remove("clicked");
}, 1000);
});
script>
body>
html>
index.html
神秘靶场首页
"container">
神秘靶场
探索神秘的世界,挑战你的黑客技能:
"http://127.0.0.1/target/DVWA-master" class="target-link">DVWA-master
"http://127.0.0.1/target/sqli-labs-master" class="target-link">sqli-labs-master
"http://127.0.0.1/target/bWAPP-master/app" class="target-link">bWAPP-master
"http://127.0.0.1/target/pikachu-master" class="target-link">pikachu-master
"http://127.0.0.1/target/upload-labs-master" class="target-link">upload-labs-master
"http://127.0.0.1/target/xss" class="target-link">xss
"http://127.0.0.1/target/http" class="target-link">http
"mysterious-section">
"mysterious-text">探索更多黑客技术......
DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>PhpStudy靶场title>
<style>
body {
background-color: #190e23;
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}
.container {
max-width: 800px;
margin: 0 auto;
padding: 50px;
text-align: center;
color: #fff;
}
.logo {
font-size: 48px;
color: #fff;
margin-bottom: 30px;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.battlefield-list {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
grid-gap: 20px;
margin-top: 40px;
animation: fadeIn 1s ease;
}
.battlefield-card {
background-color: #191d2b;
box-shadow: 0 5px 10px rgba(0,0,0,0.2);
border-radius: 10px;
padding: 20px;
text-align: center;
transition: transform 0.3s ease;
position: relative;
z-index: 1;
overflow: hidden;
}
.battlefield-card:before, .battlefield-card:after {
content: "";
position: absolute;
width: 50px;
height: 50px;
}
.battlefield-card:before {
top: -10px;
left: -10px;
background-color: rgba(255, 255, 255, 0.1);
transform: rotate(45deg);
}
.battlefield-card:after {
bottom: -10px;
right: -10px;
background-color: rgba(255, 255, 255, 0.1);
transform: rotate(-45deg);
}
.battlefield-card:hover {
transform: translateY(-5px);
box-shadow: 0px 8px 15px rgba(0,0,0,0.3);
cursor: pointer;
}
.battlefield-title {
font-size: 24px;
margin-bottom: 10px;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.battlefield-link {
display: inline-block;
color: #fff;
background-color: #444;
padding: 10px 20px;
border-radius: 4px;
text-decoration: none;
transition: background-color 0.3s ease;
}
.battlefield-link:hover {
background-color: #666;
}
@keyframes fadeIn {
0% { opacity: 0; }
100% { opacity: 1; }
}
style>
head>
<body>
<div class="container">
<h1 class="logo">PhpStudy靶场h1>
<div class="battlefield-list">
<div class="battlefield-card">
<h2 class="battlefield-title">DVWA-masterh2>
<a class="battlefield-link" href="http://127.0.0.1/target/DVWA-master">进入a>
div>
<div class="battlefield-card">
<h2 class="battlefield-title">sqli-labs-masterh2>
<a class="battlefield-link" href="http://127.0.0.1/target/sqli-labs-master">进入a>
div>
<div class="battlefield-card">
<h2 class="battlefield-title">bWAPP-masterh2>
<a class="battlefield-link" href="http://127.0.0.1/target/bWAPP-master/app">进入a>
div>
<div class="battlefield-card">
<h2 class="battlefield-title">pikachu-masterh2>
<a class="battlefield-link" href="http://127.0.0.1/target/pikachu-master">进入a>
div>
<div class="battlefield-card">
<h2 class="battlefield-title">upload-labs-masterh2>
<a class="battlefield-link" href="http://127.0.0.1/target/upload-labs-master">进入a>
div>
<div class="battlefield-card">
<h2 class="battlefield-title">xssh2>
<a class="battlefield-link" href="http://127.0.0.1/target/xss">进入a>
div>
<div class="battlefield-card">
<h2 class="battlefield-title">httph2>
<a class="battlefield-link" href="http://127.0.0.1/target/http">进入a>
div>
<div class="battlefield-card">
<h2 class="battlefield-title">doubibdh2>
<a class="battlefield-link" href="http://127.0.0.1/target/doubibd/doubibd.html">进入a>
div>
div>
div>
body>
html>
DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>靶场首页title>
<style>
body {
background-color: #f4f7f8;
font-family: 'Arial', sans-serif;
margin: 0;
}
header {
background-color: #17252A;
padding: 20px;
color: #fff;
text-align: center;
font-size: 28px;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
#targets {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
padding: 0 30px;
margin-top: 40px;
}
.target-card {
flex-basis: 300px;
margin: 20px;
padding: 20px;
text-align: center;
background-color: #ffffff;
background-image: url('https://example.com/pattern.png');
background-size: cover;
background-position: center;
border-radius: 10px;
box-shadow: 0 2px 6px rgba(23, 37, 42, 0.3);
transition: transform 0.3s ease, opacity 0.3s ease;
position: relative;
overflow: hidden;
}
.target-card:before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-image: radial-gradient(#ffffff, transparent 70%);
-webkit-transform: scale(2);
transform: scale(2);
opacity: 0.08;
}
.target-card:hover {
transform: translateY(-5px);
}
.target-title {
font-size: 20px;
margin-bottom: 10px;
color: #17252A;
}
.target-link {
display: inline-block;
border: none;
padding: 10px 20px;
background-color: #FF6E40;
color: #ffffff;
text-decoration: none;
border-radius: 30px;
font-size: 16px;
transition: background-color 0.3s ease;
position: relative;
z-index: 1;
}
.target-link:hover {
background-color: #FF5722;
}
@media (max-width: 576px) {
.target-card {
flex-basis: 100%;
margin: 10px;
}
}
@keyframes fadeIn {
0% { opacity: 0; transform: scale(0.9); }
100% { opacity: 1; transform: scale(1); }
}
style>
<script>
window.addEventListener('load', function() {
var targetsContainer = document.getElementById('targets');
// 靶场列表数组
var targets = [
{ title: 'DVWA-master', url: 'http://127.0.0.1/target/DVWA-master' },
{ title: 'sqli-labs-master', url: 'http://127.0.0.1/target/sqli-labs-master' },
{ title: 'bWAPP-master', url: 'http://127.0.0.1/target/bWAPP-master/app' },
{ title: 'pikachu-master', url: 'http://127.0.0.1/target/pikachu-master' },
{ title: 'upload-labs-master', url: 'http://127.0.0.1/target/upload-labs-master' },
{ title: 'xss', url: 'http://127.0.0.1/target/xss' },
{ title: 'http', url: 'http://127.0.0.1/target/http' },
{ title: 'doubibd', url: 'http://127.0.0.1/target/doubibd/doubibd.html' },
// 添加更多靶场...
];
targets.forEach(function(target) {
var targetCard = document.createElement('div');
targetCard.classList.add('target-card');
targetCard.style.animation = 'fadeIn 1s';
var targetTitle = document.createElement('h2');
targetTitle.classList.add('target-title');
targetTitle.textContent = target.title;
var targetLink = document.createElement('a');
targetLink.classList.add('target-link');
targetLink.href = target.url;
targetLink.textContent = '查看靶场';
targetCard.appendChild(targetTitle);
targetCard.appendChild(targetLink);
targetsContainer.appendChild(targetCard);
});
});
script>
head>
<body>
<header>靶场首页header>
<div id="targets">
div>
body>
html>