How to Make a USB No-data Charger Cable





Introduction: How to Make a USB No-data Charger Cable

Your USB charged devices can be attacked through the USB port while charging. This has been demonstrated at Blackhat 2013 (, and documented on the web under the general term "Juice Jacking". See for example:

How can we protect ourselves against malicious public charging stations or cheap iphone chargers sold on chinese websites? One of the answers is to make a USB cable which can only feed power to the USB device without any ability to transfer data. This is suprisingly easy to do so let's get starting!

Step 1: Shopping List and Tools

We will need:

  • a micro USB cable which has a micro USB plug at one end and a micro USB socket at the other end. Purchase at your favorite chinese vendor.
  • duct tape

Tools & skills:

  • paper cutter
  • l33t cable surgery skills :)

Step 2: The Incision

We need to make a short incision along the length of the USB cable using the paper cutter. It can be a bit tricky as you need to be careful not to cut the USB wires and at the same time cut through the whole insulation which can be thick.

One way I found that works is to first make a shallow cut and make it gradually deeper until you can feel the knife moving smoothly when it's tip gets to the empty space between the insulation and the wires. In case you are not sure you can do this properly take some old keyboard or mouse cable and practice.

Also, it's good to buy two USB cables so that you won't have to wait for a new one when you make a mistake. They are dirt cheap so it's a good idea to have a backup.

Step 3: Open and Inspect

Open and inspect the cut to see if the USB wires that we care about are not damaged. We have to leave the red and black wires as they provide the power. The other wires (white and green) are the data lines.

Step 4: Cut the Data Wires

Simply cut the data wires leaving the power wires intact.

Step 5: Finish Up

Seal the incision with a bit of duct tape.

Step 6: Test

Connect the device to your PC using the cable you've made. If the device starts to charge but the operating system doesn't see the new device plugged in your cable works! How to check if your operating system detects the device or not?



  • Paper Contest 2018

    Paper Contest 2018
  • Pocket-Sized Contest

    Pocket-Sized Contest
  • Science of Cooking

    Science of Cooking

We have a be nice policy.
Please be positive and constructive.


USB data pins shortened work fine in Iphones 6 and up.



"White and purple"? I have to ask, and without meaning any offense,
does the author of this post suffer from any sort of colorblindness
issues? The fourth wire in a standard USB cable is green, not purple, and in fact the image right above that text clearly shows a green wire sticking out of the sliced-open cable.

Perhaps it was merely a mistake, but regardless — for anyone following this guide, "purple" should be "green".

I do suffer from colorblindness. Already fixed the guide, wikipedia also mentions the standard data cable colors as being green and white
Thanks for the heads up :).

I thought that might be it. :-) My dad dealt with that. "Are these socks black or brown?" "...They're navy blue." "Oh." Happy to help! (I can't believe nobody mentioned it for 2 years...)

Can I put a rocker or slider switch between one of the data cables so I can turn data transmission on or off?

This may not work (cause transmission errors) for High-Speed data transfer. It might work for Low or Normal speed. Please check, I'm curious :).

Can I put a rocker or slider switch between one of the data cables so I can switch data transmission on and off? (Also, this is my original idea, i didnt steal it)

The USB standard provides for notifying the device that it can fast charge if it sees that the data pins on the device end of the cable are shorted together. Apple is non-standard in this respect, but rewiring cables this way has worked with all my Android devices (4 Samsung phones and 2 Amazon Kindle Fires).

Yes, the Fire is an Android, just stripped of Google Play - which can be added back in on 5th generation and later Fires - go to XDA Forums at and download and run the four apk installation files there - a tip of the hat to the eBook Reader Blog for that link).

Very cool and props on the l33t skills :-) will apple products give the stupid "not certified" error - any idea?

I thought "certified" was only for Lightning cables, or Lightning-to-USB adapter cables? You definitely don't want to try this hack with a Lightning cable, even if it's USB on one end.

I do not know, I don't own any Apple hardware. If I will meet someone who has though I will try to remember to check.