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

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

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

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

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
onedrive_user_enum — onedrive user enumeration - pentest tool to enumerate valid o365 users | Kitploit
도구/GitHubGitHub/nyxgeek/onedrive_user_enum
OSINT (Open Source Intelligence)ReconnaissanceInformation GatheringPenetration TestingCloud SecurityRed Teaming
GitHubnyxgeek/onedrive_user_enum

onedrive_user_enum

onedrive user enumeration - pentest tool to enumerate valid o365 users

저장소 보기
764931년 전Kitploit 검토 완료

인기

모두 보기 →

커뮤니티에서 가장 많이 사용되는 도구를 찾아보세요.

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →
공유

onedrive_user_enum v2.10

유효한 OneDrive 사용자를 열거합니다.

열거 기법과 OneDrive enum에 대한 전체 내용은 다음 블로그를 확인하세요:

https://www.trustedsec.com/blog/onedrive-to-enum-them-all/

이전의 비데이터베이스 버전의 OneDrive Enum을 찾고 있다면 여기에서 찾을 수 있습니다: https://github.com/nyxgeek/simple_scanners

2.10의 새로운 기능:

  • 원격 MySQL DB 로깅 옵션 -- 원격 데이터베이스에 로깅
  • PAUSEFILE -- pausefile이 있으면 (/tmp/PAUSEFILE) 열거를 일시 중지합니다
  • 사용자 목록을 x자로 자르기 -- johnsmith -> johnsmi

2.00의 새로운 기능:

  • 로컬 데이터베이스 (sqlite3)
  • 테넌트 자동 조회 (@DrAzureAD 및 @thetechr0mancer에게 감사)
  • 파일 또는 파일 폴더 읽기
  • Append -- 'jsmith1', 'jsmith2' 스프레이를 쉽게 생성합니다
  • Skip-Tried (중복 제거) -- 이전에 시도한 사용자 이름 제거
  • Kill-After -- 'x'회 시도 내에 사용자 이름이 식별되지 않으면 사용자 목록 취소

OneDrive 열거 개요:

OneDrive 사용자는 알려진 위치의 파일 공유 URL을 가지고 있습니다:

https://acmecomputercompany-my.sharepoint.com/personal/lightmand_acmecomputercompany_com/_layouts/15/onedrive.aspx

이 경우 사용자 이름은 'lightmand'이고 도메인은 'acmecomputercompany.com'입니다. 사용자가 OneDrive에 로그인한 적이 있으면 이 경로가 존재하며 403 상태 코드를 반환합니다. 그렇지 않거나 사용자가 유효하지 않으면 404를 반환합니다.

결과는 조직 내 OneDrive 사용 범위에 따라 달라질 수 있습니다. 현재 제가 아는 한 가장 신뢰할 수 있는 사용자 열거 방법입니다 (office365userenum은 더 이상 작동하지 않으며 UhOh365 같은 다른 도구는 신뢰할 수 없습니다). 또한 로그인을 시도하지 않으며 훨씬 수동적이어서 대상 조직이 감지하지 못해야 합니다. Microsoft는 히트를 볼 수 있지만 대상 조직은 보지 못합니다.

사용법:

root@kitploit:~
 # ./onedrive_enum.py -h

*********************************************************************************************************

                                         ██████               ███                          
                                        ░░████               ░░░                           
   ██████    █████████     ███████    ████████   █████████   ████   █████  █████   ███████ 
  ███░░███  ░░███░░░███   ███░░░███  ███░░░███  ░░███░░░███ ░░███  ░░███  ░░███   ███░░░███
 ░███  ░███  ░███  ░███  ░████████  ░███ ░░███   ░███  ░░░   ░███   ░███   ░███  ░████████ 
 ░███  ░███  ░███  ░███  ░███░░░░   ░███ ░░███   ░███        ░███   ░░███  ███   ░███░░░   
 ░░██████    ████  █████ ░░███████  ░░█████████  ██████      █████   ░░██████    ░░███████ 
  ░░░░░░    ░░░░  ░░░░░   ░░░░░░░    ░░░░░░░░░  ░░░░░░      ░░░░░     ░░░░░░      ░░░░░░░  
                                                                             
                                                                             
   ██████  ████████   █████ ████ █████████████      +-------------------------------------------------+
  ███░░███░░███░░███ ░░███ ░███ ░░███░░███░░███     |               OneDrive Enumerator               |
 ░███████  ░███ ░███  ░███ ░███  ░███ ░███ ░███     |           2023 @nyxgeek - TrustedSec            |
 ░███░░░   ░███ ░███  ░███ ░███  ░███ ░███ ░███     |                 version 2.10                    |
 ░░██████  ████ █████ ░░████████ █████░███ █████    |  https://github.com/nyxgeek/onedrive_user_enum  |
  ░░░░░░  ░░░░ ░░░░░   ░░░░░░░░ ░░░░░ ░░░ ░░░░░     +-------------------------------------------------+
                                                                             
*********************************************************************************************************
usage: onedrive_enum.py [-h] -d  [-t] [-e] [-u] [-U] [-p] [-a] [-tr] [-T] [-r] [-x] [-n] [-m] [-o] [-k] [-v] [-D]

options:
  -h, --help           show this help message and exit
  -d , --domain        target domain name (required)
  -t , --tenant        tenant name
  -e , --environment   Azure environment to target [commercial (default), chinese, gov]
  -u , --username      user to target
  -U , --userfile      file containing usernames (wordlists) -- will also take a directory
  -p , --playlist      file containing list of paths to user lists (wordlists) to try
  -a , --append        mutator: append a number, character, or string to a username
  -tr , --truncate     truncate to x characters
  -T , --threads       total number of threads (defaut: 100)
  -r, --rerun          force re-run of previously tested tenant/domain/wordlist combination
  -x, --skip-tried     dedupe. skip any usernames from previous runs
  -n, --no-db          disable logging to db
  -m , --mysql         file containing mysql data (db.conf)
  -o , --output        file to append found users to
  -k , --killafter     kill off non-productive jobs after x tries with no success
  -v, --verbose        enable verbose output
  -D, --debug          enable debug output


