Apr 9, 2023 04:25 AM
(This post was last modified: Apr 9, 2023 04:31 AM by javierpena.)
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.
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:
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
Code
for i in {4..253}; do curl x.x.x.$i -v; doneThis 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

