Skip to content

A Python script to extract the list of users of a GiTea instance, unauthenticated or authenticated.

Notifications You must be signed in to change notification settings

p0dalirius/gitea-extract-users

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gitea-extract-users

A Python script to extract the list of users of a GiTea instance, unauthenticated or authenticated.
GitHub release (latest by date) YouTube Channel Subscribers

Features

  • Dump all users of a remote GiTea instance, unauthenticated (misconfiguration of the instance).
  • Dump all users of a remote GiTea instance, authenticated using i_like_gitea cookie in --cookie option.
  • Export users and emails to a JSON file, specified by option --outfile.

Usage

$ ./gitea-extract-users.py -h
Dump GiTea users via /explore/users endpoint - v1.1 - by @podalirius_

usage: gitea-extract-users.py [-h] -t TARGET [-o OUTFILE] [-c COOKIE]

Dump GiTea users via /explore/users endpoint

options:
  -h, --help            show this help message and exit
  -t TARGET, --target TARGET
                        IP address or hostname of the GiTea to target.
  -o OUTFILE, --outfile OUTFILE
                        Output JSON file of all the found users.
  -c COOKIE, --cookie COOKIE
                        i_like_gitea cookie to dump users in authenticated mode.

Example output format:

{
    "target": "https://git.podalirius.poc",
    "users": [
        {
            "mail": "podalirius@podalirius.poc",
            "username": "Podalirius",
            "fullname": "Podalirius Podalirius",
            "joined": "Nov 05, 1605"
        }
    ]
}

About

A Python script to extract the list of users of a GiTea instance, unauthenticated or authenticated.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages