-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemp_list_funcs.py
More file actions
29 lines (28 loc) · 946 Bytes
/
Copy pathtemp_list_funcs.py
File metadata and controls
29 lines (28 loc) · 946 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import re, os, sys
files = [
'friday/tools_osint_extra.py',
'friday/email_analysis_tool.py',
'friday/tools/telegram_osint_tool.py',
'friday/tools/osint_extra_bridge.py',
'friday/tools/osint_enhanced_tools.py',
'friday/tools/osint_advanced_tools.py',
'friday/tools/github_osint_tool.py',
'friday/tools/wifi_tools.py',
'friday/tools/wifi_advanced_tools.py',
'friday/osint_summarizer.py',
'friday/osint_agent.py',
]
for fp in files:
if not os.path.exists(fp):
print(f'{fp}: NOT FOUND')
continue
with open(fp, 'r', encoding='utf-8', errors='replace') as f:
content = f.read()
funcs = re.findall(r'^def (\w+)\s*\(', content, re.MULTILINE)
classes = re.findall(r'^class (\w+)', content, re.MULTILINE)
print(f'=== {fp} ===')
print(f' Classes: {classes}')
print(f' Functions ({len(funcs)}):')
for fn in funcs:
print(f' - {fn}')
print()