Add tests for test lab

GSoC/Meterpreter_Web_Console
dmohanty-r7 2018-03-02 15:33:25 -06:00 committed by Brent Cook
parent f2cf4fd1dc
commit 7fa001ba50
3 changed files with 236 additions and 0 deletions

View File

@ -0,0 +1,68 @@
{
"TEST_NAME": "smb_enumshares test",
"REPORT_PREFIX": "SmbEnumSharesTest",
"FRAMEWORK_BRANCH": "upstream/master",
"HTTP_PORT": 5309,
"STARTING_LISTENER": 30000,
"CREDS_FILE": "../JSON/creds.json",
"MSF_HOSTS":
[
{
"TYPE": "VIRTUAL",
"METHOD": "VM_TOOLS_UPLOAD",
"HYPERVISOR_CONFIG": "../JSON/esxi_config.json",
"CPE": "cpe:/a:rapid7:metasploit:::",
"MSF_ARTIFACT_PATH": "/home/msfuser/rapid7/test_artifacts",
"MSF_PATH": "/home/msfuser/rapid7/metasploit-framework"
}
],
"TARGETS":
[
{
"TYPE": "VIRTUAL",
"METHOD": "EXPLOIT",
"CPE": "cpe:/o:microsoft:windows_server_2008:r2:sp1:x64",
"MODULES":
[
{
"NAME": "auxiliary/scanner/smb/smb_enumshares",
"SETTINGS": [
"smbuser=vagrant",
"smbpass=vagrant"
]
}
]
},
{
"TYPE": "VIRTUAL",
"METHOD": "EXPLOIT",
"CPE": "cpe:/o:microsoft:windows_server_2016:::x64",
"MODULES":
[
{
"NAME": "auxiliary/scanner/smb/smb_enumshares",
"SETTINGS": [
"smbuser=vagrant",
"smbpass=vagrant"
]
}
]
}
],
"TARGET_GLOBALS":
{
"TYPE": "VIRTUAL",
"HYPERVISOR_CONFIG": "../JSON/esxi_config.json",
"METHOD": "VM_TOOLS_UPLOAD",
"PAYLOAD_DIRECTORY": "C:\\payload_test",
"TESTING_SNAPSHOT": "TESTING_BASE",
"PYTHON": "C:\\software\\x86\\python27\\python.exe",
"METERPRETER_PYTHON": "C:\\software\\x86\\python27\\python.exe",
"METERPRETER_JAVA": "C:\\software\\x86\\java\\bin\\java.exe"
},
"COMMAND_LIST": [],
"SUCCESS_LIST": [
"IPC$"
]
}

View File

@ -0,0 +1,68 @@
{
"TEST_NAME": "smb_enumusers test",
"REPORT_PREFIX": "SmbEnumUsersTest",
"FRAMEWORK_BRANCH": "upstream/master",
"HTTP_PORT": 5309,
"STARTING_LISTENER": 30000,
"CREDS_FILE": "../JSON/creds.json",
"MSF_HOSTS":
[
{
"TYPE": "VIRTUAL",
"METHOD": "VM_TOOLS_UPLOAD",
"HYPERVISOR_CONFIG": "../JSON/esxi_config.json",
"CPE": "cpe:/a:rapid7:metasploit:::",
"MSF_ARTIFACT_PATH": "/home/msfuser/rapid7/test_artifacts",
"MSF_PATH": "/home/msfuser/rapid7/metasploit-framework"
}
],
"TARGETS":
[
{
"TYPE": "VIRTUAL",
"METHOD": "EXPLOIT",
"CPE": "cpe:/o:microsoft:windows_server_2008:r2:sp1:x64",
"MODULES":
[
{
"NAME": "auxiliary/scanner/smb/smb_enumusers",
"SETTINGS": [
"smbuser=vagrant",
"smbpass=vagrant"
]
}
]
},
{
"TYPE": "VIRTUAL",
"METHOD": "EXPLOIT",
"CPE": "cpe:/o:microsoft:windows_server_2016:::x64",
"MODULES":
[
{
"NAME": "auxiliary/scanner/smb/smb_enumusers",
"SETTINGS": [
"smbuser=vagrant",
"smbpass=vagrant"
]
}
]
}
],
"TARGET_GLOBALS":
{
"TYPE": "VIRTUAL",
"HYPERVISOR_CONFIG": "../JSON/esxi_config.json",
"METHOD": "VM_TOOLS_UPLOAD",
"PAYLOAD_DIRECTORY": "C:\\payload_test",
"TESTING_SNAPSHOT": "TESTING_BASE",
"PYTHON": "C:\\software\\x86\\python27\\python.exe",
"METERPRETER_PYTHON": "C:\\software\\x86\\python27\\python.exe",
"METERPRETER_JAVA": "C:\\software\\x86\\java\\bin\\java.exe"
},
"COMMAND_LIST": [],
"SUCCESS_LIST": [
"Administrator"
]
}

