Wednesday, 26 August 2015

3M AT9000 keyboard wedge

this is easy
1) Install SDK http://www.3m.com/ssdcp/3M%20Page%20Readers/Standard/3M%20Page%20Reader%20SDK%203.3.3.10%20Setup.exe

2) Find KeyboardWedge.exe in "bin" folder of there 3M SDK folder was installed.

C:\Program Files (x86)\3M\3M Page Reader\3.3.2.7\Bin
Or if your system is 32bit
C:\Program Files\3M\3M Page Reader\3.3.2.7\Bin



3) Switch keyboard to English.Then application KeyboardWedge.exe start open notepad and put the passport on scanner. You must see MRZ from the passport without difference.

If you will see strange symbols you must select in windows language settings "English". This is where you find "language for the program that do not supported UTF8"

Wednesday, 15 July 2015

Ehaj.haj.gov.sa whats new? How attach passport readers?


Wow, new season new surprise.

Add Hajj Information


How this page works?

Easy. Many passport readers enter data via the keyboard (simulate keyboard typing).

Then you try to start typing something you will see changes in blue box with "Ready for scan" text.
This mean js script start to parse input data. After it js script encrypt mrz data by RSA with public key, divide it by 3 path and send to server. They obfuscate encrypting script  but no problem to read code. They use  open encrypting js library  and add own ~170 lines of code at the end of file.

How you can test it without passport reader?

1) Install it http://www.autohotkey.com
2) Create mrz.ahk file with this content
Sleep 4000
Send  P<USAOBAMA<<BARAK<<<<<<<<<<<<<<<<<<<<<<<<<<<{enter}01111111<5USA6001010M1001015<<<<<<<<<<<<<<08;
3) Turn keyboard lang to english.
4)  Start mrz.ahk and quickly move to the front your browser with page like on upper picture. Click on page to set window focus. Wait.


Props:
  • They allow upload photograph more then 15kb! Below 5kb you can get error.
  • They did pilgrims form simpler
  • They want to change something with hajj process
  • They have a ticket system
 This is this is a small holiday :-)

Cons:
  • They did more steps for pilgrim submiting
  • They did slow speed portal
  • They did portal with often 500 errors
  • They still use old technology and patterns with mojarra framework (java)
  • And the most important  - they do not want hear about API for submitting!
    What they think? Manually submitting provide less errors? This is not right. No one interesting for dong errors.
  • There is ActiveX for reading images from e-passports? Why we need upload images 1000 times?

For Access-is OCR640 
For 3M AT 9000  MK2

Thursday, 11 September 2014

How to fill hajj visa form manually without passport scanners not only in Internet explorer?

Do you want enter to site without internet explorer?
You want edit pilgrim form (exclude passport number) not on windows machine only? Linux, MacOS?

Its very easy!

Wednesday, 3 September 2014

What is "Kindly use MOFA Passport Reader" error on submit mofa visa page?


INFO

Kindly use MOFA Passport Reader - is new fantastic technology from our KSA "friends".
2 september 2014 they are update your ActiveX component.3 September updated again. They add generation secret digits from passnumber.  And they check code from activeX with code from server.
Оnly from AtiveX this code can be get. They try all of us use idiotic logic: we need all in the the world  fill 4 million forms by hands every year!!!We need upload 2 million photographs by hand!!!

GUYS!! DO YOU KNOW ABOUT API ANYTHING? WHY YOU HATE US?
IF YOU NEED HELP WE ALL OPEN FOR YOU.
you dont get an answer... 
Anyway:

How you can hack this:

1) The most universal way to use passportreader dll like com object in your application. If KSA friends want obfuscate code tomorrow is nothing to brake on you system. Its most universal way but not  fastest.
https://visa.mofa.gov.sa/References/PassportReaderSetup.CAB#version=1,2,0,0
2) Mail me to get algorithm :-)

Monday, 1 September 2014

What is "Error Saving In Embassy Db" on confirm pilgrim?

Error Saving In Embassy Db

Did you surprise to see this error?
Answer: Some name of your pilgrims more than 15 symbols! It is genius!!!!

Saturday, 30 August 2014

How to use passport scanner 3M AT9000 with mofa visa activex component?


Update 25.07.2016. for new haj portal please look keyboard wedge application.
========================================================

The new mofa visa form require use passport reader scanners:
OCR64, OCR315, 3M AT9000 MK2, CR100, Bmos 5200e, XENON 1900

Why?

I think KSA embassy tired finding errors in passport data. But they do it like egoist with low tech solutions. Many mistakes, strange logic.2 day i have tryed to get it work!!!
NO instruction! No any info! No support! Nо clean uninstall!!!
Tested on winxp sp3 + IE8, win7 64 + IE11.

Clean your machine

First of all clean your machine from 3M drivers and PassportReader ActiveX component.

How install AT9000MK2 for old haj portal

  1. Download   AT9000MK2 SDK
    http://www.3m.com/ssdcp/3M%20Page%20Readers/Standard/3M%20Page%20Reader%20SDK%203.3.3.10%20Setup.exe

  2. Install it to C:\. DONT install  in Program Files.
  3. Оpen IE and allow in setting  all dangerous activeX activity. Restart IE.
  4. Open 3M Reader Expo now with MRZ setting.Read passport. Make sure it works. Do nоt eject passport from scanner. Close Reader Expo.
  5. Open https://visa.mofa.gov.sa/Hajj/Login and login.
    And go to https://visa.mofa.gov.sa/Hajj/addHajjVisa . Wait background installation!
  6. PassportReader ActiveX  install, didnt find 3M in program files and ask you WHERE 3M folder? Choose C:/3M
  7. Now you will see menu with scanners. Choose AT9000MK2. Now "_PassReaderControlSetting.dat" will be created. You will need to delete it if you want to choose another scanner.
  8. https://visa.mofa.gov.sa/Hajj/addHajjVisa connect to your AT9000MK2 1s at times. If no alert "undefind" activeX component install correctly and should work with AT9000MK2

Troubles

Q: I still see "undefined" alert.
A: Are you runing IE under  administrative rights and  allow all dangerous activeX activity?
ActiveX component cant find scanner or have no access.

Q: I dint see "undefined" alert but scanner is not work.
A:You need to see MMMReader.log file  in 3M folder.If you see errors

- ERROR - [ThreadID: 8240] - .\OttawaReader.cpp(1824) : OttawaReader::DoTakeSnapshotOttawa() - Camera driver returned an error code - 5 ERROR - [ThreadID: 8240] - .\ReaderDll.cpp(545) : TakeDocDetectImage() - [caught]: Camera driver returned an error code - 5 WARNING - [ThreadID: 8240] - .\ReaderThread.cpp(1814) : ReaderThread::ErrorCallback() - - Setting reader to errored state. 

It mean PassportReader ActiveX component cant work with current 3M driver.
Do you install latest driver version in C:\3M?
Reinstall all.