In order to jailbreak iOS 7 on iPhone 4 (as well as other Apple A4 devices) four things are required: an iPhone 4 running iOS 7, an Apple Mac computer running OSX, RageBreak (as stated above) and JDK (Java SE Development Kit from Oracle). First, download the latest stable release of JDK for OSX from Oracles Java website, and a stable copy of RageBreak from a reputable source. If a version of iOS prior to iOS 7 is running on your iPhone make sure to update it as well.
Once JDK is downloaded and installed on Mac OSX basically open as well as run the RageBreak utility on the Mac PC. This will open RageBreak2.sh in a terminal window. You will be fulfilled with a immediate: type ‘1’ (without the quotes) and also press enter. If you are presented with a prompt to install Xcode,do so; it’s required, failure to do this will cause the process to fail.
Subsequent, when prompted to enter DFU mode on your iPhone do so by pushing down both the Power along with the Home buttons for at least 10 seconds, then releasing only the Power button while continuing to hold Home for at least 15 seconds.
You now may need to wait for a bit allowing the Java application to achieve root access. Once this is accomplished, return to the RageBreak2.sh terminal window and press Enter on your keyboard.
Each and every time the terminal window asks for a password, just type alpine and press Enter. After it’s finished, press Enter revisit the main RageBreak window and enter DFU mode for a second time (hold the Power and Home buttons for lOseconds, let go of the Power option while still pressing Home for 15 seconds). Type ‘4’ (without the quotes), denoting your version of iPhone, along with press Enter.
The iPhone will now boot in tethered mode. Enter to return to the main RageBreak screen and get the lP Address of the mobile phone by opening the Configurations app and choose Wi-Fi followed by the Information icon (‘i’) beside the network to which the iPhone is connected. The IP address will be listed in the information listed on this screen.
Back on the terminal screen, enter ‘5’ (yes, with no quotes) and press Enter, then input the iPhone IP address and press Enter again: this will install Cydia to your iPhone. Whenever prompted, type “yes” (again, no quotes) and also press Enter one more time, you’ll be prompted for a password, which will be “alpine” (I think you have the hang of it now) and press Enter, repeating this step each time the Terminal windows prompts you for a password.
When the Terminal script finishes, boot into UDF mode, using the Power along with the Home buttons one last time, then boot into tethered mode yet again by typing ‘4’ in the RageBreak2.sh Terminal window to finish the jailbreak ios 7 process.