From f1559e0bea3d327bdd8bc59ccee7deef4b64ca5d Mon Sep 17 00:00:00 2001 From: Mery-Sanz Date: Fri, 10 Jan 2025 12:06:41 +0000 Subject: [PATCH] Proposed tool structure - @lidia9 @Mery-Sanz --- .../{data_exfiltratiom.py => data_exfiltration.py} | 0 .../exploitation/{file.py => ScriptExecution.py} | 0 .../FTPUpload.py} | 0 cai/tools/exploitation/metasploit.py | 2 ++ cai/tools/lateral_movement/Revershell.py | 6 ++++++ cai/tools/lateral_movement/ssh.py | 2 ++ cai/tools/reconnaissance/Crypto.py | 5 +++++ cai/tools/reconnaissance/DirbScan.py | 1 + cai/tools/reconnaissance/GobusterScan.py | 0 cai/tools/reconnaissance/HashcatCracker.py | 0 cai/tools/reconnaissance/curl.py | 1 + cai/tools/reconnaissance/filesystem_info.py | 3 +++ cai/tools/reconnaissance/netcat.py | 14 -------------- cai/tools/reconnaissance/netstat.py | 1 + cai/tools/reconnaissance/wget.py | 1 + 15 files changed, 22 insertions(+), 14 deletions(-) rename cai/tools/data_exfiltration/{data_exfiltratiom.py => data_exfiltration.py} (100%) rename cai/tools/exploitation/{file.py => ScriptExecution.py} (100%) rename cai/tools/{lateral_movement/lateral_movement.py => exploitation/FTPUpload.py} (100%) create mode 100644 cai/tools/exploitation/metasploit.py create mode 100644 cai/tools/lateral_movement/Revershell.py create mode 100644 cai/tools/lateral_movement/ssh.py create mode 100644 cai/tools/reconnaissance/Crypto.py create mode 100644 cai/tools/reconnaissance/DirbScan.py create mode 100644 cai/tools/reconnaissance/GobusterScan.py create mode 100644 cai/tools/reconnaissance/HashcatCracker.py create mode 100644 cai/tools/reconnaissance/curl.py create mode 100644 cai/tools/reconnaissance/filesystem_info.py create mode 100644 cai/tools/reconnaissance/netstat.py create mode 100644 cai/tools/reconnaissance/wget.py diff --git a/cai/tools/data_exfiltration/data_exfiltratiom.py b/cai/tools/data_exfiltration/data_exfiltration.py similarity index 100% rename from cai/tools/data_exfiltration/data_exfiltratiom.py rename to cai/tools/data_exfiltration/data_exfiltration.py diff --git a/cai/tools/exploitation/file.py b/cai/tools/exploitation/ ScriptExecution.py similarity index 100% rename from cai/tools/exploitation/file.py rename to cai/tools/exploitation/ ScriptExecution.py diff --git a/cai/tools/lateral_movement/lateral_movement.py b/cai/tools/exploitation/FTPUpload.py similarity index 100% rename from cai/tools/lateral_movement/lateral_movement.py rename to cai/tools/exploitation/FTPUpload.py diff --git a/cai/tools/exploitation/metasploit.py b/cai/tools/exploitation/metasploit.py new file mode 100644 index 00000000..d8914950 --- /dev/null +++ b/cai/tools/exploitation/metasploit.py @@ -0,0 +1,2 @@ +#MsfModuleSelectionTool +#MsfModuleExecTool diff --git a/cai/tools/lateral_movement/Revershell.py b/cai/tools/lateral_movement/Revershell.py new file mode 100644 index 00000000..969a72c6 --- /dev/null +++ b/cai/tools/lateral_movement/Revershell.py @@ -0,0 +1,6 @@ +# ReverseShellTool +# ReverseShellSession +# ReverseShellManager +# ShellCommandExecutor +# SessionManager +# UploadReverseShellTool diff --git a/cai/tools/lateral_movement/ssh.py b/cai/tools/lateral_movement/ssh.py new file mode 100644 index 00000000..eb5abdd5 --- /dev/null +++ b/cai/tools/lateral_movement/ssh.py @@ -0,0 +1,2 @@ +#SSHTestCredentialTool +#SSHRunCommandTool diff --git a/cai/tools/reconnaissance/Crypto.py b/cai/tools/reconnaissance/Crypto.py new file mode 100644 index 00000000..a4b78f98 --- /dev/null +++ b/cai/tools/reconnaissance/Crypto.py @@ -0,0 +1,5 @@ +# URLDecodeTool +# HexDumpTool +# Base64DecodeTool +# ROT13DecodeTool +# BinaryAnalysisTool diff --git a/cai/tools/reconnaissance/DirbScan.py b/cai/tools/reconnaissance/DirbScan.py new file mode 100644 index 00000000..aa6db2a6 --- /dev/null +++ b/cai/tools/reconnaissance/DirbScan.py @@ -0,0 +1 @@ +#DirbScanTool \ No newline at end of file diff --git a/cai/tools/reconnaissance/GobusterScan.py b/cai/tools/reconnaissance/GobusterScan.py new file mode 100644 index 00000000..e69de29b diff --git a/cai/tools/reconnaissance/HashcatCracker.py b/cai/tools/reconnaissance/HashcatCracker.py new file mode 100644 index 00000000..e69de29b diff --git a/cai/tools/reconnaissance/curl.py b/cai/tools/reconnaissance/curl.py new file mode 100644 index 00000000..0191627f --- /dev/null +++ b/cai/tools/reconnaissance/curl.py @@ -0,0 +1 @@ +#curl \ No newline at end of file diff --git a/cai/tools/reconnaissance/filesystem_info.py b/cai/tools/reconnaissance/filesystem_info.py new file mode 100644 index 00000000..e07ebe99 --- /dev/null +++ b/cai/tools/reconnaissance/filesystem_info.py @@ -0,0 +1,3 @@ +#ProcessListTool +#EnvironmentVariablesTool +#SystemInformationTool diff --git a/cai/tools/reconnaissance/netcat.py b/cai/tools/reconnaissance/netcat.py index 68d393ea..7279bda0 100644 --- a/cai/tools/reconnaissance/netcat.py +++ b/cai/tools/reconnaissance/netcat.py @@ -19,17 +19,3 @@ def netcat(args: str, host: str, port: int, data: str = '', ctf=None) -> str: else: command = f'nc -w 3 {host} {port} {args}' return run_command(command, ctf=ctf) - -def nmap(args: str, target: str, ctf=None) -> str: - """ - A simple nmap tool to scan a specified target. - - Args: - args: Additional arguments to pass to the nmap command - target: The target host or IP address to scan - - Returns: - str: The output of running the nmap command - """ - command = f'nmap {args} {target}' - return run_command(command, ctf=ctf) \ No newline at end of file diff --git a/cai/tools/reconnaissance/netstat.py b/cai/tools/reconnaissance/netstat.py new file mode 100644 index 00000000..86fd2910 --- /dev/null +++ b/cai/tools/reconnaissance/netstat.py @@ -0,0 +1 @@ +#NetworkConnectionstool in exploitFlow \ No newline at end of file diff --git a/cai/tools/reconnaissance/wget.py b/cai/tools/reconnaissance/wget.py new file mode 100644 index 00000000..11529ece --- /dev/null +++ b/cai/tools/reconnaissance/wget.py @@ -0,0 +1 @@ +#FileDownloadTool in exploitFlow \ No newline at end of file