Heres the story: I bought a new Iphone 3gs, and tried to unlock it. After it was jailbroken, cydia was messed up. When I opened it, I would just see a window coming up, but as soon as the window is about to expand completely, it closes itself and goes back to home screen. So, I tried to restore it. When it was almost done restoring, I got an error 1015, and that same error popped up every time I tried to restore. I youtubed ways to fix this and went to a video that told me to change the hosts file along with downloading iREB to restore the recovery mode loop. I did as the instructions said, and afterwards, tried to restore it again. Same error popped up. In the iREB recovery mode loops fixer window, it says at the bottom "If after several attempts, you still have a recovery logo, rerun redsn0w! You will still have all your apps, but it will fix your boot chain!" When I reran redsn0w and did what I did the first time, I went to the screen that says I need to shutdown the iphone before continuing. But every time I shut it down, it starts back up 2 seconds after I just shut it down. What can I do to fix this? Helppp don't want my $325 investment to go in the trash.