ARP欺骗检测软件 - 防御网络攻击的利器
<html>
<head>
<meta charset="UTF-8">
<title>ARP欺骗检测软件</title>
<style>
#index {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
}
<pre><code> #index h1 {
margin-bottom: 50px;
}
#index a {
margin-top: 20px;
}
</style>
</code></pre>
</head>
<body>
<div id="index">
<h1>ARP欺骗检测软件</h1>
<a href="{{ url_for('register') }}">注册</a>
<a href="{{ url_for('login') }}">登录</a>
</div>
</body>
</html>
def index():
return render_template('index.html')
@app.route('/login', methods=['GET', 'POST'])
def login():
if request.method == 'POST':
with open("user.txt", "r") as f:
users = f.readlines()
for user in users:
if user.split()[0] == request.form['username'] and user.split()[1] == request.form['password']:
session['username'] = request.form['username']
flash("登录成功!")
return redirect(url_for('func'))
flash("用户名或密码错误!")
return render_template('login.html')
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>ARP欺骗检测软件</title>
<style>
#container {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
<pre><code> #text {
text-align: center;
}
</style>
</code></pre>
</head>
<body>
<div id="container">
<h1>功能页面</h1>
<ul>
<li><a href="{{ url_for('icmp_flood') }}">检测ICMP flood攻击</a></li>
<li><a href="{{ url_for('tcp_attack') }}">检测TCP攻击</a></li>
<li><a href="{{ url_for('arp_spoofing') }}">检测ARP欺骗攻击</a></li>
<li><a href="{{ url_for('detect_attack') }}">检测攻击源</a></li>
<li><a href="{{ url_for('scan_network') }}">扫描局域网主机</a></li>
<li><a href="{{ url_for('view_detection_log') }}">查看检测记录</a></li>
</ul>
<a href="{{ url_for('logout') }}">退出登录</a>
</div>
</body>
</html>
AI 优化版
原文地址:http://www.cveoy.top/t/topic/jn8l 著作权归作者所有。请勿转载和采集!