First of all: No I didn't get the phone off of someone else and no I can't get the password by going to iforgot.apple.com (because the email address used for the account has been deleted, so emailing doesn't work)
The iPhone is currently in the state where it acts like you just got it (because I tried to reset the phone by typing the wrong passcode 10 times), but after going through a few steps it will ask for the iCloud username and password. I don't care about any of the data on it, I just need to delete everything off it, so I can actually do something with it.