attack.setByteAt(pos, subs);
for (int i = 1; i < pad; i++) {
subs = (byte) (iv.byteAt(pos + i) ^ plain.byteAt(pos + i) ^ pad);
attack.setByteAt(pos + i, subs);
}
URL url = new URL(baseURL + attack.toHexString());
int response = getResponseCode(url);
System.out.println("pos: " + pos + "; pad: " + pad
+ "; guess: " + guess + "; attack: "
+ attack.toHexString() + "; reponse: " + response);
if (response == 404) {