Pages

Friday, January 20, 2012

ICICI netbanking OTP solution


Most of the people are facing OTP issues using ICICI netbanking while travelling outside India. When people are travelling outside India, in most of the cases they are unable to receive OTP on their mobile registered in India (as mobile is not reachable, CDMA etc.). In this case there are no other options to receive OTP as ICICI do not send OTP on registered mail address for Indian resident person.

I have found a solution for this problem which is not a good option but can be used if it is very urgent for someone to access ICICI netbanking.
In general, ICICI netbanking allow you to access your account without OTP on a machine if you have accessed your account on that machine once. Once you have accessed your account, it will not ask you for OTP in future.
But when we travel outside India, the IP address of your machine changes due to which your machine is not recognized and you are unable to access your account.

Now Try below....

1) Make sure you are on right PC/Laptop (I recommend you to do this on your personal machine) on which you want to enable netbanking without OTP.
2) Go to https://www.irctc.co.in/.
3) Login to site (create a login if require).
4) Book a railway ticket and make the payment by ICICI net banking. (You can cancel your booked ticket later if not required and it will charge you very less)

While booking railway tickets, it will not ask you for OTP while.

Once you are done with ticket booking try to logon to you ICICI netbanking, enter credentials, and hurrah!!! NO OTP this time!!!!!

Isn't it AWSOME?

Wednesday, January 4, 2012

Run Perl script as a windows service

If you are looking for “How to run a Perl script as a windows service, so it can be run as a background service”, then you are at right place. Here are some generalized steps that can be used to setup Perl scripts as services under Windows 7. As it works on windows7 it should work with other version of windows, not tested though.

Put NT resource kit in place:
Copy the window NT resource kit to C:\WINNT\. You can name it as you like but putting it as WINNT will help you to recall in future. The Windows NT Resource Kit provides two utilities "INSTSRV.EXE" and "SRVANY.EXE" that allow you to create a Windows NT user-defined service for Windows NT applications.

INSTSRV: - Allows you to installs and removes system services from Windows NT.
SRVANY: - Allows any Windows NT application to run as a service.

Download INSTSRV and SRVANY

Add a new service using command line: 
Run MS-DOS command prompt as an administrator as shown below, and run the following command:

INSTSRV <Service Name> C:\WINNT\SRVANY.EXE
For example: INSTRV MyPerlService C:\WINNT\SRVANY.EXE

Above command will register the “service” with service name “MYPerlService”. Following is the screenshot for your reference.


Now go to “Control Panel\All Control Panel Items\Administrative Tools\Services” and set the "Logon As" to Local System Account in the service properties (ignore if it is already set).

Modify registry to add perl script in service:-
Run MS DOS command prompt and type command “REGEDIT”. It will pop up a window. Follow the path below and look for your service name “MyPerlService”:

HKEY_LOCAL_MACHINE -> SYSTEM -> CurrentControlSet -> Services -> MyPerlService

Add the new Key: Parameters
Select Parameters
Add the String Value: Application
String: C:\PERL\bin\perl.exe     (your path to the perl.exe program) 

Add the String Value: AppParameters
String: C:\DIR_To_Perl\perl_script.pl   (your path to the perl script)


Finally the configuration for your service should look like below:-

Exit the Registry Editor.

Start the service:-
Start the service from “Control Panel\All Control Panel Items\Administrative Tools\Services”



To Stop & Remove the service
To stop the service, go to the above path and select “Stop”. This service can be removed from registry with the help of below command.
INSTSRV MyPerlService REMOVE 
Above command will mark this service as deleted and will be removed from the services list on next start of your system.

That’s all and you have configured your perl program to run as a windows service. You can add any number of processes using these steps.