Migrate to stamblerre/gocode in YouCompleteMe for Go module support
apt install build-essential cmake python3-dev
git clone --depth 1 https://github.com/Valloric/YouCompleteMe.git
cd /home/jun/.vim/pack/plugins/start/YouCompleteMe
git submodule update --init --recursive
vim /home/jun/.vim/pack/plugins/start/YouCompleteMe/third_party/ycmd/ycmd/completers/go/go_completer.py
mdempsky/gocode
stamblerre/gocode
vim /home/jun/.vim/pack/plugins/start/YouCompleteMe/third_party/ycmd/.gitmodules
mdempsky/gocode
stamblerre/gocode
rm -rf third_party/ycmd/third_party/go/src/github.com/mdempsky/
vim ./third_party/ycmd/build.py
cd third_party/ycmd/third_party/go/src/github.com
mkdir stamblerre
cd stamblerre
git clone --depth 1 https://github.com/stamblerre/gocode.git
cd /home/jun/.vim/pack/plugins/start/YouCompleteMe
./install.py --go-completer
Reference:
https://github.com/Valloric/YouCompleteMe
https://github.com/stamblerre/gocode
Saturday, February 23, 2019
Sunday, February 10, 2019
HTML a tag target="_blank" vulnerability tabnabbing
HTML a tag target="_blank" vulnerability tabnabbing
Solution 1:
Solution 2:
Reference:
https://www.jitbit.com/alexblog/256-targetblank---the-most-underestimated-vulnerability-ever/
https://medium.com/@ali.dev/how-to-fix-target-blank-a-security-and-performance-issue-in-web-pages-2118eba1ce2f
window.opener.location = 'https://fakewebsite/facebook.com/PHISHING-PAGE.html';
Solution 1:
<a target="_blank" rel="noopener noreferrer">demo</a>
Solution 2:
var newWnd = window.open();
newWnd.opener = null;
Reference:
https://www.jitbit.com/alexblog/256-targetblank---the-most-underestimated-vulnerability-ever/
https://medium.com/@ali.dev/how-to-fix-target-blank-a-security-and-performance-issue-in-web-pages-2118eba1ce2f
Subscribe to:
Posts (Atom)