Skip to content
KitploitKITPLOIT
StrumentiBlog
Invia
StrumentiBlog
Invia

Strumenti di Hacking, PenTest e Cybersecurity per il tuo Arsenale di Sicurezza!

Kitploit è una directory di strumenti di hacking, cybersecurity e pentesting. Scopri gli ultimi aggiornamenti dei progetti per trovare vulnerabilità, analizzare sistemi, automatizzare i test e rafforzare la tua sicurezza.

··Feed·Contatto·Privacy·© 2026 Kitploit

Directory degli strumenti

Categorie

Vedi tutte le categorie
Loading categories
onedrive_user_enum — enumerazione utenti onedrive - strumento di pentest per enumerare utenti o365 validi | Kitploit
Strumenti/GitHubGitHub/nyxgeek/onedrive_user_enum
OSINT (Open Source Intelligence)RicognizioneRaccolta InformazioniPenetration TestingSicurezza CloudRed Teaming
GitHubnyxgeek/onedrive_user_enum

onedrive_user_enum

enumerazione utenti onedrive - strumento di pentest per enumerare utenti o365 validi

Vedi Repository
7649331 anno faRevisionato da Kitploit

Più Popolari

Vedi tutti →

Scopri gli strumenti più utilizzati dalla nostra community.

Esplora tutti gli strumenti

Sfoglia la nostra collezione di strumenti

Vedi tutti gli strumenti →
Condividi

onedrive_user_enum v2.10

enumera gli utenti OneDrive validi

Per una descrizione completa della tecnica di enumerazione e dell'enumerazione di OneDrive, dai un'occhiata al blog qui:

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

Se stai cercando la vecchia versione non-database di OneDrive Enum, puoi trovarla qui: https://github.com/nyxgeek/simple_scanners

Nuove funzionalità in 2.10:

  • Opzione di logging su database MySQL remoto -- registra su un database remoto
  • PAUSEFILE -- se il pausefile è presente (/tmp/PAUSEFILE), metti in pausa l'enumerazione
  • Tronca la lista utenti a x caratteri -- johnsmith -> johnsmi

Nuove funzionalità in 2.00:

  • Database locale (sqlite3)
  • Auto-ricerca dei tenant (grazie @DrAzureAD e @thetechr0mancer)
  • Legge un file O una cartella di file
  • Append -- crea facilmente spray come 'jsmith1' 'jsmith2'
  • Skip-Tried (de-dupe) -- rimuove gli username già provati
  • Kill-After -- annulla una lista utenti se non vengono identificati username entro 'x' tentativi

Panoramica dell'enumerazione OneDrive:

Gli utenti OneDrive hanno un URL di condivisione file con una posizione nota:

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

In questo caso, lo username è 'lightmand' e il dominio è 'acmecomputercompany.com'. Se un utente ha effettuato l'accesso a OneDrive, questo percorso esiste e restituisce un codice di stato 403. Se non lo ha fatto, o se l'utente non è valido, restituisce un 404.

I risultati possono variare a seconda di quanto OneDrive sia utilizzato all'interno di un'organizzazione. Attualmente è il metodo di enumerazione utenti più affidabile che io conosca (office365userenum non funziona più, e gli altri come UhOh365 sono inaffidabili). Inoltre, non tenta un login ed è molto più passivo, e dovrebbe essere non rilevabile per l'organizzazione bersaglio. Microsoft vedrà i tentativi, ma l'organizzazione bersaglio no.

utilizzo:

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


esempio - utilizzo di base:

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]


esempio - logging su db mysql:

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]


Nota: gli utenti che sono validi ma che non hanno ancora effettuato l'accesso a OneDrive riceveranno un 404 non trovato.

riferimenti

  • https://github.com/Gerenios/AADInternals/
  • https://github.com/blacklanternsecurity/TREVORspray
  • https://github.com/nil0x42/duplicut
  • https://patorjk.com/ -- generatore di ascii art

Ringraziamenti e saluti

Grazie a @DrAzureAD, @thetechr0mancer, @rootsecdev, @Oddvarmoe, @HackingLZ

Scarica lo strumento