Sunday, November 30, 2008 ♥ 4:07 PM
I guess you dont like me to be anonymous. One clue:
/*
This is a javascript, you might know how to read it.
Some things have been replaced with "===" because I don't want javescript readers to leech from here.
How does this serve as a clue? You should know!
*/
package ===;
import ===;
import ===;
import ===;
import ===;
import ===;
public class === {
private static final === log = ===(===.class);
private static final int ACCOUNTS_PER_IP = 2;
public static final boolean autoRegister = true;
public static boolean success = false;
public static boolean getAccountExists(String login) {
boolean accountExists = false;
Connection con = ===();
try {
PreparedStatement ps = ===("SELECT === FROM === WHERE === = ?");
ps.setString(1, login);
ResultSet rs = ps.===();
if(rs.first())
accountExists = true;
} catch (Exception ex) {
log.error("ERROR", ex);
}
return accountExists;
}
public static void createAccount(String login, String pwd, String eip) {
String sockAddr = eip;
Connection con;
try {
con = ===();
} catch (Exception ex) {
log.error("ERROR", ex);
return;
}
try {
PreparedStatement ipc = con.===("SELECT === FROM === WHERE lastknownip = ?");
ipc.setString(1, sockAddr.substring(1, sockAddr.lastIndexOf(':')));
ResultSet rs = ipc.===();
if (rs.first() == false || rs.last() == true && rs.getRow() < ACCOUNTS_PER_IP) {
try {
PreparedStatement ps = con.===("INSERT INTO === (===, ===, ===, ===, ===, ===) VALUES (?, ?, ?, ?, ?, ?)");
ps.setString(1, ===);
ps.setString(2, ===);
ps.setString(3, "===");
ps.setString(4, "===");
ps.setString(5, "===");
ps.setString(6, sockAddr.substring(1, sockAddr.lastIndexOf(':')));
ps.executeUpdate();
ps.close();
success = true;
} catch (=== ex) {
log.error("ERROR", ex);
return;
}
}
ipc.close();
rs.close();
} catch (=== ex) {
log.error("ERROR", ex);
return;
}
}
}
Chaos was created here.
♥Two Modesty