https://github.com/p0dalirius/symfonydumpsource
A python script to automatically dump files and source code of a Symfony server in debug mode.
https://github.com/p0dalirius/symfonydumpsource
debug file-read profiler source-code symfony
Last synced: 9 months ago
JSON representation
A python script to automatically dump files and source code of a Symfony server in debug mode.
- Host: GitHub
- URL: https://github.com/p0dalirius/symfonydumpsource
- Owner: p0dalirius
- Created: 2023-09-27T07:01:02.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-11T08:30:50.000Z (about 1 year ago)
- Last Synced: 2025-04-06T18:23:48.045Z (12 months ago)
- Topics: debug, file-read, profiler, source-code, symfony
- Language: Python
- Homepage: https://podalirius.net/
- Size: 348 KB
- Stars: 8
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README

A python script to automatically dump files and source code of a Symfony server in debug mode.
## Features
+ [x] Dump files from the remote server in a local directory.
+ [x] Multithreaded.
+ [x] Specify custom list of file paths to dump with option `--file-list`.
+ [x] Automatically extract file paths from debug page
## Demonstration

## Usage
```
$ ./SymfonyDumpSource.py -h
SymfonyDumpSource.py v1.1 - by Remi GASCOU (Podalirius)
usage: SymfonyDumpSource.py [-h] [-v] [--debug] [--no-colors] -t TARGET [-D DUMP_DIR] [-f FILE_LIST] [-T THREADS]
options:
-h, --help show this help message and exit
-v, --verbose Verbose mode. (default: False)
--debug Debug mode.
--no-colors No colors mode.
-t TARGET, --target TARGET
Target symfony instance.
-D DUMP_DIR, --dump-dir DUMP_DIR
Directory where the dumped files will be stored.
-f FILE_LIST, --file-list FILE_LIST
File containing symfony paths.
-T THREADS, --threads THREADS
Number of threads (default: 5)
```
## References
- [https://symfony.com/doc/current/profiler.html](https://symfony.com/doc/current/profiler.html)