PDA

View Full Version : Changing PIN, PIN2, PUK


Klaus L'Imbecile
December 29th, 2008, 20:37
Hi Folks,

I want to use the Java Smart Card I/O API to do the following on my SIM Card:

1) Check PIN, PIN2, PUK Codes validity
2) Change PIN, PIN2, and PUK codes.

Essentially, I want to provide an implementation to the following interface:

public interface GsmSimAcessAPI{
boolean checkPIN(String pin);
boolean checkPIN2(String pin2);
boolean checkPUK(String puk);

void changePIN(String newPin, String oldPin);
void changePIN2(String newPin2, String oldPin2);
void changePUK(String newPuk, String oldPuk);
}

The skeleton code for acessing the SIM Card is available in the folloing thread:

http://x86.sun.com/thread.jspa?messageID=10155660

Now, what is missing are the APDU commands. Can you guys help me with this?

Thanks,

Klaus.

Alex Railean
January 9th, 2009, 12:05
Hi Klaus,

We don't provide that kind of technical support here.

If you're looking for a program that can make those operations, take a look at SIM Manager (http://www.dekart.com/products/card_management/sim_manager/).

If you want to write custom software, then perhaps you can use our SIM card API; it is not yet public but most of the documentation is already written and the API was successfully used in several third party projects.

The API is available as a DLL and header files in C.

D.Opike
October 21st, 2009, 21:06
volevo sapere se ce qualche software che insieme ad un lettore di smartcard tipo pkey..,permetta di recupere codici pin e puk dalle sim card e lavorarci sopra..grazie a tutti

Alex Railean
October 22nd, 2009, 05:24
You cannot access the card without knowing its PIN, there are no workarounds.

If you know the PUK, you can block the PIN and then unblock it with the PUK. But if you don't know the PUK either - nothing can help you, the card will permanently lock itself once you enter the wrong code several times in a row.