| 62 | SOURCE = "OWASP Autonomous Penetration Testing Standard" |
| 63 | |
| 64 | def get_domain_dirs(): |
| 65 | domain_dirs = {} |
| 66 | if not os.path.exists(STANDARD_DIR): |
| 67 | return domain_dirs |
| 68 | |
| 69 | for item in os.listdir(STANDARD_DIR): |
| 70 | if os.path.isdir(os.path.join(STANDARD_DIR, item)): |
| 71 | match = re.match(r'^\d+_(.*)$', item) |
| 72 | if match: |
| 73 | domain_name = match.group(1).replace('_', ' ') |
| 74 | domain_dirs[item] = domain_name |
| 75 | |
| 76 | # Sort by the numeric prefix |
| 77 | return dict(sorted(domain_dirs.items(), key=lambda x: int(x[0].split('_')[0]))) |
| 78 | |
| 79 | |
| 80 | def export_all(): |