For those into home-brew programming projects, its easy to make a microcontroller spit out some Morse code with the post shown below. What makes [pavlin’s] take on this project interesting is that it resides on a tiny USB board with an ARM processor. The design for the board is available with single-sided artwork suitable for production using simple methods like toner transfer.
The STM device has a built-in USB bootloader. It can also act as a serial port, which makes the project very simple and a bit more flexible. The only external parts are a speaker and an opt-oisolator.
The program provides a command line interface over the serial port that you can use to program the message and set other options like speed and the delay between messages.
Sometimes you will connect a USB to the PC and get an error message saying the drive has a GPT Protective Partition and you cannot format the drive. Here is the fix to resolve the issue:
First, what is a GPT USB stick? The GUID Partition Table (GPT) is the successor to the Master Boot Record. The MBR was created by IBM back in the early 90s. The problem with MBR is the limitation to partition table sizes which is 2 Terabytes.
Since there are no 2T USB flash drives (at the time of this post), there is no need to use GPT as your partition table.
Removing the GPT Protected Partition can be accomplished through the Windows Diskpart program.
- Determine the Disk Number for the USB GPT-protected drive. To do this, perform the following:
- Right-click on (My) Computer.
- Choose Manage.
- Select Disk Management (listed under Storage).
- Look for the drive that is identified as GPT and note the Disk number (such as Disk 1).
Format USB GPT Protected Partition
- Now, open a Command Window. From the command prompt, type diskpart and press Enter.
- The diskpart prompt will open.
- From the diskpart prompt, type list disk and press Enter. A list of disks will appear in a text format. You will return to the diskpart prompt.
- From the diskpart prompt, type select disk disknumber (in this example from the screen shot above, you would type select disk 1)and press Enter. A message appears saying that the disk is selected. You will return to the diskpart prompt.
- From the diskpart prompt, type clean and press Enter. At this point the drive’s partition and signature a removed. You will return to the diskpart prompt.
- From the diskpart prompt, type exit and press Enter. Type exit once more to close the Command Window.
There are two ways to make a USB stick read only. One way is a universal solution and is 100% permanent, the other way is PC specific and a good deterrent. When we say 100% permanent, this means the USB stick is read only (write protected) on all computers, whether it be a Mac, PC, Linux, etc type computer, the USB is read only and the status cannot be changed. The other method flags a USB device to be read only in relationship to the PC it is connected to so that whenever that USB stick is connected to that computer, it makes the USB read only and blocks all write commands to the device.
Most times an IT manager or content owner wants the USB stick to be read only so the files cannot be deleted or formatted of the drive. Another reason for making a USB read only is for the original files to remain the same and blocks the ability for files to be changed or manipulated. Finally, it’s smart to have USBs read only so that virus’ don’t jump onto the drive and possibly spread to other computers.
Let us start with the less permanent way because it’s easier to do and doesn’t require any specific hardware. You will need a Windows7 machine or higher. The Windows7 machine will have DiskPart utility which allows us to perform all sorts of cool things to flash drives, like setting write protection.
- Connect the USB to your Windows computer.
- To begin, go to your Windows Start and in the Search Field type “cmd”
This will run your Command prompt.
- Next, you will want to get to the C root of the Command prompt and if you are signed in as a user you can simply type cd\ this will get you back to the root of the C drive.
- Type DISKPART
- Type LIST DISK
Now you will need to find the USB stick connected to your PC. Most likely it’s DISK 1
When a USB stick is connected to a PC the Windows operating system enumerates the device. In simple terms, this means Windows will check to see what type of device was just connected, a HID device, Mass Storage Devicet etc, it will also check the speed of the device.
During the enumeration process some registry entries are made into the Windows registry…this is where a hacker could get into your system and take control. This is the update Microsoft issues earlier this week to fix the security flaw.
Since the vulnerability is triggered during USB enumeration, no user intervention is required. In fact, the vulnerability can be triggered when the workstation is locked or when no user is logged in, making this an unauthenticated elevation of privilege for an attacker with casual physical access to the machine. Other software that enables low-level pass-through of USB device enumeration may open additional avenues of exploitation that do not require direct physical access to the system.
So be sure to update your PC with the update notification comes through – it’s in your best interest.
Full Microsoft article
The Alesis IO Dock is a great product for iPad musicians – this small hack makes it even greater. It overcomes one limitation of the IO Dock: You can’t simply hook it to a USB hub. So I decided to build in an additional hub – which allows me to hook up additional class-compliant interfaces like my M-Audio Axiom master keyboard, and power them via the hub.
Yes, it works. No, it hasn’t been thoroughly tested yet. So try at your own risk.
Full Tutorial (nice)
Angry Birds is a great game for the first couple weeks. New levels, new designs, new challenges. However, the game gets a little stail for the 30+. Today, we came across something which might re-kindle the fire for the 30-somethings who got burned out after a couple weeks.
How about taking the slingshot in the game and making it real life? This is exactly what this DIY hacker did.
Over at MBed, the DIY tutorial for a USB slingshot gives step by step instructions, source code, design schematics and more for you to successfully remake a USB slingshot.