Showing posts with label Security. Show all posts
Showing posts with label Security. Show all posts

Tuesday, May 3, 2011

3 easy ways to bypass/get/break most common passwords!

Number 1 - Windows Vista/7 login password
Scenario
Ok, so you got hold of a computer(of a friend or enemy?) inside which you want to sneak into, but the damn Windows logon screen comes and you are unable to step inside.
Idea
Boot the computer using a Linux(read Ubuntu) pen drive. Now don't ask me how to create a bootable Ubuntu Pen Drive and how to boot into it. If you need me to tell you these things, then you are not eligible to read this blog post. Ok, so lets move on. Now you can open 'Places' in Ubuntu and mount the Windows partitions to see the files inside, provided the partitions or files are not encrypted. But who turns on encryption for their all files? I haven't seen anyone around.
But you don't want to stop yourself here and want to start Windows without knowing the password. There is a clever trick. But this will change the password of the owner of that computer. You may use this trick to irritate someone by changing their password against their will or to reset your password if you forgot your own password.
The trick works using the same Ubuntu bootable pen drive. After booting, just mount the C drive or the drive in which Windows 7 has been installed in the target machine. There navigate to Windows\System32 directory. There rename the file sethc.exe to sethc.exe.bak and rename the file cmd.exe to sethc.exe. You should also make a copy of cmd.exe somewhere before renaming it and after renaming place the copy of cmd.exe back in System32 folder. So, now the situation is that your original sethc.exe is named sethc.exe.bak. cmd.exe is named sethc.exe and a copy of cmd.exe is there in the System32 directory with the name cmd.exe.
Now reboot the computer and wait for Windows logon screen. Once the login screen comes, press the Shift key on the keyboard 5 times. A command prompt window will open. Now type there the following ommand and press enter: net user username new-password. Make sure to replace username with the computer owner's username and new-password with the new password you want to set. Voila!! ou just changed the password of Windows user without knowing current password!
How this works? The file sethc.exe is the program that executes when you press shift key 5 times. This is the sticky keys enabling program for differently abled people. So what we did is that we replaced this program with cmd.exe but kept the name sethc.exe. Now at login screen, on pressing Shift key 5 times cmd.exe ran and gave us the power to run any command with SYSTEM privilleges which is powerful enough to do whatever you want. Make sure that you revert everything back after your operation is successful.
Moral: You can't stop anyone from accessing your files or changing your password in Windows if you don't encrypt whole of your hard disk!!! Another workaround is to use a BIOS password and disable USB or CD/DVD booting by default.

Number 2 - Get all the saved passwords of websites from browsers
The trick
This trick exploits the eagerness of browser developers to make their browsers idiot-friendly. I am taking the case of Firefox. The trick works on Chrome and Opera as well. Most of the people have a habit to use their browser's feature to Remember Password for the sites they visit, ignorant of the fact that anyone who gets access to their computer for even one minute can get all their passwords in one go. For such a user just open their browser, say Firefox. Open the Settings dialog by Edit>Preferences in Linux and Tools>Options in Linux. Now go to Security tab. There click the 'Saved Passwords' button. OMG OMG OMG!!! All the passwords saved are visible in plain text form!!! The same trick works in Chrome too. Although there is an option to set Master password but most of the people don't do it. Ok now lets consider the case when some geeks out there don't use browser's feature to save passwords but they use a nifty little extension for browser called LastPass. It is available for Chrome, Opera and Firefox. Probably for IE too. How secure is that? Not at all. Just open any site, for example Facebook.com. If Facebook Home appears then log out. You will reach the login screen. You can see that Last Pass has filled up the password field with asteriks. Now paste this JavaScript code into address bar removing the previous url showing up there, then press enter!
javascript:var oOut,frameSearch=function (oFrame) {if(!oFrame){oFrame=window;}for(var oPass='',i=0,j=oFrame.document.forms;j[i];i++){for(var x=0,y;y=j[i].elements[x];x++){if(y.type=='password'&&y.value){oPass+='\n'+y.value;}}}for(var i=0;oFrame.frames[i];i++){try{oPass+=frameSearch(oFrame.frames[i]);}catch(e){}}return oPass;};void(oOut=frameSearch());if(oOut){alert('The following passwords were found:\n'+oOut);}else{alert('There are no passwords in forms on this page.');}
As soon as you press enter you will see the password in plain text! Isn't that a serious security concern???
Moral: The password is secure only if it is saved in your brain. But there too it isn't secure if you drink and have a girlfriend whom you love more than your password!!!

