Python password Breaking Task

Hello Friends,

After long time I am posting blog here, Due to some reason I can’t update my blog regularly. Hope I am resumed it back. Now I am going to post the code of password breaking code by python program.

I thought about this task for so many times that “i want to complete the task”, but when i sit in-front of my computer i forget to do. Now I did it successfully, here is the code

import getpass
import string
a=getpass.getpass(“Enter your Password here:”)
b=(‘,’.join(string.ascii_letters))
b=b.split(‘,’)
b=b+[‘1′,’2′,’3′,’4′,’5′,’6′,’7′,’8′,’9′,’0′,’~’,’`’,’!’,’@’,’$’,’%’,’^’,’&’,’*’,'(‘,’)’,’_’,’+’,’|’,’=’,’-‘,’ ‘]
c=b[:]
i,j=0,0
res=”
for i in range(len(b)):
for j in range(len(a)):
if (b[i]==a[j]):
c[j]=b[i]
print “Your Hacked password is :”+res.join(c[0:(len(a))])

If you execute this code the code prompts for your password. After entering some password at the second line it will display your hacked password.

Just try it and see the miracle…. 🙂

awaiting for your valuable comments…

Thank You,

With Regards,
V. Balakrishnan.

 

Advertisements

10 responses to “Python password Breaking Task

  1. here is my code:

    import getpass
    check=list(‘abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890’)
    passw=getpass.getpass(‘enter your password’)
    leng=len(passw)
    lis=list(passw)
    for i in range(0,leng):
    for j in range(0,len(check)):
    if lis[i] == check[j]:
    print check[j]
    else:
    continue

    but the output is printing one by one. how to join it has one word..

    • Hi na,

      This is not an effective Hacking technique. I just want to show an example for using more than one ‘for’ loop.

      Other than, we can’t use this code to break any secured thing.

      • import string
        import sys
        import getpass
        def split(b):
        b=’.’.join(b)
        b=b.split(‘.’)
        return b

        def getall():
        x=string.punctuation
        x=split(x)
        y=string.letters
        y=split(y)
        z=string.digits
        z=split(z)
        x.extend(y)
        x.extend(z)
        return x
        def hack(a):
        c=[]
        b=getall()
        for x in a:
        for y in b:
        if x==y:
        c.append(y)
        c=”.join(c)
        print ‘your entered password is:’ +c
        a=getpass.getpass(‘enter the password:’)
        if __name__==’__main__’:
        hack(a)

  2. Anyone else feel this information should have a 2nd part
    to it? I believe the information was fantastic, but
    I even now have unanswered questions as I’m convinced other individuals do. What do you say admin, offer us even more content?

  3. Quality post among a ocean of rubbish! Fantastic writing and really worth reading through.
    Have you thought about becoming a freelance blogger?

    I’m actually looking to hire one if you’re interested.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s