Snort mailing list archives
PoC Software for Magnetic Stripe Processing of Credit/Debit Cards for Snort SDF
From: Bill Parker <wp02855 () gmail com>
Date: Sat, 20 Jun 2015 13:03:58 -0700
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)
Attachment:
main.c
Description:
------------------------------------------------------------------------------
_______________________________________________ Snort-devel mailing list Snort-devel () lists sourceforge net https://lists.sourceforge.net/lists/listinfo/snort-devel Archive: http://sourceforge.net/mailarchive/forum.php?forum_name=snort-devel Please visit http://blog.snort.org for the latest news about Snort!
Current thread:
- PoC Software for Magnetic Stripe Processing of Credit/Debit Cards for Snort SDF Bill Parker (Jun 20)