Skip to content

DonniH/iClassified

 
 

Repository files navigation

Intro

I did not create the software, nor am I developer, the software has always been publicly available at this github repository: https://github.com/ColdHeat/iclass. I am simply creating my own fork with more details and clarification since the original has been neglected for a while. Contributions are welcome. As always these types of programs are meant only to be used for education and/or security penetration purposes only. I highly recommend all vendors to upgrade to iClass SE (and use the SE card) since legacy card can be so easily be cloned as seen below

Installing iClassified

In order to read and write to cards, you will, at the minimum, need a reader/writer. The simplest way to get one is to get a reader/writer from the HID OMNIKEY line. The preferred and tested reader is the HID OMNIKEY 5321 v2 Cli its fairly cheap at around $50. The model number does matter, as the HID OMINKEY 5321 Sam CL will not work with this program. Other have used an HID OMNIKEY 6321 CLi though I have never tested it. iClassifed will work on Windows XP or Windows 10 (32 bit only!!). I used Windows XP on VMware.

To build the software you want to start off by downloading the MinGW installer assistant. Install it and select:

  • mingw-developer-toolkit
  • mingw32-gcc-g++
  • msys-base

It should look something like this:

mingw

Then go to Installation > Apply Changes on the menu bar to install part of your build environment.

Now go to C:\MinGW\msys\1.0 and copy everything over to C:\MinGW.

copying

Next, open the msys.bat file (located in the MinGW folder) to get a small shell environment. A new "home" folder should apprear. Now download the iClass folder, extract the zip, and copy all the files into the "home" folder dowload copy Now that the files have been copied go back into the iclassified directory (type in "cd iclassified" or whatever its named; might be named your username; just go into wherever you copied the new files from Github) and type in make.

If everything runs well the files iclass.exe and iclassified.o should appear in your "home" folder. If you get the error "The application failed to initialize properly (0xc0150002)" then you may need to install Microsoft Visual C++ 2008 Redistributable Package (x86).

At this point you should plug in your OMNIKEY reader and install the following drivers.

Only the drivers from 2009 and below will work with iClassiified!

Installing the driver on Windows (work the same with Windows XP)

The following is shown using a 6321 cli reader, but the process is the same across the board.

First, you must install the driver provided in the repo.

In device manager, you should see your Omnikey listed under "Smart card readers" Right click on the Omnikey, then select "Properties" 1

In the properties for the Omnikey, click the "Drivers" tab 2

In the drivers page, click "Update Driver" 3

Click on "Browse my computer for driver software" 4

Click on "Let me pick from a list of available drivers on my computer" 5

Click on "Have Disk..." 6 5

Click on "Browse" 6

Click on "This PC" Then select you C:\ drive 7

Click on the folder entitled "OMNIKEY" (or where ever you installed the Omnikey driver) 8

Click on the folder entitled "5x21_V1_2_0_14" 9

Click on the folder entitled "W32" 10

Click on the file called "cxru0wdm" Click "Open" 11

Click "OK" in the "Install From Disk" window 12

Click "Next" in the update drivers window 13

Now if you go back into the properties of your Omnikey, you should see that the driver has been downgraded, so it should now work with the software provided in this repo! 14

If all goes well you should be able to execute iclass.exe read to read a card and iclass.exe write to write to a card.

writing

Reading and Writing Cards

After you compile the program using the "make" command you should have the iclass.exe program. This will now allow you to read and write the required data blocks (6,7,8,9) that you need to make a clone of the card. In order for the card to be cloned succesfully it is crucial that those 4 blocks are cloned.

To Read All the blocks in a card:

Use the "iclass.exe read" command to read the entire set of data blocks.

To Read a blocks in a card:

Use the "iclass read" command to read a data block (e.g. "iclass read 6")

To Write date to a block

Use the "iclass write" command to write each of the four blocks. (e.g. "iclass write 6 030303030003E017" to write block 6)

Troubleshooting

Can't find Omnikey Reader

Either you are using a newer driver or the wrong reader. Only the 5321 or 6321 v2 Cli works.

Could not connect retrieve smart card reader list

Your reader is not plugged in correctly

Authentication Failed

Your using a high security iClass card, iClassified can't read those card. Security secured:+1:

Releases

No releases published

Packages

No packages published

Languages

  • C 92.9%
  • C++ 6.9%
  • Other 0.2%