> For the complete documentation index, see [llms.txt](https://p1yushsecurity.gitbook.io/offsec/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://p1yushsecurity.gitbook.io/offsec/enumeration/scanning/onetwopunch.sh.md).

# onetwopunch.sh

Download link → <https://github.com/superkojiman/onetwopunch/raw/master/onetwopunch.sh>

>

```


>> git clone https://github.com/superkojiman/onetwopunch.git
>>> cd onetwopunch

NOTE : Create a text file contains of our targets machine.

>>>./onetwopunch.sh ip-range.txt tcp

>>> ./onetwopunch.sh -t ip-range.txt -p tcp


```

#### So, the idea behind the script to generate a scan of 65,535 ports on the targets. The script use unicornscan to scan all ports, and make a list of those ports that are open. The script then take the open ports and pass them to nmap for service detection.
