You can inject parameters in the index.html file into the C2 application using TextBox injection. You create TextBox objects and specify unique ID and call that ID in a JavaScript function grafted into the index.html file script section like:
function doIt()
{
document.getElementById("getDisplayName").value = "";
document.getElementById("getUserID").value = "-1";
document.getElementById("getFT").value = "1";
document.getElementById("serverIP").value = "www.stormforgedproductions.com";
document.getElementById("saltBox").value = "eab5f675c24ebec8b745c8aa90096852f54ac10ce7f2f6638ccbf26248f480360fb8103977581838b28aa73b10f2ed731f7b544b736453e3bcf3a5446042d321";
document.getElementById("errorBox").value = "";
document.getElementById("playerServers").value = "{}";
document.getElementById("direct").value = "";
document.getElementById("tester").value = "false";
document.getElementById("playerCapId").value = "-1";
} [/code:1a411otx]
I called out function doIt(), but you can call it whatever you want. Then when your layout starts you call a custom JS script using the browser object and simply call the doIt() function and it will transfer the values from your HTML into the appropriate TextBoxes according to their IDs.
If you look at the HTML source for our homepage, you can see this in action.