Skip to content
KitploitKITPLOIT
도구블로그
제출
도구블로그
제출

해킹, 침투 테스트 및 사이버 보안 도구를 당신의 보안 무기고에!

Kitploit은 해킹, 사이버 보안 및 침투 테스트 도구 디렉토리입니다. 최신 프로젝트 업데이트를 발견하여 취약점을 찾고, 시스템을 분석하고, 테스트를 자동화하고, 보안을 강화하세요.

··피드·문의·개인정보·© 2026 Kitploit

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
xioc — 텍스트에서 침해 지표를 추출합니다. "이스케이프된" 것들도 포함합니다. | Kitploit
도구/GitHubGitHub/assafmo/xioc
Indicator of Compromise (IOC) ManagementOSINT (Open Source Intelligence)ForensicsInformation GatheringUtilities & FrameworksThreat Intelligence
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]
# ...

라이브러리 사용법

전체 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 팽(Fang) 및 디팽(Defang): https://github.com/ioc-fang/ioc_fanger
  • 침해 지표 (디)팽 프로젝트: 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 라이브러리