Niv Sardi commited on
Commit
d3fcc5e
1 Parent(s): 8aad435

add webext

Browse files

Signed-off-by: Niv Sardi <xaiki@evilgiggle.com>

extension/forts/cuidado.png ADDED

Git LFS Details

  • SHA256: e4f1b439442b2a0b9d266c27ff02b1ade0839123528753866166bde56707dfbd
  • Pointer size: 132 Bytes
  • Size of remote file: 1.59 MB
extension/forts/error.png ADDED

Git LFS Details

  • SHA256: 290ea5baa8585538ebac6130aab05964fe4706bfef2d5ef5ded0521e8e532d92
  • Pointer size: 132 Bytes
  • Size of remote file: 1.12 MB
extension/forts/errorf.png ADDED

Git LFS Details

  • SHA256: 7ffb7cfffe8fcdf128f72b6de6cd9a9d61fc71bbe0e347d30e4f73500675deff
  • Pointer size: 131 Bytes
  • Size of remote file: 760 kB
extension/forts/ok.png ADDED

Git LFS Details

  • SHA256: 520ea74da2612154256d563818be395742648797f82d4c5ffcf972bf28931f6b
  • Pointer size: 131 Bytes
  • Size of remote file: 310 kB
extension/icons/48.png ADDED

Git LFS Details

  • SHA256: 825d5852ba7b2b0822cab6e2aca3a9d26b0c8cbbc5343a861041e7f70d823095
  • Pointer size: 128 Bytes
  • Size of remote file: 866 Bytes
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