├── README.md └── SourceMapping.py /README.md: -------------------------------------------------------------------------------- 1 | # SourceMapping 2 | Creates, validates and analyse potential list of URLS for a target based on the source code provided. This is a direct comparison based on the directory structures. 3 | Does not take into account routing or advance MVC type applications. 4 | 5 | Useful when obtaining source code from a target and you want to check of any files is accesible without auth, or during code reviews to identify potential pages which can be reviewed first. Wrote as part of prep for OSWE. 6 | 7 | ### Usage 8 | 9 | ``` 10 | python .\SourceMapping.py -w 'c:\source\appname' -t 'https://localhost' 11 | -d for debug mode which will attempt to use a proxy as well 12 | --wordlist to print only a wordlist of the files 13 | -o for output location in csv format 14 | ``` 15 | ### Configurable options in code 16 | 17 | Some of the extensions which is configurable inside the source: 18 | 19 | ``` 20 | ['*.txt', '*.json', '*.xml', '*.sql', '*.conf', '*.zip', '*.php', '*.ini', '*.cs', '*.js', '*.aspx', '*.asp', '*.java', '*.dll', '*.dat'] 21 | ``` 22 | 23 | Limited functionality available to "review" potential pages for inputs, these pages should be primary targets and can easily be modified on this function: 24 | 25 | ``` 26 | def analyseVuln(rqResponse): 27 | if "