예제 - 기본 사용법:

root@kitploit:~
 # ./onedrive_enum.py -t microsoft -d microsoft.com -U USERNAMES/statistically-likely/jsmith.txt

*********************************************************************************************************

                                         ██████               ███                          
                                        ░░████               ░░░                           
   ██████    █████████     ███████    ████████   █████████   ████   █████  █████   ███████ 
  ███░░███  ░░███░░░███   ███░░░███  ███░░░███  ░░███░░░███ ░░███  ░░███  ░░███   ███░░░███
 ░███  ░███  ░███  ░███  ░████████  ░███ ░░███   ░███  ░░░   ░███   ░███   ░███  ░████████ 
 ░███  ░███  ░███  ░███  ░███░░░░   ░███ ░░███   ░███        ░███   ░░███  ███   ░███░░░   
 ░░██████    ████  █████ ░░███████  ░░█████████  ██████      █████   ░░██████    ░░███████ 
  ░░░░░░    ░░░░  ░░░░░   ░░░░░░░    ░░░░░░░░░  ░░░░░░      ░░░░░     ░░░░░░      ░░░░░░░  
                                                                             
                                                                             
   ██████  ████████   █████ ████ █████████████      +-------------------------------------------------+
  ███░░███░░███░░███ ░░███ ░███ ░░███░░███░░███     |               OneDrive Enumerator               |
 ░███████  ░███ ░███  ░███ ░███  ░███ ░███ ░███     |           2023 @nyxgeek - TrustedSec            |
 ░███░░░   ░███ ░███  ░███ ░███  ░███ ░███ ░███     |                 version 2.10                    |
 ░░██████  ████ █████ ░░████████ █████░███ █████    |  https://github.com/nyxgeek/onedrive_user_enum  |
  ░░░░░░  ░░░░ ░░░░░   ░░░░░░░░ ░░░░░ ░░░ ░░░░░     +-------------------------------------------------+
                                                                             
*********************************************************************************************************
Beginning enumeration of https://microsoft-my.sharepoint.com/personal/USER_microsoft_com/
--------------------------------------------------------------------------------------------------------
[-] [403] VALID USERNAME FOR microsoft,microsoft.com - user1, username:[email protected]
[-] [403] VALID USERNAME FOR microsoft,microsoft.com - user2, username:[email protected]
[-] [403] VALID USERNAME FOR microsoft,microsoft.com - user3, username:[email protected]


예제 - MySQL DB 로깅:

root@kitploit:~
 # ./onedrive_enum.py -t microsoft -d microsoft.com -U USERNAMES/statistically-likely/jsmith.txt -m db.conf

*********************************************************************************************************

                                         ██████               ███                          
                                        ░░████               ░░░                           
   ██████    █████████     ███████    ████████   █████████   ████   █████  █████   ███████ 
  ███░░███  ░░███░░░███   ███░░░███  ███░░░███  ░░███░░░███ ░░███  ░░███  ░░███   ███░░░███
 ░███  ░███  ░███  ░███  ░████████  ░███ ░░███   ░███  ░░░   ░███   ░███   ░███  ░████████ 
 ░███  ░███  ░███  ░███  ░███░░░░   ░███ ░░███   ░███        ░███   ░░███  ███   ░███░░░   
 ░░██████    ████  █████ ░░███████  ░░█████████  ██████      █████   ░░██████    ░░███████ 
  ░░░░░░    ░░░░  ░░░░░   ░░░░░░░    ░░░░░░░░░  ░░░░░░      ░░░░░     ░░░░░░      ░░░░░░░  
                                                                             
                                                                             
   ██████  ████████   █████ ████ █████████████      +-------------------------------------------------+
  ███░░███░░███░░███ ░░███ ░███ ░░███░░███░░███     |               OneDrive Enumerator               |
 ░███████  ░███ ░███  ░███ ░███  ░███ ░███ ░███     |           2023 @nyxgeek - TrustedSec            |
 ░███░░░   ░███ ░███  ░███ ░███  ░███ ░███ ░███     |                 version 2.10                    |
 ░░██████  ████ █████ ░░████████ █████░███ █████    |  https://github.com/nyxgeek/onedrive_user_enum  |
  ░░░░░░  ░░░░ ░░░░░   ░░░░░░░░ ░░░░░ ░░░ ░░░░░     +-------------------------------------------------+
                                                                             
*********************************************************************************************************
Test connection to mysql db was successful!

Beginning enumeration of https://microsoft-my.sharepoint.com/personal/USER_microsoft_com/
--------------------------------------------------------------------------------------------------------
[-] [403] VALID USERNAME FOR microsoft,microsoft.com - user1, username:[email protected]
[-] [403] VALID USERNAME FOR microsoft,microsoft.com - user2, username:[email protected]
[-] [403] VALID USERNAME FOR microsoft,microsoft.com - user3, username:[email protected]


참고: 유효하지만 아직 OneDrive에 로그인하지 않은 사용자는 404 Not Found를 반환합니다.

참고 자료

  • https://github.com/Gerenios/AADInternals/
  • https://github.com/blacklanternsecurity/TREVORspray
  • https://github.com/nil0x42/duplicut
  • https://patorjk.com/ -- ascii 아트 생성기

감사 인사

@DrAzureAD, @thetechr0mancer, @rootsecdev, @Oddvarmoe, @HackingLZ에게 감사드립니다.

도구 다운로드