Skip to content

Commit 51a8309

Browse files
committed
Improve overall
1 parent 6d26cdc commit 51a8309

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

easybuggy/views.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from email.mime.multipart import MIMEMultipart
1111
from email.mime.text import MIMEText
1212
from time import sleep
13-
from xml.etree.ElementTree import *
1413

1514
import numpy as np
1615
import psutil
@@ -119,7 +118,7 @@ def csrf(request):
119118
}
120119
if request.method == 'POST' and "username" in request.session:
121120
username = request.session["username"]
122-
password = request.POST["password"]
121+
password = request.POST.get("password")
123122
if password is not None:
124123
try:
125124
from django.contrib.auth.models import User

templates/adminmain.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{% include "header.html" %}
55
{% trans 'msg.admin.page.top' %}<br><br>
66
<ul>
7-
<!--<li><a href="/uid/serverinfo.jsp">{% trans 'title.serverinfo.page' %}</a></li>-->
7+
<li><a href="/admin/">{% trans 'Django administration' %}</a></li>
88
<li><a href="/admins/csrf">{% trans 'title.csrf.page' %}</a></li>
99
<li><a href="/admins/clickjacking">{% trans 'title.clickjacking.page' %}</a></li>
1010
</ul>

templates/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ <h2>
123123
{% trans 'function.name.brute.force' %}</a>:
124124
<span>{% trans 'function.description.brute.force' %}</span>
125125
</p></li>
126-
<li><p><a href="/admins/main?logintype=openredirect&goto=/uid/serverinfo.jsp" shape="rect">
126+
<li><p><a href="/admins/main?logintype=openredirect&goto=/admin/" shape="rect">
127127
{% trans 'function.name.open.redirect' %}</a>:
128128
<span>{% trans 'function.description.open.redirect' %}</span>
129129
</p></li>

0 commit comments

Comments
 (0)