View File

@ -0,0 +1,100 @@
{
"FRAMEWORK_BRANCH": "upstream/master",
"HTTP_PORT": 5309,
"STARTING_LISTENER": 30000,
"CREDS_FILE": "../JSON/creds.json",
"MSF_HOSTS":
[
{
"TYPE": "VIRTUAL",
"METHOD": "VM_TOOLS_UPLOAD",
"HYPERVISOR_CONFIG": "../JSON/esxi_config.json",
"CPE": "cpe:/a:rapid7:metasploit:::",
"MSF_PATH": "/home/msfuser/rapid7/metasploit-framework",
"MSF_ARTIFACT_PATH": "/home/msfuser/rapid7/test_artifacts"
}
],
"TARGET_GLOBALS":
{
"TYPE": "VIRTUAL",
"HYPERVISOR_CONFIG": "../JSON/esxi_config.json",
"METHOD": "EXPLOIT",
"PAYLOAD_DIRECTORY": "C:\\payload_test",
"PYTHON": "C:\\software\\x86\\python27\\python.exe",
"METERPRETER_PYTHON": "C:\\software\\x86\\python27\\python.exe",
"METERPRETER_JAVA": "C:\\software\\x86\\java\\bin\\java.exe"
},
"TARGETS":
[
{
"CPE": "cpe:/o:microsoft:windows_7:::x64"
},
{
"CPE": "cpe:/o:microsoft:windows_10:::x64",
"TESTING_SNAPSHOT": "DisableSMBv1"
}
],
"MODULES":
[
{
"NAME": "exploit/windows/smb/psexec",
"SETTINGS":
[
"SMBUser=vagrant",
"SMBPass=vagrant"
]
}
],
"PAYLOADS":
[
{
"NAME": "windows/x64/meterpreter/reverse_tcp",
"SETTINGS": []
}
],
"COMMAND_LIST": [
"<ruby>",
"sleep(60)",
"</ruby>",
"sessions -C sessions -l",
"<ruby>",
"sleep(60)",
"</ruby>",
"sessions -C sysinfo",
"<ruby>",
"sleep(10)",
"</ruby>",
"sessions -C sysinfo",
"<ruby>",
"sleep(10)",
"</ruby>",
"sessions -C sysinfo",
"<ruby>",
"sleep(10)",
"</ruby>",
"sessions -C sysinfo",
"<ruby>",
"sleep(10)",
"</ruby>",
"sessions -C sysinfo",
"<ruby>",
"sleep(10)",
"</ruby>",
"sessions -C sysinfo",
"<ruby>",
"sleep(10)",
"</ruby>",
"sessions -C sysinfo",
"<ruby>",
"sleep(10)",
"</ruby>",
"sessions -C sysinfo",
"sessions -C ifconfig",
"sessions -C sessions -l",
"sessions -C getuid",
"sessions -C exit"
],
"SUCCESS_LIST": [
"Session 1 created in the background"
]
}