[Snort-devel] PoC Software for Magnetic Stripe Processing of Credit/Debit Cards for Snort SDF

Bill Parker wp02855 at ...2499...
Sat Jun 20 16:03:58 EDT 2015


Hello All,

   This is a very rough output for processing of Credit/Debit Card
Magnetic Stripe data (this is Track 1, Format B), and while it is
still a work in progress, it does take the data supplied and breaks
it down into the following fields:

Account Number (max of 19 characters):
Card Holder Name (max of 26 characters):
Expiration Date (in MMYY format):
Service Code (3 chars):
Discretionary data (1 to 4 chars)
The Longitudinal redundancy check value (3 chars)

Here is the output from the program below:

Enter Line for Mag Stripe Testing:

%b1234567890123456789^AbCdEfGhIjKlmnopQRStuvwxyz^11171270874?LRC

The Line Entered was:

%b1234567890123456789^AbCdEfGhIjKlmnopQRStuvwxyz^11171270874?LRC

Length of Buffer entered is: 65

Buffer after conversion is:

%B1234567890123456789^ABCDEFGHIJKLMNOPQRSTUVWXYZ^11171270874?LRC

SUCCESS (SO FAR):

Starting sentinel is '%'
Ending sentinel is '?'
Format Code is 'B'

The Account Number is: 1234567890123456789

The Card Holder Name is: ABCDEFGHIJKLMNOPQRSTUVWXYZ

Card Holder Expiration Date is: 1117

Card Holder Service Code is: 127

Card Holder Discretionary data is: 0874

The Longitudinal redundancy check value is: LRC


Process returned 0 (0x0)   execution time : 4.500 s
Press any key to continue.

This is also filed at the following URL:

https://bugzilla.clamav.net/show_bug.cgi?id=11341

The source code is a(n) attachment.

It will be modified to check track 2, and also add
checking for valid service codes, etc.  This is still
a work in progress.

Bill Parker (wp02855 at gmail dot com)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.snort.org/pipermail/snort-devel/attachments/20150620/3458e458/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.c
Type: text/x-csrc
Size: 6522 bytes
Desc: not available
URL: <https://lists.snort.org/pipermail/snort-devel/attachments/20150620/3458e458/attachment.c>


More information about the Snort-devel mailing list