Ben's notes

Linux, Unix, network, radio...

User Tools

Site Tools


bash_portscan_banners

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
bash_portscan_banners [2017/08/31 06:31] adminbash_portscan_banners [2017/08/31 06:37] – [Parallel portscan] admin
Line 33: Line 33:
 done done
 ) )
 +</code>
 +
 +====Bannergrab====
 +<code>
 +#!/bin/bash
 +
 +IP=1.2.3.4
 +
 +for i in {1..1000}
 +do
 + echo -n "${IP} port ${i} - "
 + timeout 1s bash -c "head -1 </dev/tcp/${IP}/${i}" 2>/dev/null || echo closed
 +done
 +
 </code> </code>
bash_portscan_banners.txt · Last modified: 2021/10/09 15:14 by 127.0.0.1