Skip to content

Instantly share code, notes, and snippets.

View ninoseki's full-sized avatar

Manabu Niseki ninoseki

View GitHub Profile
@ninoseki
ninoseki / test.rb
Created December 12, 2018 02:37
Playing with wss://certstream.calidog.io in Ruby
require 'faye/websocket'
require 'eventmachine'
require "json"
EM.run {
ws = Faye::WebSocket::Client.new("wss://certstream.calidog.io")
ws.on :message do |event|
message = JSON.parse(event.data)
all_domains = message.dig("data", "leaf_cert", "all_domains")
@ninoseki
ninoseki / memo.md
Last active October 11, 2018 03:34
TheHive & Cortex update guide

TheHive & Cortex update guide

This is a TheHive & Crotex update guide for targeting following versions:

  • TheHive: 3.0.10 to 3.1.1.
  • Cortex: 2.0.4 to 2.1.1.

Update packages

@ninoseki
ninoseki / fingerprints.json
Created October 3, 2018 00:55
Web app (CMS & etc.) fingerprints based on w11scan database.
{
"phpmps": {
"path": "/admin/images/arrow_up.gif",
"option": "md5",
"content": "f1294d6b18c489dc8f1b6dfd137ff681",
"hit": 0
},
"杰奇小说连载系统": {
"path": "/templates/admin/images/m_bgss.gif",
"option": "md5",
1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa
12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX
1HLoD9E4SDFFPDiYfNYnkBLQ85Y51J3Zb1
1FvzCLoTPGANNjWoUo6jUGuAG3wg1w4YjR
15ubicBBWFnvoZLT7GiU2qxjRaKJPdkDMG
1JfbZRwdDHKZmuiZgYArJZhcuuzuw2HuMu
1GkQmKAmHtNfnD3LHhTkewJxKHVSta4m2a
16LoW7y83wtawMg5XmT4M3Q7EdjjUmenjM
1J6PYEzr4CUoGbnXrELyHszoTSz3wCsCaj
12cbQLTFMXRnSzktFkuoG3eHoMeFtpTu3S
@ninoseki
ninoseki / memo.md
Created October 1, 2018 04:06
「テキスト校正くん」をインストールせずに vscode-textlint 経由で使う方法

Using テキスト校正くん without installing the VS Code extension

モチベーション

  • すでに vscode-textlint を使用しているので、二重に textlint を管理する extension をインストールしたくない。
  • 二重にインストールして使うと(textlint のプロセスが複数動く?ので)衝突する可能性があるのでは?
    • きちんと動作確認していないので、杞憂かも。

インストール

@ninoseki
ninoseki / test.ts
Created September 5, 2018 23:08
Send a screenshot (by using puppeteer) to Slack
import request from "request";
import puppeteer from "puppeteer";
const API_URL = "https://slack.com/api/files.upload";
const SLACK_API_TOKEN = process.env.SLACK_API_TOKEN as string;
const CHANNEL = "general";
(async () => {
const url = "http://neverssl.com"
const browser = await puppeteer.launch();
  • hash(sha256): 275a021bbfb6489e54d471899f7db9d1663fc695ec2fe2a2c4538aabf651fd0f
  • link to https://github.com

digging

digging is a WEB API for DNS digging.

How to use

In order to send a data you must perform an HTTP POST request to the following URL:

  • https://dns-digging.herokuapp.com/
document.addEventListener('selectionchange', () => {
const selection: string = window.getSelection().toString().trim();
chrome.runtime.sendMessage({
request: 'updateContextMenu',
target: selection,
});
});
const links = document.getElementsByTagName('a');
for (const link of links) {