Skip to content
KitploitKITPLOIT
ツールブログ
提出
ツールブログ
提出

ハッキング、侵入テスト、サイバーセキュリティツールをあなたのセキュリティアーセナルに!

Kitploitはハッキング、サイバーセキュリティ、ペネトレーションテストのツールディレクトリです。最新のプロジェクトアップデートを見つけて、脆弱性の発見、システム分析、テストの自動化、セキュリティの強化を行いましょう。

··フィード·お問い合わせ·プライバシー·© 2026 Kitploit

ツールディレクトリ

カテゴリ

すべてのカテゴリを見る
Loading categories
xioc — テキストから、'エスケープされた'ものを含む侵害指標を抽出します。 | Kitploit
ツール/GitHubGitHub/assafmo/xioc
侵害指標 (IOC) 管理OSINT (オープンソースインテリジェンス)フォレンジック情報収集ユーティリティとフレームワーク脅威インテリジェンス
GitHubassafmo/xioc

xioc

テキストから、'エスケープされた'ものを含む侵害指標を抽出します。

リポジトリを見る
16396年前Kitploit レビュー済み

人気

すべて見る →

コミュニティで最も使われているツールを見つけましょう。

すべてのツールを探索

ツールコレクションを閲覧

すべてのツールを見る →
共有

xioc

テキストから、hxxp://banana.com、1.1.1[.]1、phish at malicious dot com のような「エスケープ」されたものを含む侵害指標を抽出します。

CircleCI Coverage Status Go Report Card GoDoc

インストール

  • プリコンパイル済みバイナリを https://github.com/assafmo/xioc/releases からダウンロード

  • または go get を使用:

    root@kitploit:~
    go get -u github.com/assafmo/xioc
    
  • または snap を使用してインストール (Ubuntu):

    root@kitploit:~
    snap install xioc
    
  • または Ubuntu PPA を使用:

    root@kitploit:~
    curl -SsL https://assafmo.github.io/ppa/ubuntu/KEY.gpg | sudo apt-key add -
    sudo curl -SsL -o /etc/apt/sources.list.d/assafmo.list https://assafmo.github.io/ppa/ubuntu/assafmo.list
    sudo apt update
    sudo apt install xioc
    

機能

  • 入力テキストから IOC(侵害指標)を抽出:
    • IPv4
    • IPv6
    • Domain
    • URL
    • Email
    • MD5
    • SHA1
    • SHA256
  • いくつかの種類の「エスケープ」/「無力化」手法を変換:
    • (dot), [dot], (.), [.], {.} を . に変換
    • (at), [at], (@), [@], {@} を @ に変換
    • hxxp, hzzzp, hxxxp, , , を に変換

コマンドラインの使用法

root@kitploit:~
$ xioc -h
Usage of xioc:
  -o string
        Extract only specified types.
        Types must be comma seperated. E.g: xioc -o "ip4,domain,url,md5"
        Available types:
                - ip4
                - ip6
                - domain
                - url
                - email
                - md5
                - sha1
                - sha256
  -v    Print version and exit
root@kitploit:~
$ REPORT="https://unit42.paloaltonetworks.com/digital-quartermaster-scenario-demonstrated-in-attacks-against-the-mongolian-government/"
$ lynx -dump "$REPORT" | xioc
sha256  5beb50d95c1e720143ca0004f5172cb8881d75f6c9f434ceaff59f34fa1fe378
domain  energy.gov.mn
email   [email protected]
sha256  10090692ff40758a08bd66f806e0f2c831b4b9742bbf3d19c250e778de638f57
# ...
root@kitploit:~
$ REPORT="https://unit42.paloaltonetworks.com/digital-quartermaster-scenario-demonstrated-in-attacks-against-the-mongolian-government/"
$ lynx -dump "$REPORT" | xioc -o email,sha256
sha256  5beb50d95c1e720143ca0004f5172cb8881d75f6c9f434ceaff59f34fa1fe378
email   [email protected]
sha256  10090692ff40758a08bd66f806e0f2c831b4b9742bbf3d19c250e778de638f57
email   [email protected]
# ...

ライブラリの使用法

Full API:
GoDoc

root@kitploit:~
package main

import (
	"fmt"

	"github.com/assafmo/xioc/xioc"
)

func main() {
	input := `e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
	banana.com
	hxxp://i.robot.com/robots.txt
	1.2.3.4
	1.1.1[.]1
	info at gmail dot com
	hxxps://m.twitter[dot]com/`

	fmt.Println(xioc.ExtractDomains(input)) // => [i.robot.com m.twitter.com gmail.com banana.com]
	fmt.Println(xioc.ExtractSHA256s(input)) // => [e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855]
	fmt.Println(xioc.ExtractMD5s(input))    // => []
	fmt.Println(xioc.ExtractIPv4s(input))   // => [1.2.3.4 1.1.1.1]
	fmt.Println(xioc.ExtractURLs(input))    // => [http://i.robot.com/robots.txt https://m.twitter.com/]
	fmt.Println(xioc.ExtractEmails(input))  // => [[email protected]]
}

出典

  • テスト用メールアドレス: http://codefool.tumblr.com/post/15288874550/list-of-valid-and-invalid-email-addresses
  • ドメインは数字で始まってもよい: https://serverfault.com/a/638270
  • IPv6 の例: http://www.gestioip.net/docu/ipv6_address_examples.html
  • IOC の無力化と再無力化: https://github.com/ioc-fang/ioc_fanger
  • Indicator of Compromise (De)Fanging Project: https://ioc-fang.hightower.space/
  • InQuest/python-iocextract のテストデータ: https://github.com/InQuest/python-iocextract/tree/master/test_data
  • メールアドレスは大文字小文字を区別しないとして扱える: https://stackoverflow.com/a/9808332
ツールをダウンロード
hXXp
h__p
h**p
http
  • コマンドラインインターフェース
  • Go ライブラリ