Tuesday, November 4, 2014

Unprotect an excel sheet without password... solved

If an excel sheet is marked as protected then you will not be able to modify many of the cells in the sheet and the sheet could be password protected as well. So, here is a trick which will help you to unprotect an excel sheet without entering password.

Step #1: Press ALT +  F11 or click on View Code in Developers Tabs



Step #2: From left panel at project panel double click on the sheet name which you want to unprotect


Step #3: In the White Space Enter the below Code. Do not change the code just copy paste:



Code:
Sub PasswordBreaker()
    'Breaks worksheet password protection.
    Dim i As Integer, j As Integer, k As Integer
    Dim l As Integer, m As Integer, n As Integer
    Dim i1 As Integer, i2 As Integer, i3 As Integer
    Dim i4 As Integer, i5 As Integer, i6 As Integer
    On Error Resume Next
    For i = 65 To 66: For j = 65 To 66: For k = 65 To 66
    For l = 65 To 66: For m = 65 To 66: For i1 = 65 To 66
    For i2 = 65 To 66: For i3 = 65 To 66: For i4 = 65 To 66
    For i5 = 65 To 66: For i6 = 65 To 66: For n = 32 To 126
    ActiveSheet.Unprotect Chr(i) & Chr(j) & Chr(k) & _
        Chr(l) & Chr(m) & Chr(i1) & Chr(i2) & Chr(i3) & _
        Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)
    If ActiveSheet.ProtectContents = False Then
        MsgBox "One usable password is " & Chr(i) & Chr(j) & _
            Chr(k) & Chr(l) & Chr(m) & Chr(i1) & Chr(i2) & _
            Chr(i3) & Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)
         Exit Sub
    End If
    Next: Next: Next: Next: Next: Next
    Next: Next: Next: Next: Next: Next
End Sub

Step #4 Now Click on the Run Button or press F5:


And pufff.. sheet is unprotected for you now. Also you would be getting a message in the pop up window.
This Message is contains the password which can be used to unprotect the other sheets in the same workbook.

Tuesday, September 30, 2014

Limiting network speed on a mobile device

Recently I caught up in a problem where I had to run an application on a mobile devices with limited speed. There catch here was the fact that the application was not available over internet so it was not possible to access it using GSM i.e. 2G or 3G data.

I had to access that application using Wi-fi network only. This was bit challenging as there is no any such app available in the app store and also to modify speed at router level required much of expertise.

Then I came across with this very simple solution.

Route all the traffic using a proxy server and limit the speed on proxy server. One can use his own system as a proxy server and there are lots of free tools available for the same few of them are Fiddler, burp suit, etc..

It is very easy to configure your own system as proxy server using above tool and once that is done you can you limit network speed on your system using free tools like netlimiter or net balancer.

Post that all you have to do it to put IP address of your system in the proxy server field of your device and all the traffic on the mobile device will now get limited to the speed which was set on your system.