File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 1010from email .mime .multipart import MIMEMultipart
1111from email .mime .text import MIMEText
1212from time import sleep
13- from xml .etree .ElementTree import *
1413
1514import numpy as np
1615import 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
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments