Skip to content

Instantly share code, notes, and snippets.

@ishideo
ishideo / jarm-list.csv
Created July 25, 2023 00:55 — forked from gboddin/jarm-list.csv
JARM exploration
HASH Description
21d2ad00021d21d00021d2ad21d21df4e3c58923bbd15f0f36892ab3187607 QNAP devices
29d29d00029d29d21c29d29d29d29de89a29da3ee50098446f31579da51a6e Docker registries
29d29d20d29d29d00029d29d29d29d7d36b37b24a2d9588a0b8abfe23303d7 Kubernetes masters
29d29d15d29d29d21c29d29d29d29d7e041aa174fa2d3165f8bda79299bfea Ubiquity/CommVault
2ad2ad0002ad2ad0002ad2ad2ad2ad755a2cec4b52fb1bce1ac7f1e48c8a7d F5?
3fd3fd0003fd3fd0003fd3fd3fd3fd5b4368bf786845fef915ced422fd1b09 Minio
29d29d00029d29d21c42d43d00041db6525da0b3c6db046c54191c7bbf62aa FSecure policy manager
@ishideo
ishideo / file0.py
Created May 21, 2021 08:30 — forked from esehara/file0.py
はてなブックマークのお気に入りユーザーで、既にアクティヴではないユーザーを調べる ref: http://qiita.com/esehara@github/items/d595c89c52a81052bf42
# -*- coding: utf-8 -*-
from bs4 import BeautifulSoup
import sys
import urllib
def _init():
if len(sys.argv) == 1:
print "usage: lastbookmark.py user_name"
sys.exit(1)
@ishideo
ishideo / octopress-to-cryogen.clj
Created April 8, 2021 09:43 — forked from rickerbh/octopress-to-cryogen.clj
Babashka script to port posts from jekyll/octopress format to cryogen
(require '[clojure.java.io :as io]
'[clojure.string :as string]
'[clojure.tools.cli :refer [parse-opts]])
(def cli-options
[["-o" "--out DIR" "Output directory"
:default "out"]
["-s" "--source SOURCE" "Source directory"
:default "source/_posts"]
["-h" "--help"]])
@ishideo
ishideo / scrape_tables.clj
Created April 8, 2021 09:40 — forked from borkdude/scrape_tables.clj
Extract HTML tables with babashka and bootleg
(ns scrape
(:require [babashka.pods :as pods]
[clojure.walk :as walk]))
(pods/load-pod "bootleg") ;; installed on path, use "./bootleg" for local binary
(require '[babashka.curl :as curl])
(def clojure-html (:body (curl/get "https://en.wikipedia.org/wiki/Clojure")))
@ishideo
ishideo / zig_watch.clj
Created April 8, 2021 09:40 — forked from saikyun/zig_watch.clj
babashka command to watch a folder for changes to .zig-files
#!/usr/bin/env bb
(if *command-line-args*
(def in (str (first *command-line-args*)))
(do
(println "Which bin to run?")
(def in (str *input*))))
(println "Watching" "*.zig" "->" (str "./" in))
#!/usr/bin/env bash
cat input.tsv | bb -e '
(->> (line-seq (java.io.BufferedReader. *in*))
(map #(java.net.URLEncoder/encode % "UTF-8"))
(str/join "\n")
println)'
#!/usr/bin/env bash
cat input.tsv | bb -e '
(-> *in*
java.io.BufferedReader.
line-seq
(->> (map #(str/split % #"\t"))
(map first)
(str/join \newline)
println))
#!/usr/bin/env bash
cat ip.tsv | parallel -t -j24 --pipe -q awk -F'\t' '{json="curl -s https://sonar.omnisint.io/reverse/" $1 " | jq -cr ."; json | getline output;print $1, output;close(json)}' | tee subdomains.tsv
javascript: (() => {
let text = prompt('Enter comma-separated domains', '');
let lines = text.split(',');
lines.forEach(_ => {
open('https://www.bing.com/search?q="' + _ + '"', '_blank');
});
})();
@ishideo
ishideo / asn
Created June 18, 2020 07:58 — forked from nitefood/README.md
ASN/IP/Route/hostname command line lookup tool to map any network to the corresponding ASN and prefix
#!/bin/bash
############################################################################################################
# ----------------------------------------------------------------------
# ASN/IPv4/Prefix lookup tool. Uses Team Cymru's whois service for data.
# ----------------------------------------------------------------------
# example usage:
# asn <ASnumber> -- to lookup matching ASN data. Supports "as123" and "123" formats (case insensitive)
# asn <IP.AD.DR.ESS> -- to lookup matching route and ASN data
# asn <ROUTE> -- to lookup matching ASN data