Skip to content

Commit 3ad6ef0

Browse files
committed
Commit
1 parent 6e7e240 commit 3ad6ef0

14 files changed

+122
-122
lines changed

Dataset/1training.png

50.1 KB
Loading

Dataset/2ModelFile.png

9.87 KB
Loading

Dataset/3Testing.png

48.2 KB
Loading

Dataset/4Phishing.png

96.9 KB
Loading

Dataset/5Warning.png

128 KB
Loading

Dataset/Algorithmia-phishing-test.arff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@
3232
@attribute Result {-1,1}
3333

3434
@data
35-
-1,-1,1,1,1,-1,-1,-1,1,1,1,1,-1,-1,0,-1,1,1,0,1,1,1,1,-1,1,-1,-1,-1,1,1
35+
1,1,1,1,1,1,1,1,1,1,1,1,-1,-1,0,-1,1,1,0,1,1,1,1,-1,1,1,1,1,1,-1

Extension/content.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
var div = document.createElement("div");
2-
div.setAttribute("id", "se-pre-con");
3-
document.body.appendChild(div);
4-
document.getElementById("se-pre-con").innerHTML = "<br><br><br><br><h1>Warning!!</h1><br><img src='http://pluspng.com/img-png/png-wrong-cross-clear-cross-empty-incorrect-red-wrong-icon-512.png'></img><br><p>This Page is suspected as Phishing Site.</p>";
5-
var div2 = document.createElement("div");
6-
div2.setAttribute("id", "del");
7-
document.getElementById('se-pre-con').appendChild(div2);
8-
document.getElementById("del").innerHTML = "<a>Click Here to Close the Message.</a>"
9-
div2.onclick = function() {this.parentNode.removeChild(this);document.getElementById('se-pre-con').remove();
10-
}
11-
1+
var div = document.createElement("div");
2+
div.setAttribute("id", "se-pre-con");
3+
document.body.appendChild(div);
4+
document.getElementById("se-pre-con").innerHTML = "<br><br><br><br><h1>Warning!!</h1><br><img src='http://pluspng.com/img-png/png-wrong-cross-clear-cross-empty-incorrect-red-wrong-icon-512.png'></img><br><p>This Page is suspected as Phishing Site.</p>";
5+
var div2 = document.createElement("div");
6+
div2.setAttribute("id", "del");
7+
document.getElementById('se-pre-con').appendChild(div2);
8+
document.getElementById("del").innerHTML = "<a>Click Here to Close the Message.</a>"
9+
div2.onclick = function() {this.parentNode.removeChild(this);document.getElementById('se-pre-con').remove();
10+
}
11+

Extension/content1.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
var div = document.createElement("div");
2-
div.setAttribute("id", "se-pre-con");
3-
document.body.appendChild(div);
4-
document.getElementById("se-pre-con").innerHTML = "<br><br><br><br><h1>Safe!!</h1><br><img src='https://upload.wikimedia.org/wikipedia/commons/5/58/Disponible.png'></img><p>This Page is not a Phishing Site.</p>";
5-
var div2 = document.createElement("div");
6-
div2.setAttribute("id", "del");
7-
document.getElementById('se-pre-con').appendChild(div2);
8-
document.getElementById("del").innerHTML = "<a>Click Here to Close the Message.</a>"
9-
div2.onclick = function() {this.parentNode.removeChild(this);document.getElementById('se-pre-con').remove();
10-
}
11-
1+
var div = document.createElement("div");
2+
div.setAttribute("id", "se-pre-con");
3+
document.body.appendChild(div);
4+
document.getElementById("se-pre-con").innerHTML = "<br><br><br><br><h1>Safe!!</h1><br><img src='https://upload.wikimedia.org/wikipedia/commons/5/58/Disponible.png'></img><p>This Page is not a Phishing Site.</p>";
5+
var div2 = document.createElement("div");
6+
div2.setAttribute("id", "del");
7+
document.getElementById('se-pre-con').appendChild(div2);
8+
document.getElementById("del").innerHTML = "<a>Click Here to Close the Message.</a>"
9+
div2.onclick = function() {this.parentNode.removeChild(this);document.getElementById('se-pre-con').remove();
10+
}
11+

Extension/manifest.json

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
{
2-
"manifest_version": 2,
3-
4-
"name": "Phishing Site Detector",
5-
"version": "0.1.0",
6-
"description": "Phishing Site Detector",
7-
"browser_action": {
8-
"default_icon": "icons.png"
9-
},
10-
"content_scripts": [{
11-
"css": ["styles.css"],
12-
"js": ["content.js"],
13-
"matches": ["https://blog.lateral.io/*"]
14-
},
15-
{
16-
"css": ["styles1.css"],
17-
"js": ["content1.js"],
18-
"matches": ["https://accounts.google.com/*"]
19-
}
20-
]
21-
22-
}
1+
{
2+
"manifest_version": 2,
3+
4+
"name": "Phishing Site Detector",
5+
"version": "0.1.0",
6+
"description": "Phishing Site Detector",
7+
"browser_action": {
8+
"default_icon": "icons.png"
9+
},
10+
"content_scripts": [{
11+
"css": ["styles.css"],
12+
"js": ["content.js"],
13+
"matches": ["https://blog.lateral.io/*"]
14+
},
15+
{
16+
"css": ["styles1.css"],
17+
"js": ["content1.js"],
18+
"matches": ["https://accounts.google.com/*"]
19+
}
20+
]
21+
22+
}

Extension/styles.css

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
1-
.no-js #loader { display: none; }
2-
.js #loader { display: block; position: absolute; left: 100px; top: 0; }
3-
#se-pre-con {
4-
position: fixed;
5-
left: 0px;
6-
top: 0px;
7-
width: 100%;
8-
height: 100%;
9-
z-index: 9999;
10-
background: url() center no-repeat red;
11-
opacity:0.7;
12-
color:white;
13-
font-size:20px;
14-
}
15-
16-
#se-pre-con h1{
17-
padding-left:100px;
18-
padding-top: 30px;
19-
color: white;
20-
font-size: 60px;
21-
}
22-
23-
#se-pre-con p{
24-
padding-left:100px;
25-
color: white;
26-
font-size: 30px;
27-
}
28-
#se-pre-con img{
29-
padding-left:100px;
30-
height:180px;
31-
width:300px;
32-
}
33-
34-
#del a{
35-
cursor:pointer;
36-
padding-left:100px;
37-
color: white;
38-
font-size: 20px;
1+
.no-js #loader { display: none; }
2+
.js #loader { display: block; position: absolute; left: 100px; top: 0; }
3+
#se-pre-con {
4+
position: fixed;
5+
left: 0px;
6+
top: 0px;
7+
width: 100%;
8+
height: 100%;
9+
z-index: 9999;
10+
background: url() center no-repeat red;
11+
opacity:0.7;
12+
color:white;
13+
font-size:20px;
14+
}
15+
16+
#se-pre-con h1{
17+
padding-left:100px;
18+
padding-top: 30px;
19+
color: white;
20+
font-size: 60px;
21+
}
22+
23+
#se-pre-con p{
24+
padding-left:100px;
25+
color: white;
26+
font-size: 30px;
27+
}
28+
#se-pre-con img{
29+
padding-left:100px;
30+
height:180px;
31+
width:300px;
32+
}
33+
34+
#del a{
35+
cursor:pointer;
36+
padding-left:100px;
37+
color: white;
38+
font-size: 20px;
3939
}

0 commit comments

Comments
 (0)