Java Tip: Basic Authentication with HttpURLConnectionJuly 6th, 2007 Java provides a super simple, yet hidden from plain view, way to do basic authentication of HttpURLConnection / URLConnection. Before making a connection add the following lines of code:
final String login ="...";
final String password ="...";
Authenticator.setDefault(new Authenticator() {
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication (login, password.toCharArray());
}
});
This sets your default Authenticator which is called whenever authentication is required for any URLConnection.
Default Cisco Router Web Interface Setup Makes CISCO Routers Completely VulnerableJuly 13th, 2006 Successful exploitation of this vulnerability may allow for the execution of commands on the device at any privilege level, up to and including privilege level 15. Accessing the device at privilege level 15 would enable total control of the device, including but not limited to device configuration changes and device reloading.
Linux / Fedora Core: How To Use rdiff-backup To Pull BackupsMay 26th, 2007 rdiff-backup is a popular, free, open source mirroring and incremental backup system for posix based operating systems like linux & Mac OS X. It uses rysnc algorithm through librsync but it doesn't use rsync.
How to Hack Root Password in LinuxNovember 3rd, 2008 Today I am going to tell you the trick to hack your root passoword in Linux if you are too forgetful to remember it or you have legal permission to enter a server run by a different admin and by any chance he forgot to give you the root password. Those Who Have GRUB bootloader
The first step is to reboot server.
Security Review of Online Feed Aggregators with Password Protected FeedOctober 8th, 2008 In my previous article I have already discussed about how to use the Online Feed Aggregators to view the password protected Feed with username and password. Now the next thing that should come to your mind is how do they actually fair in maintaining the security of your account.
How To Enable Root Account on Mac OSXApril 20th, 2008 1. Login to the Admin account (not the normal account)
2. Open up a command shell in the Terminal application by selecting - Macintosh HD -> Applications -> Utilities -> Terminal
At the command prompt type this command:
sudo passwd root
You will then get the following prompts.
How To Use cURL (in PHP) For Authentication And SSL CommunicationJune 8th, 2006 Using cURL (in PHP) to access https url is often not as simple as using the proper url. Using it for authentication is also not very clearly documented.
How To Use Wget Through ProxyAugust 25th, 2006 Wget is a super-useful utility to download pages and automate all types of web related tasks. It works for HTTP as well as FTP URL's.
How To Reset Google AdSense PasswordMarch 23rd, 2007 Strangely the most obvious means to reset Google AdSense password may not work for you. By obvious I mean the link on AdSense login page: I cannot access my account.
How To Recover Openfire admin Password October 22nd, 2007 Openfire is a cross-platform java based free Instant Messaging server which implements the XAMPP (Jabber) protocol with extensions. It is very well suited as corporate instant messaging solution.
How To Accept Password From Console in JavaJanuary 12th, 2006 Finally you can easily accept password from console in Java, without echoing them. This long unmet need has been addressed in JDK 1.6 codeline.
How to Set Up Root Password for Your MySQL ServerJanuary 17th, 2009 If you have never set a root password for MySQL, the server does not require a password at all for connecting as root. To set up a root password for the first time, use the mysqladmin command at the shell prompt as follows:
$ mysqladmin -u root password newpass
If you want to change (or update) a root password, then you need to use the following command:
$ mysqladmin -u root -p oldpassword newpass
I hope this will work for you perfectly.
Configure Hotmail for POP3March 28th, 2009 Hotmail, unlike others, never had a POP3 access in the first place. Well, you can't blame Microsoft for leaving behind some of the most important features behind while concetrating on the ones which we DO NOT WANT.
How to Reset Master Password in Firefox in Case You Have Forgotten itJanuary 14th, 2009 It happened to me just the other day. Someone deliberately got into my Firefox, cracked my login information from security options and surfed to my password secured websites at glory.
How To Fix SSH Automatic Connection ProblemsSeptember 12th, 2008 I was doing something very simple - connecting to my own machine (with ssh) without using password. That should be simple right?
I dutifully appended my id_dsa.pub to authorized_keys and expected that it would work.
May 20th, 2007 at 4:11 am
Thanks for the password info. Great Post.
January 16th, 2009 at 1:08 am
Dear Mr.Angsuman Chakraborty ,
Thank U so much for great Post
July 8th, 2009 at 8:01 pm
You’re going to overwrite any other authorized keys using scp. You need to append the new key to the auths file instead.
Something like this should work.
cat ~/.ssh/id_rsa.pub | ssh user@remote ‘cat >> ~/.ssh/authorized_keys’