Anyone want to help me with more code?
I ask for help so much, it's pitiful. But then again, there's always that saying: "If you know what you're doing, you aren't doing it good enough."
But anyway, I'm getting "No protocol" errors in my compiler, but in Isonyx's HTTPRequest I can't find anything even relating to protocols.
EDIT: I just went to the page and noticed it automatically switches to HTTPS when you try to log in, could that be why? I'm guessing these HTTP wrappers don't support SSL.
But anyway, I'm getting "No protocol" errors in my compiler, but in Isonyx's HTTPRequest I can't find anything even relating to protocols.
import java.io.UnsupportedEncodingException;
class ZimbraCracker
{
public static void main(String[] args) throws UnsupportedEncodingException
{
HTTPRequest request = new HTTPRequest();
//Get URL
String source = request.get("http://zimbra.earlham.edu/zimbra");
//Print source
System.out.println("Page Source: " + source);
//Create variables for username and password
String username = "";
String password = "";
//Populate Post Data
String postData = "?loginOp" + "=" + "login" +
"&" + "username" + "=" + username +
"&" + "password" + "=" + password;
//Set URL
request.setURL("http://zimbra.earlham.edu/zimbra");
//Send post data
request.post("", postData);
//Get new source and print it to the screen
System.out.println("New Source:" + request.get(""));
}
}
EDIT: I just went to the page and noticed it automatically switches to HTTPS when you try to log in, could that be why? I'm guessing these HTTP wrappers don't support SSL.