{"id":17994907,"url":"https://github.com/p0dalirius/dumpsmbshare","last_synced_at":"2025-04-12T23:33:32.077Z","repository":{"id":41381719,"uuid":"460356759","full_name":"p0dalirius/DumpSMBShare","owner":"p0dalirius","description":"A python script to dump files and folders remotely from a Windows SMB share.","archived":false,"fork":false,"pushed_at":"2025-01-31T14:22:06.000Z","size":386,"stargazers_count":222,"open_issues_count":0,"forks_count":42,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-04T03:07:30.103Z","etag":null,"topics":["active-directory","dump","remote","smb","windows"],"latest_commit_sha":null,"homepage":"https://podalirius.net/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/p0dalirius.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"p0dalirius","patreon":"Podalirius"}},"created_at":"2022-02-17T09:01:56.000Z","updated_at":"2025-03-26T20:33:38.000Z","dependencies_parsed_at":"2024-12-27T17:11:33.269Z","dependency_job_id":"f5014e40-01f8-4e2c-913a-5191d469f210","html_url":"https://github.com/p0dalirius/DumpSMBShare","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p0dalirius%2FDumpSMBShare","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p0dalirius%2FDumpSMBShare/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p0dalirius%2FDumpSMBShare/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p0dalirius%2FDumpSMBShare/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/p0dalirius","download_url":"https://codeload.github.com/p0dalirius/DumpSMBShare/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248647259,"owners_count":21139081,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["active-directory","dump","remote","smb","windows"],"created_at":"2024-10-29T20:17:09.746Z","updated_at":"2025-04-12T23:33:32.052Z","avatar_url":"https://github.com/p0dalirius.png","language":"Python","funding_links":["https://github.com/sponsors/p0dalirius","https://patreon.com/Podalirius"],"categories":[],"sub_categories":[],"readme":"![](./.github/banner.png)\n\n\u003cp align=\"center\"\u003e\n  A python script to dump files and folders remotely from a Windows SMB share.\n  \u003cbr\u003e\n  \u003cimg alt=\"GitHub release (latest by date)\" src=\"https://img.shields.io/github/v/release/p0dalirius/DumpSMBShare\"\u003e\n  \u003ca href=\"https://twitter.com/intent/follow?screen_name=podalirius_\" title=\"Follow\"\u003e\u003cimg src=\"https://img.shields.io/twitter/follow/podalirius_?label=Podalirius\u0026style=social\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.youtube.com/c/Podalirius_?sub_confirmation=1\" title=\"Subscribe\"\u003e\u003cimg alt=\"YouTube Channel Subscribers\" src=\"https://img.shields.io/youtube/channel/subscribers/UCF_x5O7CSfr82AfNVTKOv_A?style=social\"\u003e\u003c/a\u003e\n  \u003cbr\u003e\n\u003c/p\u003e\n\n## Features\n\n - [x] Only list shares with `--list-shares`.\n - [x] Select only files with given extensions (with `--extensions`) or all files.\n - [x] Choose the local folder to dump to with `--dump-dir`.\n - [x] Select base folder to search from in the share with `--base-dir`.\n\n## Usage\n\n```\n$ ./DumpSMBShare.py -h\nDumpSMBShare v1.3 - by Remi GASCOU (Podalirius)\n\nusage: Dump.py [-h] (-s SHARE | -l) [-e EXTENSIONS] [-D DUMP_DIR] [-f FILE] [-B BASE_DIR] [--debug] [-q] [-H LMHASH:NTHASH] [--no-pass] [-k] [-A hex key]\n               [--dc-ip ip address] [-I ip address] [-P [destination port]]\n               target\n\npositional arguments:\n  target                [[domain/]username[:password]@]\u003ctargetName or address\u003e\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -s SHARE, --share SHARE\n                        SMB Share to dump\n  -l, --list-shares     Lists SMB shares on the remote machine.\n  -L, --list-files     Lists all the files present in the SMB share.\n  -e EXTENSIONS, --extensions EXTENSIONS\n                        Extensions\n  -D DUMP_DIR, --dump-dir DUMP_DIR\n                        Dump directory\n  -f FILE, --file FILE  SMB file to dump\n  -B BASE_DIR, --base-dir BASE_DIR\n                        Directory to search in (Default: /)\n  --debug               Turn on debug output. (Default: False)\n  -q, --quiet           Turn DEBUG output ON\n\nauthentication:\n  -H LMHASH:NTHASH, --hashes LMHASH:NTHASH\n                        NTLM hashes, format is LMHASH:NTHASH\n  --no-pass             Don't ask for password (useful for -k)\n  -k, --kerberos        Use Kerberos authentication. Grabs credentials from ccache file (KRB5CCNAME) based on target parameters. If valid credentials cannot\n                        be found, it will use the ones specified in the command line\n  -A hex key, --aesKey hex key\n                        AES key to use for Kerberos Authentication (128 or 256 bits)\n\nconnection:\n  --dc-ip ip address    IP Address of the domain controller. If omitted it will use the domain part (FQDN) specified in the target parameter\n  -I ip address, --target-ip ip address\n                        IP Address of the target machine. If omitted it will use whatever was specified as target. This is useful when target is the NetBIOS\n                        name and you cannot resolve it\n  -P [destination port], --port [destination port]\n                        Destination port to connect to SMB Server\n```\n\n## Example\n\n + Dump all files from the `SYSVOL` share:\n\n    ```\n    ./DumpSMBShare.py 'LAB.local/user2:Admin123@192.168.2.1' --debug\n    ```\n\n![](./.github/example_verbose.png)\n\n![](./.github/example.png)\n\n## Contributing\n\nPull requests are welcome. Feel free to open an issue if you want to add other features.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp0dalirius%2Fdumpsmbshare","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fp0dalirius%2Fdumpsmbshare","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp0dalirius%2Fdumpsmbshare/lists"}