Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Help 

What to add to my one liner?

So I am scanning IP's for open 80 port to find some easy (custom coded forgotten websites, old wordpress, etc.) targets in the wild so I can train myself with Kali and its tools.

Code
for i in {4..253}; do curl x.x.x.$i -v; done

This is what I use at the moment, which is not bad, but now I want to improve on it. Obviously it currently prints a lot of these:

Code
>
* Recv failure: Connection reset by peer
* Closing connection 0
curl: (56) Recv failure: Connection reset by peer
*   Trying x.x.x.x :80...
* Connected to x.x.x.x (x.x.x.x) port 80 (#0)
> GET / HTTP/1.1
> Host: x.x.x.x
> User-Agent: curl/7.87.0
> Accept: */*
>

My problem is I cannot " | grep <html> " because it will not show me IP on the "grep" line. So what can I do to get rid of the noise and make it show only the good stuff? Please don't suggest any ready-to-go software I want to make my own and learn to bash or whatever.

Thanks!

Edit: I want to make it x.x.0.0/16 but I need to find a way to remove the unwanted results, this is why I am running it on basically /24 atm
Let's explore the possibilities of the universe and make this world our playground
Depends how fancy you want to be! If you don't want to write your own software, take a look at nmap (single target scans) or masscan (huge scans) :D
quack


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Help] by ClumsyJul 30, 2026 06:27 AM 1 174 Jul 30, 2026 06:27 AM
Last Post: XtremeDiscount
by MapexMay 20, 2012 11:40 PM 2 79 May 20, 2012 11:40 PM
Last Post: infamousnoone
[Perl] by bsdpunkMar 15, 2011 09:54 PM 0 79 Mar 15, 2011 09:54 PM
Last Post: bsdpunk