3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Magnetic stripe card spoofer

Step 4Create .wav file of stripe data

Finally, you need a a signal to send to the electromagnet. Edit the data array in the attached C++ program (written by geohot) to contain the data from the magnetic stripe that you want to emulate, and compile/run the program. It will output a file called text.wav that is your data file. Upload the file to your favorite music player (make sure it stays in .wav format), and you're in business!

There are two versions of the program in the zip that I've attached - one is for powerPC mac, and the other for PC/x86 mac.

If you are in need of some data to encode, see my other instructable.

Remember, don't be naughty. I'm not responsible for anything stupid/illegal you try do with this device.
« Previous StepDownload PDFView All StepsNext Step »
9 comments
Oct 18, 2010. 11:59 PMasconine says:
There is an app for the iPhone called square and when you sign up for it they send you a card reader that plugs into your headphone jack ( see squareup.com). The way this app works is by converting the info on the mag-stripe into audio. So could you use an audio file recorded off of the Square card reader rather then using this C++ app to create one?
Nov 1, 2010. 8:54 AMGrazfather says:
Yup, totally.
Sep 16, 2010. 11:25 AMPooloop says:
You could make a video tutorial explaining how to create the .Wav file
Sep 13, 2010. 1:42 PMPooloop says:
where a put the card code in the c++ code?
Feb 11, 2009. 6:11 PMtiroshboaz says:
well, like seth3d I have compiled it in g++ and got the a.out file, but i can't find how to play the file, what am i doing wrong?
Mar 21, 2009. 6:43 AMbugmenot says:
a.out is the binary executable file. Once you get the a.out file, run it like you would run an exe file one Windows. It will then produce a "test.wav" file. This wav file is the sound file with the magstripe data.
Aug 9, 2008. 3:19 PMzaneyhaney54 says:
if I compile the program in g++ on my linux machine should it still work the same?
Aug 22, 2008. 1:04 PMperlpower says:
G++ as you call it refers to the gcc compiler which can compile C/C++ code, so it should work the same as long as the code does not use Microsoft code.
Oct 31, 2008. 7:07 PMseth3d says:
This doesn't appear to work in Linux, perhaps I am doing something wrong? '$ gcc msencode.cpp /tmp/cccKjoeO.o:(.eh_frame+0x11): undefined reference to `__gxx_personality_v0' collect2: ld returned 1 exit status'
Oct 31, 2008. 7:14 PMseth3d says:
Oh snap, g++ works dandy though! Thank you! I can't wait to reduce the 12 security cards I have to carry around for work!

~/magstripe$ g++ msencode.cpp
~/magstripe$ ls
MAGstripe.zip MACOSX/ a.out* msencode.cpp msencodemac.cpp wave.h
Aug 12, 2008. 6:35 PMnistco92 says:
Would it be possible to reverse the wiring on the amplifier and pass the card over the electromagnet, putting the headphone plug into a mic jack on a computer and recording with Audacity (or similar)?
Aug 20, 2008. 10:00 AMalwinovich says:
that would be
1very unpractical
2would damage the card
and you don't really need the amp

solution:read this

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
42
Followers
2
Author:powerpants