Spaces:
Runtime error
Runtime error
Niv Sardi
commited on
Commit
·
d3fcc5e
1
Parent(s):
8aad435
add webext
Browse filesSigned-off-by: Niv Sardi <[email protected]>
- extension/forts/cuidado.png +3 -0
- extension/forts/error.png +3 -0
- extension/forts/errorf.png +3 -0
- extension/forts/ok.png +3 -0
- extension/icons/48.png +3 -0
- extension/manifest.json +33 -0
- extension/observer.js +22 -0
- extension/pages/error.html +34 -0
- extension/pages/nossl.html +35 -0
- extension/pages/success.html +34 -0
- extension/pres/pres.org +4 -0
extension/forts/cuidado.png
ADDED
![]() |
Git LFS Details
|
extension/forts/error.png
ADDED
![]() |
Git LFS Details
|
extension/forts/errorf.png
ADDED
![]() |
Git LFS Details
|
extension/forts/ok.png
ADDED
![]() |
Git LFS Details
|
extension/icons/48.png
ADDED
![]() |
Git LFS Details
|
extension/manifest.json
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"manifest_version": 2,
|
3 |
+
"name": "Spoof detect",
|
4 |
+
"version": "0.0.1",
|
5 |
+
"icons": {
|
6 |
+
"48": "icons/48.png"
|
7 |
+
},
|
8 |
+
"description": "Try to detect website spoofing",
|
9 |
+
"content_scripts": [
|
10 |
+
{
|
11 |
+
"matches": ["<all_urls>"],
|
12 |
+
"js": ["detect.js", "observer.js"]
|
13 |
+
}
|
14 |
+
],
|
15 |
+
"background": {
|
16 |
+
"scripts": ["background.js"]
|
17 |
+
},
|
18 |
+
"web_accessible_resources": [
|
19 |
+
"forts/*.png",
|
20 |
+
"pages/*.html"
|
21 |
+
],
|
22 |
+
"browser_action": {
|
23 |
+
"default_icon": "icons/48.png",
|
24 |
+
"default_title": "Detect"
|
25 |
+
},
|
26 |
+
"permissions": [
|
27 |
+
"webRequest",
|
28 |
+
"webRequestBlocking",
|
29 |
+
"activeTab",
|
30 |
+
"tabs",
|
31 |
+
"<all_urls>"
|
32 |
+
]
|
33 |
+
}
|
extension/observer.js
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
// Set up a mutation observer to listen for title changes
|
3 |
+
// Will fire if framework AJAX stuff switches page title
|
4 |
+
let createObserver = function() {
|
5 |
+
let observer = new MutationObserver((mutations) => {
|
6 |
+
// Disconnect the MO so there isn't an infinite title update loop
|
7 |
+
// Run title cleanup again
|
8 |
+
// Create a new MO to listen for more changes
|
9 |
+
console.log('Mutations!', mutations)
|
10 |
+
observer.disconnect()
|
11 |
+
observer = null
|
12 |
+
run()
|
13 |
+
createObserver()
|
14 |
+
})
|
15 |
+
/*
|
16 |
+
observer.observe(
|
17 |
+
document.querySelector('input'),
|
18 |
+
{ subtree: true, characterData: true, childList: true }
|
19 |
+
)
|
20 |
+
*/
|
21 |
+
}
|
22 |
+
createObserver()
|
extension/pages/error.html
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="utf-8">
|
5 |
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
6 |
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
7 |
+
<title>FORT&NET</title>
|
8 |
+
</head>
|
9 |
+
<body>
|
10 |
+
<div id="____message">
|
11 |
+
<h1>Me parece que te estan culeando</h1>
|
12 |
+
<h2>¡ este no es quien pretende ser !</h2>
|
13 |
+
</div>
|
14 |
+
<img src="../forts/errorf.png"/>
|
15 |
+
</body>
|
16 |
+
<style>
|
17 |
+
#____message {
|
18 |
+
position: absolute;
|
19 |
+
background: #f37;
|
20 |
+
color: #ff0;
|
21 |
+
width: 100%;
|
22 |
+
padding: 4%;
|
23 |
+
margin: 0;
|
24 |
+
height: 200px;
|
25 |
+
bottom: 0px;
|
26 |
+
}
|
27 |
+
img {
|
28 |
+
position: absolute;
|
29 |
+
bottom: -50px;
|
30 |
+
right: -5vw;
|
31 |
+
height: 60vh;
|
32 |
+
}
|
33 |
+
</style>
|
34 |
+
</html>
|
extension/pages/nossl.html
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="utf-8">
|
5 |
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
6 |
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
7 |
+
<title>FORT&NET</title>
|
8 |
+
</head>
|
9 |
+
<body>
|
10 |
+
<div id="____message">
|
11 |
+
<h1>¿ Que te haces el banco vos ?</h1>
|
12 |
+
<h2>¡ Si ni tenes certificado !</h2>
|
13 |
+
</div>
|
14 |
+
<img src="../forts/cuidado.png"/>
|
15 |
+
</body>
|
16 |
+
<style>
|
17 |
+
#____message {
|
18 |
+
position: absolute;
|
19 |
+
background: #f37;
|
20 |
+
color: #ff0;
|
21 |
+
width: 100%;
|
22 |
+
padding: 4%;
|
23 |
+
margin: 0;
|
24 |
+
height: 200px;
|
25 |
+
bottom: 0px;
|
26 |
+
}
|
27 |
+
img {
|
28 |
+
position: absolute;
|
29 |
+
bottom: 0px;
|
30 |
+
right: 0px;
|
31 |
+
height: 50vh;
|
32 |
+
|
33 |
+
}
|
34 |
+
</style>
|
35 |
+
</html>
|
extension/pages/success.html
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="utf-8">
|
5 |
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
6 |
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
7 |
+
<title>FORT&NET</title>
|
8 |
+
</head>
|
9 |
+
<body>
|
10 |
+
<div id="____message">
|
11 |
+
<h1>¡ Está todo bien papi !</h1>
|
12 |
+
<h2>esta pagina es 100% kosher</h2>
|
13 |
+
</div>
|
14 |
+
<img src="../forts/ok.png"/>
|
15 |
+
</body>
|
16 |
+
<style>
|
17 |
+
#____message {
|
18 |
+
position: absolute;
|
19 |
+
background: #f37;
|
20 |
+
color: #ff0;
|
21 |
+
width: 100%;
|
22 |
+
padding: 4%;
|
23 |
+
margin: 0;
|
24 |
+
height: 200px;
|
25 |
+
bottom: 0px;
|
26 |
+
}
|
27 |
+
img {
|
28 |
+
position: absolute;
|
29 |
+
bottom: -50px;
|
30 |
+
right: 0
|
31 |
+
|
32 |
+
}
|
33 |
+
</style>
|
34 |
+
</html>
|
extension/pres/pres.org
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#+TITLE: Cuidando a tu Abuela con IA
|
2 |
+
#+SUBTITLE: Combatir el phishing con redes neuronales
|
3 |
+
|
4 |
+
* Hola
|