From 91808391a9e1d7d39c03afeb7e5ed3d51724420b Mon Sep 17 00:00:00 2001 From: beu Date: Wed, 16 May 2018 18:47:22 +0200 Subject: [PATCH] first commit --- README.md | 5 +++++ httpspluschecker.zip | Bin 0 -> 8382 bytes icon_x48.png | Bin 0 -> 9402 bytes icon_x96.png | Bin 0 -> 37139 bytes manifest.json | 24 ++++++++++++++++++++++++ popup/dnssec.js | 37 +++++++++++++++++++++++++++++++++++++ popup/index.html | 21 +++++++++++++++++++++ popup/style.css | 31 +++++++++++++++++++++++++++++++ 8 files changed, 118 insertions(+) create mode 100644 README.md create mode 100644 httpspluschecker.zip create mode 100644 icon_x48.png create mode 100644 icon_x96.png create mode 100644 manifest.json create mode 100644 popup/dnssec.js create mode 100644 popup/index.html create mode 100644 popup/style.css diff --git a/README.md b/README.md new file mode 100644 index 0000000..eecc556 --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# HTTPS+ Checker + +The extension quickly check if the website has HSTS, HPKP, DANE / TLSA and DNSSEC. + +Based on personnal API. diff --git a/httpspluschecker.zip b/httpspluschecker.zip new file mode 100644 index 0000000000000000000000000000000000000000..a9457dcc70c0c36bffe5384403031a53f77f9719 GIT binary patch literal 8382 zcmZ{J1z4NQwswLA4N%;J6?ZFAoZ?z&ad&r@;4Upt910XE)?x*U7I#W<*W#YycGGkI zy?4)l?wvf7^~}mQ?>pbD%vv*R)D#hs&;h@TNSlR{X7{`t6cqsYUBPgjwY$5sn~}4< zha0=IqgAw;iYyj7>F>v}*5iY;+G6IwUuD)XOxj;7L8=CB-K-AB}2kA_TB<+K!ub_r1u~}nng-e zgHoII16$Q&em8v)bXj3(Pt!epAB4Ov{Z}p*j{Ud&w-*UUC4Q|sny)6MJY3M2Jo1Mw z4!K1~1S+*$ThW=#Kzbo>t63M3(!UfO;da+jP0WX;wqh-`CrdSx5%c~?UBe&{U(t`c zGhfr0NvlPu%8QFbEB+PZqSF}75-l+HbXs4!phqrmZ8Fp|r+*{XREXf&gP7U;W0F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^Gh((!IeU0?jJOKb7b1aqM zQ}cKEedFQm$ z95N*}IoDK>V1jpswCp$h!3`%cf(X5$%6X3ZY{;*!FGp5H#g_e7-kdSbI2;tdtrrHb zu|6V9VSqTgxyYB%mRUtzhzY7cA~ZEeu- zII89N7@)NNZWZSFdG!Qh-H~0aWaQn6fgdd14*7&Ywo@2NbG%;&lz!*9Tv3J54f5fZ zmD1t|VUpgU31Zo%NEY;mvH>zqjrf};$E*tjR~_2&kFY@d!3yzNW>rdol2syYlDX!E z_H6wj!b-_xYKGnoZbUvr z008H2BicBcTX?fuyF1tyB`YiPaN+bFkCmV{iO%ZFc!n1sOE6)~`K3Rdu(aoIrhDnp z-a5DR3aKY_`5`02JP`JF(2dCP5l!6(Ng$d=*c@kCYOudv4QRc&zu7q^$7gLt@0xmdE~~ooZPyZwSgT%jj4?W| zR(H}{da$194z5xcVI-t=U`Cr+SMvZ_`5Y zHf?u#tbF8ge4X*J!!bsYeYdDr7{gu86=X@j<5t|bt4+u&)4gz`87fxBfqiG-Cp~1s zO$^s;_^P2cXnv`@xAyFg&BJXTxn>Jjc0w%Xuk+(pYnCP3}7IazI)#B%IFYM$g_`k%k5s%L0__aiKkWV6cdle z5OwZZIM2}fFrP0oLRM$LQ4^Y)**+xvkAZCA28u>bykCMFrW0M)+^$h#!=F-5qS!N`m zm|&-I^B|_gpoXJexK9EihynhuD_eLj^j`(?|KxvO;GzTmtp@^#0SZO@vXgZaKzQ1r zZsHI5Z~Xr&&H5*P1^klu&!p?0=;s-TyA!JuK*&DuKjfe2|D87Z6I}=%ivErM?HB zzgOs=3?<}$G5oz=|0MYJjM+gEPGEIvjNc0XTfW-T{g+fzME)If;kkcQz$F3zP)+f> F^*>Xn_AUSb literal 0 HcmV?d00001 diff --git a/icon_x48.png b/icon_x48.png new file mode 100644 index 0000000000000000000000000000000000000000..e2574367ae1a55535cb157f5c420baf10fb6a972 GIT binary patch literal 9402 zcmeHNe`p*<6rR~MOi z(Vzy=T>O!UP|(u9`c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 HcmV?d00001 diff --git a/icon_x96.png b/icon_x96.png new file mode 100644 index 0000000000000000000000000000000000000000..0d1bd772d6720defdfdbdb22356006bf80cfee1d GIT binary patch literal 37139 zcmeI53vgD&6~}kK7!qhfsMfJ{w6;a3b;b^&0#<|~!4MRr$`FAnfe-@tg2p1P)d1s@ zhqbm9NN`F(2Whdx43z;|6jZ9bgeq3(s06fNtp=f#hmhRrON8^=@c*8<_xIqZ&FC8o3zQ}Q7OYwP z8zgNf_8(TE)K|_C)~ag$`3UpwD;n4@Z_im5o!9yMKi}VFpi&pBqJlm{rfBtUT5#EIu5IlQr6iNuowI-rS;{?vMwf^1J^5^(?wbJZxfb!2p@oVz_su{;H~f> z7)!Ygy6nvc!p(}BjRUNCR|2;BDp=(!ojVwO`vTjKxIQmo#5C2jtPe@Q24}5N)`_+F z=?K?{borKM;f$<1z^d+^ODnzrpt=K0F%0;Pt(l*clZC})@Dg|p#B{)4nYbDAlxcT>6ve9QK9m{ABLq8} z7cHxrd&zwkcfzmIU5d0jfIFa)S>`-L zsvpANpau6Pt|#HI!HJTrAD+btQuee_S{-0jcYB1vmc^l!mp~0hNa|P})lP ztT;-|R8ViD(zEs0O)^(c8R3jVjQtGm1xuOYsJpIFIl1@fF>f3sT}mmALYU`kRb5>| z7chsGpKq8-fZw4)dYUfV^rB&!gw$|^OadN;yTY=!V@Ucz6$;JJWgF=ZQ%5Ox0O0pm zRznR%G~7bapVJoSs~laaOE+a?Rf-ej4)`TJ0scB{Mmkik@;c4eBUh(v8zZF-U}bv= zgX0of{}qNck`1%T^y@E~>8Dl;NA$zuWAK$`mi0&6rMGgIZZgyN*OCpel#n&AYYy8A z6~^G}&~_?Qnl139(hTl@p<7`!-nboMfCH=c25S}*f({1CMk*9r^4Hvg_iTr4Aj&QC*oP z?)25opaR{|x5;ib+}SrTsmOea;hv&=xxQzdB!Fzp=bnZxPGDW`+YKJ*L2 z5{@y{b5%=$1FY*@tv5xSJE_lprJ9}vK%%(_z2K9kIYqChFm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Z?7DHH^K|F<3$S@PQV8>Fj|sn1NKUwm`(8mG#tz>ggL;88xycf`pM%o6nPFz0)-w`SI z2(Kkh4s~VLW2Z_4kJ^O^UQ74pNMWG!2cpL0f5Qi zC@V74Rm%o+hhs;crivnL{SJZj`>7akbt85-<2uB5xr*V%t`;&AQA0M; z?L@WwlUc9kcYt9rwxTCX-jD72fG=HJDV+3vL!)gSTFmFPignqBs0L%t*QjOlSC4b~ z!@HN0cs$$%z63rSPB)z(18G6>+DcS62w<{?c?IqXn~;oWaNlw1PuG`B|36^mlBfUx literal 0 HcmV?d00001 diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..bd49500 --- /dev/null +++ b/manifest.json @@ -0,0 +1,24 @@ +{ + "manifest_version": 2, + "name": "HTTPS+ Checker", + "version": "0.0.2", + "description": "Verification of security mechanisms complementary to HTTPS", + "permissions": [ + "tabs", + "webRequest", + "" + ], + "browser_action": { + "default_title": "HTTPS+ Checker", + "default_icon": { + "48": "icon_x48.png", + "96": "icon_x96.png" + }, + "default_popup": "popup/index.html" + }, + + "icons": { + "48": "icon_x48.png", + "96": "icon_x96.png" + } +} diff --git a/popup/dnssec.js b/popup/dnssec.js new file mode 100644 index 0000000..e9ec513 --- /dev/null +++ b/popup/dnssec.js @@ -0,0 +1,37 @@ + +var xhr = new XMLHttpRequest(); + +browser.tabs.query({ active: true, lastFocusedWindow: true }).then(function(tab) { + const url = new URL(tab[0].url); + if (url.protocol === "http:" || url.protocol === "https:" ) { + var host = url.hostname ; + + xhr.open('GET', 'https://httpspluschecker.virtit.fr/?domain=' + host, false); + xhr.send(); + + + value = JSON.parse(xhr.responseText); + + if (value['DNSSEC'] === true ) { + document.getElementById("dnssec").className = "success"; + } else { + document.getElementById("dnssec").className = "danger"; + } + if (value['DANE'] === true ) { + document.getElementById("dane").className = "success"; + } else { + document.getElementById("dane").className = "danger"; + } + if (value['HSTS'] === true ) { + document.getElementById("hsts").className = "success"; + } else { + document.getElementById("hsts").className = "danger"; + } + if (value['HPKP'] === true ) { + document.getElementById("hpkp").className = "success"; + } else { + document.getElementById("hpkp").className = "danger"; + } + } + +}); diff --git a/popup/index.html b/popup/index.html new file mode 100644 index 0000000..797f488 --- /dev/null +++ b/popup/index.html @@ -0,0 +1,21 @@ + + + + + + + + +
HTTPS+ Checker
+ + + + + + + + + +
HSTSHPKP
DNSSECDANE/TLSA
+ + \ No newline at end of file diff --git a/popup/style.css b/popup/style.css new file mode 100644 index 0000000..7b0d258 --- /dev/null +++ b/popup/style.css @@ -0,0 +1,31 @@ +body { + width: 250px; +} + +table, td, th { + border: 1px solid black; +} +table { + border-collapse: collapse; + width: 95%; +} +td { + height: 30px; + text-align: center; + vertical-align: center; + width: 50%; +} +.success { + background-color: #dff0d8; +} +.danger { + background-color: #f2dede; +} +.loading { + background-color: #fff2e6; +} +.title { + text-align: center; + font-weight: bold; + font-size: 18px; +} \ No newline at end of file