Case Number 3 - Change someone's Linux password!
This one is for those who think Linux is unbreakable. If you have a strong hammer, you can break anything!
What you have to do is to boot the target Linux system using a pen drive containing another Live linux distro. I recommend BackTrack4R2. Once you boot, just mount the partition containing target Linux. Open a terminal in backtrack and type passwd and press enter. Type the new password whatever you want. Now in backtrack navigate to /etc directory and open the shadow file. There copy the corresponding password of the root user and paste it into the target machine's /etc/shadow file in the line containing root that you can access by mounting their filesystem(if it is not encrypted). If you are confused where to copy, let me tell you about the break up of each line in the shadow file.
Each line consists of some fields which are separated by : i.e. colon symbol. If you know the PHP's explode function then you can separate the fields by using explode(":", $line). The first field is username. Second field is password. We don't need to know the rest. The password field seems to be too complex. But it too has fields contained in it!!! The fields are separated by $ symbol. The first field indicates the hashing algorithm. Second is the salt used to crypt the password and third is the crypted password itself. salts are used to shoo away brute forcers. To know more about salts you may search the internet. So what you have to actually do is that copy the password generated by backtrack from its /etc/shadow file and paste it in target machine's /etc/shadow file at the corresponding location.
Now reboot the computer and in the login screen of victim linux enter the newly created password. Voila! You are in!!!!!!
Moral: If you want to be safe from hackers cracking down your passwords and stealing your data then don't use a computer. Migrate to Himalayas and do some tapasya there.

Thursday, January 14, 2010

Facebook gives away 6-months McAfee subscription

Yes!!! Thats true! Facebook is now in an year long partnership to provide a free 6-month subscription of McAfee antivirus to its 350 million users! Here is the official notification from facebook.

One of the best defenses against security threats is a good offense, and we want to help you take the offensive by having the latest security software installed on your computer. Today, we are announcing a year-long partnership with McAfee to offer all 350 million people who use Facebook the ability to download a six-month subscription to McAfee security software at no cost, along with a special discount once the six months are over.

You can take advantage of this offer by visiting the Protect Your PC tab on the McAfee Page on Facebook.

We're committed to doing everything we can to help you protect your account and make your experience on Facebook as safe and enjoyable as possible. We invest in dedicated teams and advanced technical systems that detect and block suspicious behavior. When we find a message with a link to a fake login page or other malicious website, we prevent it from being sent and delete all instances of it from the site. We also work with third parties to get malicious sites added to browser blacklists or removed completely.

For the rare case in which an account is compromised, we've developed a unique process that requires the account owner to take steps to secure the account and learn security best practices. We've also incorporated custom McAfee software into this process for people identified as having infected computers. Now, if your computer is infected, you will be asked to run a scan like the one shown below and clean it before accessing Facebook. We're not aware of another free Internet service that takes this much responsibility for helping people keep their accounts secure.
We have a lot of control over security measures on Facebook. However, we don't control other websites and services you visit that might infect your computer. For this reason, we recommend that you install updated security software, which you can now do at no cost through this partnership, and that you always follow these safe practices:
Don't open attachments in emails that look suspicious or come from an unknown or untrustworthy source.

Don't open attachments unless you know what they are, even if they're from friends.

Delete chain mail and spam from your email and Facebook inboxes.

Be cautious when downloading files from the Internet.

Be cautious of any message, post or link you see on Facebook that looks suspicious, requires an additional login, or asks you to download or upgrade software.

Use an up-to-date browser that features an anti-phishing blacklist. Some examples include Internet Explorer 8 and Firefox 3.0.10.

Choose unique logins and passwords for each of the websites you use.

Check to see that you're logging in from a legitimate Facebook page with the facebook.com domain.

Become a fan of the Facebook Security Page to receive more tips, updates on the latest threats and other information to help you protect your computer and online accounts.


Jake, a project manager for the site integrity team, is keeping his computer clean.

Sunday, October 26, 2008

TOR - The Onion Router

Sometimes when I get bored, I engage myself in some black activities on net like trying to crack into servers and much more which I am not going to detailize here. Well, to anonymize myself and save from wrath of some of the creepiest system administrators I use proxies(like everyone). But searching for a working proxy is a pain sometimes. Although there are some programs with predefined proxy lists but they are either trial or paid or crap!!!
While delving for a feasible solution I came to know about The Onion Router - the best solution to all anonymity woes!
TOR connects you to your requested site through a networked virtual tunnel of relays.
For more information visit their site.
TOR itself is not a HTTP proxy, it acts as a SOCKS proxy. The download from their site is called Vidalia bundle, and contains Privoxy which works as an HTTP proxy so you can use any browser. I am not going into detail of how to use TOR to anonymize yourself because they themselves have such a good and informative site. Just visit them and know everything about TOR.