Skip to content

Commit

Permalink
1st
Browse files Browse the repository at this point in the history
  • Loading branch information
yasutakatou committed Aug 27, 2020
0 parents commit fa737a3
Show file tree
Hide file tree
Showing 10 changed files with 6,830 additions and 0 deletions.
123 changes: 123 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
# goScore

**Simple URL's security score check tool. (implement by Golang and Chrome Extension.)**.

# solution

When you're search knowledge, suddenly you may see a alert by Security Scan tool.<br>
You have unfortunately displayed a site that contains a *malware script*.<br>
But you've search a lot of for learn. I don't blame you.<br>
<br>
**Can't we at least easily check if it's suspicious before we open it?**<br>
<br>
I created this tool with that in mind *for you*!<br>

# features

When you right-click and select **context menu**, it opens a **temporary tab** before URL be opened.<br>
In that tab, **request Golang API** on server and will check the following.<br>

- Can name **resolve on the Secure DNS server**?
- Is SSL certificate is **not free type**?
- Is **higher rank search results** on search engines?

Check results are displayed with a **score(star rate)**.

# installation

[download extension from release page](https://github.com/yasutakatou/goScoreExtension/releases)
save binary file, [manually install method on Chrome extension.](https://www.cnet.com/how-to/how-to-install-chrome-extensions-manually/)

# uninstall

use app uninstall method on **Chrome extension**.

# usecase

1. prepare server

- run server and **space or enter press** will display **ip addres and port**.

2. setting on Chrome extension

- input server address to chrome extension.

- in case of success, **it will be added**.

3. Check URL

- in case of checking url, **right click on link, display context menu, send to server**.

- new tab will open, waiting for making score from server.

- **score displayed**.

note) **if url cached, server return old result**. So, it's fast.<br>

# config file

This tool have config file, detail is following.

note) default config file name is **"config"**.

## [CACHE]

cached time.
this value format is value and unit multiplication.
unit is
"d", "D": 12 * 60 * 60
"h", "H": 60 * 60
"m", "M": 60
"s", "S": 1
example)
12 D -> 12days
30 M -> 30minuts

[DNS]
9.9.9.9
1.1.1.1

define DNS servers to resolve.





[SEARCH]
1

define google page rank.
If your search results rank lower than this value, Return a star to the client.


[SSL]
DigiCert
GlobalSign
Google Trust Services
GeoTrust
SECOM Passport
Sectigo RSA Organization
Cybertrust

define you trusted ssl certificate authority.



[HISTORY]
https://www.google.co.jp/ 1598448280 000

this value is server cache.
format
url, cached unit time, score.
score "0" is star, "1" is no star.



# FYI (many thanks!)

- A simple Chrome extension that replaces your new tab page with the to-do list of the day along with your to-learn checklist<br>
https://github.com/PoojaB26/ToDoList-ChromeExtension

# LICENSE

MIT License
28 changes: 28 additions & 0 deletions background.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
window.onload = function() {
var restURL;
restURL = window.localStorage.getItem("goScore");
if (restURL != null) {
fetch(restURL + "/token", {
method: 'GET'
}).then(response => {
return response.json();
}).then(result => {
if (result.status == 'Success') {
let ul = document.getElementById("todo-listUl");
addUI(ul, restURL);
console.log(result.message);
window.localStorage.setItem("Token", result.message);
}
});
}
};

chrome.contextMenus.create({
"title" : "Check the URL score",
"type" : "normal",
"contexts" : ["link"],
"onclick" : function(info){
//alert(info.linkUrl);
chrome.tabs.create({ url: 'newtab.html?'+info.linkUrl });
}
});
Loading

0 comments on commit fa737a3

Please sign in to comment.