()
| 96 | self.active_sessions.remove(session) |
| 97 | |
| 98 | def get_cpu_architecture(): |
| 99 | try: |
| 100 | cpu_arch = platform.platform().lower() |
| 101 | if "64bit" in cpu_arch and "macos" in cpu_arch: |
| 102 | return "MacOS x64" |
| 103 | return "Windows" # 默认返回Windows |
| 104 | except Exception as e: |
| 105 | print(Color.RED, f"[-] Error detecting CPU architecture: {e} ", Color.END) |
| 106 | return "Windows" |
| 107 | |
| 108 | # 主函数示例 |
| 109 | if __name__ == "__main__": |
no outgoing calls
no test coverage detected