wok-next rev 19457
ppp.cgi: anti phishing attack trick
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Oct 21 15:36:54 2016 +0200 (2016-10-21) |
parents | 75f2bc86c03f |
children | c76d35a1ca0b |
files | ajaxterm/stuff/usr/share/ajaxterm/ajaxterm.js ppp/stuff/ppp.cgi |
line diff
1.1 --- a/ajaxterm/stuff/usr/share/ajaxterm/ajaxterm.js Fri Oct 21 16:09:15 2016 +0300 1.2 +++ b/ajaxterm/stuff/usr/share/ajaxterm/ajaxterm.js Fri Oct 21 15:36:54 2016 +0200 1.3 @@ -58,7 +58,7 @@ 1.4 try { 1.5 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); 1.6 } catch (err) { 1.7 - debug('Access denied, <a href="http://kb.mozillazine.org/Granting_JavaScript_access_to_the_clipboard" target="_blank">more info</a>'); 1.8 + debug('Access denied, <a href="http://kb.mozillazine.org/Granting_JavaScript_access_to_the_clipboard" target="_blank" rel="noopener">more info</a>'); 1.9 return undefined; 1.10 } 1.11 var clip = Components.classes["@mozilla.org/widget/clipboard;1"].createInstance(Components.interfaces.nsIClipboard);
2.1 --- a/ppp/stuff/ppp.cgi Fri Oct 21 16:09:15 2016 +0300 2.2 +++ b/ppp/stuff/ppp.cgi Fri Oct 21 15:36:54 2016 +0200 2.3 @@ -126,21 +126,21 @@ 2.4 <header> 2.5 $(_ 'Documentation') 2.6 </header> 2.7 - <a data-icon="web" href="http://ppp.samba.org/" target="_blank">$(_ 'PPP web page')</a><p> 2.8 - <a data-icon="help" href="index.cgi?exec=pppd%20--help" target="_blank">$(_ 'PPP help')</a><p> 2.9 - <a data-icon="help" href="index.cgi?exec=man%20pppd" target="_blank">$(_ 'PPP Manual')</a><p> 2.10 + <a data-icon="web" href="http://ppp.samba.org/" target="_blank" rel="noopener">$(_ 'PPP web page')</a><p> 2.11 + <a data-icon="help" href="index.cgi?exec=pppd%20--help" target="_blank" rel="noopener">$(_ 'PPP help')</a><p> 2.12 + <a data-icon="help" href="index.cgi?exec=man%20pppd" target="_blank" rel="noopener">$(_ 'PPP Manual')</a><p> 2.13 EOT 2.14 [ "$(which pptp 2>/dev/null)" ] && cat <<EOT 2.15 - <a data-icon="web" href="http://pptpclient.sourceforge.net/" target="_blank">$(_n 'PPTP web page')</a><p> 2.16 - <a data-icon="help" href="index.cgi?exec=pptp" target="_blank">$(_ 'PPTP Help')</a><p> 2.17 + <a data-icon="web" href="http://pptpclient.sourceforge.net/" target="_blank" rel="noopener">$(_n 'PPTP web page')</a><p> 2.18 + <a data-icon="help" href="index.cgi?exec=pptp" target="_blank" rel="noopener">$(_ 'PPTP Help')</a><p> 2.19 EOT 2.20 [ "$(which pptpd 2>/dev/null)" ] && cat <<EOT 2.21 - <a data-icon="web" href="http://poptop.sourceforge.net/" target="_blank">$(_n 'PPTPD web page')</a><p> 2.22 - <a data-icon="help" href="index.cgi?exec=pptpd%20--help" target="_blank">$(_ 'PPTPD Help')</a><p> 2.23 + <a data-icon="web" href="http://poptop.sourceforge.net/" target="_blank" rel="noopener">$(_n 'PPTPD web page')</a><p> 2.24 + <a data-icon="help" href="index.cgi?exec=pptpd%20--help" target="_blank" rel="noopener">$(_ 'PPTPD Help')</a><p> 2.25 EOT 2.26 [ "$(which pppssh 2>/dev/null)" ] && cat <<EOT 2.27 - <a data-icon="web" href="http://doc.slitaz.org/en:guides:vpn" target="_blank">$(_n 'VPN Wiki')</a><p> 2.28 - <a data-icon="help" href="index.cgi?exec=dbclient" target="_blank">$(_ 'SSH Help')</a><p> 2.29 + <a data-icon="web" href="http://doc.slitaz.org/en:guides:vpn" target="_blank" rel="noopener">$(_n 'VPN Wiki')</a><p> 2.30 + <a data-icon="help" href="index.cgi?exec=dbclient" target="_blank" rel="noopener">$(_ 'SSH Help')</a><p> 2.31 EOT 2.32 cat << EOT 2.33 <footer> 2.34 @@ -150,19 +150,19 @@ 2.35 <header> 2.36 $(_ 'Configuration') 2.37 </header> 2.38 - <a data-icon="conf" href="index.cgi?file=/etc/ppp/scripts/ppp-on" target="_blank">$(_ 'PPP PSTN script')</a><p> 2.39 - <a data-icon="conf" href="index.cgi?file=/etc/ppp/scripts/ppp-on-dialer" target="_blank">$(_ 'PPP dialer chat')</a><p> 2.40 - <a data-icon="conf" href="index.cgi?file=/etc/ppp/options" target="_blank">$(_ 'PPP options')</a><p> 2.41 - <a data-icon="conf" href="index.cgi?file=/etc/ppp/chap-secrets" target="_blank">$(_ 'chap users')</a><p> 2.42 - <a data-icon="conf" href="index.cgi?file=/etc/ppp/pap-secrets" target="_blank">$(_ 'pap users')</a><p> 2.43 + <a data-icon="conf" href="index.cgi?file=/etc/ppp/scripts/ppp-on" target="_blank" rel="noopener">$(_ 'PPP PSTN script')</a><p> 2.44 + <a data-icon="conf" href="index.cgi?file=/etc/ppp/scripts/ppp-on-dialer" target="_blank" rel="noopener">$(_ 'PPP dialer chat')</a><p> 2.45 + <a data-icon="conf" href="index.cgi?file=/etc/ppp/options" target="_blank" rel="noopener">$(_ 'PPP options')</a><p> 2.46 + <a data-icon="conf" href="index.cgi?file=/etc/ppp/chap-secrets" target="_blank" rel="noopener">$(_ 'chap users')</a><p> 2.47 + <a data-icon="conf" href="index.cgi?file=/etc/ppp/pap-secrets" target="_blank" rel="noopener">$(_ 'pap users')</a><p> 2.48 EOT 2.49 for i in /etc/ppp/peers/* ; do 2.50 [ -s "$i" ] && cat << EOT 2.51 - <a data-icon="conf" href="index.cgi?file=$i" target="_blank">$(basename $i)</a><p> 2.52 + <a data-icon="conf" href="index.cgi?file=$i" target="_blank" rel="noopener">$(basename $i)</a><p> 2.53 EOT 2.54 done 2.55 [ "$(which pptpd 2>/dev/null)" ] && cat <<EOT 2.56 - <a data-icon="conf" href="index.cgi?file=/etc/pptpd.conf" target="_blank">$(_ 'pptpd.conf')</a><p> 2.57 + <a data-icon="conf" href="index.cgi?file=/etc/pptpd.conf" target="_blank" rel="noopener">$(_ 'pptpd.conf')</a><p> 2.58 EOT 2.59 if [ "$(busybox ps x | grep "pppd" | awk '/modem/{print $1}')" ]; then 2.60 start_disabled='disabled'