We have developed a hook-equipped DNA nanomachine (HDNM) for the rapid detection of specific nucleic acid sequences without a preamplification step. HDNM efficiently unwinds RNA structures and improves the detection sensitivity. Compared to the hookless system, HDNM offers an 80-fold and 13-fold enhancement in DNA and RNA detection, respectively, reducing incubation time from 3 to 1 h.