Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Luciano Barletta
/
Pruebas-RTO
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit d8e46e30
authored
2024-07-23 20:23:16 -0300
by
Tu Nombre
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Mejora critica de seguridad
1 parent
7a65f711
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletions
main.py
static/src/historico.js → protected_static/historico.js
templates/historico.html
main.py
View file @
d8e46e3
#-*- coding: utf-8 -*-
from
flask
import
Flask
,
render_template
,
request
,
url_for
,
make_response
,
redirect
from
flask
import
send_from_directory
,
abort
from
iselenium
import
SeleniumInterface
as
SI
import
random
,
json
,
os
,
datetime
,
ingenieros
,
apollo
,
fosadiaria
import
configuracion
...
...
@@ -53,6 +54,13 @@ def main():
bypass
=
False
)
@app.route
(
'/protected_static/<path:filename>'
)
def
protected_static
(
filename
):
if
"login"
in
request
.
cookies
:
return
send_from_directory
(
'protected_static'
,
filename
)
else
:
return
abort
(
403
)
@app.route
(
'/historico'
)
def
historico
():
if
"login"
not
in
request
.
cookies
:
...
...
@@ -115,6 +123,9 @@ def manual():
bypass
=
True
)
@app.route
(
'/anomalies'
,
methods
=
[
'POST'
])
def
anomalies
():
if
"login"
not
in
request
.
cookies
:
...
...
static/sr
c/historico.js
→
protected_stati
c/historico.js
View file @
d8e46e3
File moved
templates/historico.html
View file @
d8e46e3
...
...
@@ -6,7 +6,7 @@
<meta
http-equiv=
"X-UA-Compatible"
content=
"ie=edge"
>
<link
rel=
"stylesheet"
href=
"{{ url_for('static', filename = 'styles/general.css') }}"
>
<script
src=
"
{{ url_for('static', filename = 'src/historico.js') }}
"
></script>
<script
src=
"
/protected_static/historico.js
"
></script>
<!--INCLUIMOS LA FUENTE
<link rel="stylesheet" media="screen" href="https://fontlibrary.org/face/cmu-typewriter" type="text/css" />
-->
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment