Chrome ExtensionのLive HTTP Headersを調査した。Firefox用のものではない。Firefox用のものではない。
11/7追記
- 類似 or 同様の方法で難読化scriptを埋め込んでいる拡張機能が大量にあったため、Googleに報告済み。
- https://twitter.com/bulkneets/status/795260268221636608
Summary in english.
#!/usr/bin/env ruby | |
# A sneaky wrapper around Rubocop that allows you to run it only against | |
# the recent changes, as opposed to the whole project. It lets you | |
# enforce the style guide for new/modified code only, as opposed to | |
# having to restyle everything or adding cops incrementally. It relies | |
# on git to figure out which files to check. | |
# | |
# Here are some options you can pass in addition to the ones in rubocop: | |
# |
Chrome ExtensionのLive HTTP Headersを調査した。Firefox用のものではない。Firefox用のものではない。
11/7追記
Summary in english.
以下の記事の続きです。
https://gist.github.com/masatokinugawa/304d243b6a5142500b9b9efb3fb540c0
今回は、前回の記事に比べると、テクニカルなXSSの解説寄りです。 この知識が多くの人にとってどれほど役に立つかはわかりませんが、攻撃を通すまでのステップが複雑で面白かったので共有したいと思います。
machine: | |
java: | |
version: openjdk7 | |
environment: | |
RAILS_ENV: test | |
JRUBY_OPTS: -J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -J-noverify -X-C -Xcompile.invokedynamic=false --1.9 -J-Xmx2g | |
dependencies: | |
cache_directories: | |
- '~/.rvm/rubies' |
つい先日である27日前に、VimConf 2017 が日本の東京で開催されました。VimConfは世界初かつ世界で唯一の、コミュニティによって定期運営されているVimの国際カンファレンスで、今年で5回目です。
VimConf 2018が来年2018年に開催されることが予告されましたが、これに参加することは熾烈を極める争いになることが予想されます。27日前のVimConf 2017開催中に、「来年の同じ会場を予約する」という発言がありました。同じ会場、つまり客席数は同じです。一方、VimConf 2017の時点ですでにチケットは完売して参加できなかった人も大勢発生しており、このいまの高まるVim熱を鑑みるに、来年は今年の2倍、3倍の激しいチケット争奪戦になることはもはや確定事項といえます。
そんなVimConf 2018のチケットを入手するにはどうすればよいか、公開情報のみから考察し、まとめます。((なお著者のujihisaはVimConfのスタッフで、裏事情のすべてを完全に把握しているかもしれない人物ですが、この記事では公開されていない情報は一切知らなかったことにして考察を進めています。)) 以下に4項目を、難易度の低い順に羅列します。基本的に上の方に記述されているものを優先し、それができなかったら代替案として下に記述されているものを採用すると、すべての物事がスムーズに進み便利です。
#! /usr/bin/perl | |
# | |
# Written in 2017 by Kazuho Oku | |
# | |
# To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty. | |
# You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>. | |
# | |
use strict; | |
use warnings; |
import numpy as np | |
import random | |
import math | |
import cv2 | |
from PIL import Image | |
def recognize(im): | |
# 輪郭線抽出のための二値化 | |
im_gray = cv2.cvtColor(im, cv2.COLOR_BGR2GRAY) | |
im_blur = cv2.GaussianBlur(im_gray, (3, 3), 0) |