News for hackers. Stuff that matters.
Re:Check if your IP is exposing any ports. If you see 404 pa... by withinrafael on Tuesday September 22, 2020 @02:11PM (#24557924)
For those a bit confused: This subdomain redirects to https://beta.shodan.io/host/$YOUR_REMOTE_ADDR. This runs a search against their existing database of information. Shodan has an army of bots that crawl the entire Internet and stores what it finds along the way. Folks generally pay Shodan for access to these notes.

The site returns various HTTP error codes based on the results of that lookup, or shows a fancier page with open ports and other information it has on that IP address. (Example: https://beta.shodan.io/host/1.1.1.1)

There is no active scan occurring here. (But you could be hinting to Shodan that these particular IPs are valid though!)

Re:Check if your IP is exposing any ports. If you see 404 pa... by xoa on Tuesday September 22, 2020 @02:20PM (#24558045)
>(I wouldn't rule out that you may be hinting to Shodan that these particular IPs are valid though!)

For those of us on IPv4, eh. Only 4 billion addresses, and with a lot of that itself tied up in various large /8s to a few specific organizations many of which can be assumed to be beyond casual level, it's just no longer a real haul to scan everything all the time at a basic level. Plus for those of us browsing from our main address we're leaving a trail all over the web anyway through a host of poorly secured servers. So I while I don't disagree it's worth thinking about information leaks and honey pots and the like whenever dealing with infosec in any way, in this specific case I also don't think this reveals anything of significant value.

Re:Check if your IP is exposing any ports. If you see 404 pa... by nycdatasci on Tuesday September 22, 2020 @03:44PM (#24558946)
Supporting your point: With zmap (https://zmap.io/) you can scan IPv4 in 45 mins using a 1 Gb pipe, or in 5 mins on a 10 Gb pipe.
Re:Check if your IP is exposing any ports. If you see 404 pa... by H8crilA on Tuesday September 22, 2020 @04:42PM (#24559653)
Wait, why does a port scan need to transfer > 30 GiB of data?

Or do you mean all of IPv4?

Re:Check if your IP is exposing any ports. If you see 404 pa... by JustFinishedBSG on Tuesday September 22, 2020 @04:45PM (#24559676)
All of the internet yes
Re:Check if your IP is exposing any ports. If you see 404 pa... by Thorrez on Tuesday September 22, 2020 @11:43PM (#24562725)
Not IPv6
Re:Check if your IP is exposing any ports. If you see 404 pa... by samoa42 on Wednesday September 23, 2020 @09:03AM (#24566511)
i'd say that hosts which cannot reach ipv4 addresses are not part of 'the internet' (thou they are part of 'a network')
Re:Check if your IP is exposing any ports. If you see 404 pa... by Fnoord on Tuesday September 22, 2020 @03:50PM (#24559006)
Full UDP range?
Re:Check if your IP is exposing any ports. If you see 404 pa... by ed25519FUUU on Wednesday September 23, 2020 @12:15AM (#24562917)
On a beefy enough host, you could probably run massscan[1] while out at lunch and probably touch every ipv4 host on the internet.

https://github.com/robertdavidgraham/masscan

Re:Check if your IP is exposing any ports. If you see 404 pa... by RL_Quine on Tuesday September 22, 2020 @02:14PM (#24557956)
If you want active scanning, http://portscan.me/ will do a reverse nmap port scan of whatever requests it.
Re:Check if your IP is exposing any ports. If you see 404 pa... by mcny on Tuesday September 22, 2020 @04:17PM (#24559330)
here's a portscan.me if you are getting forbidden and just want to see what a result looks like

  Scanning {ip} for interesting ports on 2020-09-22 20:14:00 CEST…                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
  This may take a short while.

  Starting Nmap 5.21 ( http://nmap.org ) at 2020-09-22 20:14 UTC
  Initiating Ping Scan at 20:14
  Scanning {ip} [2 ports]
  Stats: 0:00:01 elapsed; 0 hosts completed (0 up), 1 undergoing Ping Scan
  Ping Scan Timing: About 50.00% done; ETC: 20:14 (0:00:01 remaining)
  Stats: 0:00:02 elapsed; 0 hosts completed (0 up), 1 undergoing Ping Scan
  Ping Scan Timing: About 50.00% done; ETC: 20:14 (0:00:02 remaining)
  Stats: 0:00:03 elapsed; 0 hosts completed (0 up), 1 undergoing Ping Scan
  Ping Scan Timing: About 99.99% done; ETC: 20:14 (0:00:00 remaining)
  Completed Ping Scan at 20:14, 3.00s elapsed (1 total hosts)
  Nmap scan report for {ip} [host down, received no-response]
  Read data files from: /usr/share/nmap
  Note: Host seems down. If it is really up, but blocking our ping probes, try -PN
  Nmap done: 1 IP address (0 hosts up) scanned in 3.07 seconds

  The scan was performed from 89.186.169.101. Best regards gigahost.dk
--

OP's link archived from archive.fo

https://archive.fo/72cS5

Re:Check if your IP is exposing any ports. If you see 404 pa... by vit05 on Tuesday September 22, 2020 @03:23PM (#24558696)
"Access Denied! Your address is blacklisted. More information about this error may be available in the server error log."

What should I do?

Re:Check if your IP is exposing any ports. If you see 404 pa... by contravariant on Wednesday September 23, 2020 @03:06AM (#24563884)
You should just run nmap yourself I reckon.
Re:Check if your IP is exposing any ports. If you see 404 pa... by simonklitj on Tuesday September 22, 2020 @03:32PM (#24558809)
Got the same message.
Re:Check if your IP is exposing any ports. If you see 404 pa... by achillean on Tuesday September 22, 2020 @06:04PM (#24560511)
We don't retain web logs and the way users interact with Shodan doesn't change the way Shodan crawls the Internet. I.e. using the website/ API doesn't change how we look at the Internet.
Re:Check if your IP is exposing any ports. If you see 404 pa... by tzs on Tuesday September 22, 2020 @02:18PM (#24558014)
I'm still confused, because "curl -D - https://beta.shodan.io/host/$ALIP" where $ALIP is the IP address of my Amazon Lightsail instance, gives different results depending on where I do it from.

If I do that query from home, it correctly tells me that 22, 80, and 443 are open. If I do that query from the Lightsail instance itself, I get 404. I also get 404 if I do it from work.

Re:Check if your IP is exposing any ports. If you see 404 pa... by achillean on Tuesday September 22, 2020 @05:46PM (#24560318)
Are you sure it's a 404 and not a 403? We block access to the website from the cloud so you're probably getting blocked.
Re:Check if your IP is exposing any ports. If you see 404 pa... by tzs on Tuesday September 22, 2020 @06:43PM (#24560875)
Oops...you are right.
Re:Check if your IP is exposing any ports. If you see 404 pa... by withinrafael on Tuesday September 22, 2020 @02:21PM (#24558053)
Strange! Maybe they have Amazon compute resources on a list and respond differently to avoid abuse? If they don't pop in here, maybe ping @shodanhq on Twitter.
Re:Check if your IP is exposing any ports. If you see 404 pa... by nash on Tuesday September 22, 2020 @05:28PM (#24560165)
Same IP? Don't forget your instance has different public and private IPs.
Re:Check if your IP is exposing any ports. If you see 404 pa... by developer2 on Tuesday September 22, 2020 @09:15PM (#24561930)
I've had the same static ipv4 address for just over 19 months, and have been running an exposed OpenVPN server on an alternative port on that IP for the entire duration. I get no results.

Color me unimpressed that "an army of bots that crawl the entire Internet and stores what it finds along the way" hasn't port scanned every ipv4 address at least once in the span of 19+ months. That is a very long time for a limited address space.

tldr; There is no "army", or that army is armed with pool noodles.

Re:Check if your IP is exposing any ports. If you see 404 pa... by achillean on Tuesday September 22, 2020 @10:34PM (#24562373)
It also depends how you've configured OpenVPN. If you've properly configured to drop connections that didn't provide a valid certificate then even running it on a regular port would make it invisible to scanners.
Re:Check if your IP is exposing any ports. If you see 404 pa... by lipnitsk on Wednesday September 23, 2020 @02:06AM (#24563518)
Won't the server need to accept a TCP connection to receive the cert? If so, the port will show as open. I suppose with UDP it is possible.
Re:Check if your IP is exposing any ports. If you see 404 pa... by achillean on Wednesday September 23, 2020 @09:29AM (#24566807)
I believe the recommended configuration is to run OpenVPN via UDP and only accept connections from trusted certificates. If you're running it on TCP then a scanner would be able to see that you have an open port but still can't see what's running on it.
Re:Check if your IP is exposing any ports. If you see 404 pa... by xorcist on Wednesday September 23, 2020 @05:06AM (#24564729)
It does, but what you see is not a portscan, it is a lookup from the Shodan database and they store information about known services on the public Internet.
Re:Check if your IP is exposing any ports. If you see 404 pa... by achillean on Wednesday September 23, 2020 @09:28AM (#24566792)
Shodan does something like a portscan of the entire Internet, albeit fewer ports than if you did nmap -p-
Re:Check if your IP is exposing any ports. If you see 404 pa... by jessaustin on Tuesday September 22, 2020 @09:54PM (#24562142)
Well, they've found a port 22 that I have open. Oh noes! Actually, this seems to undercut the whole "don't use standard ports" argument. They would have found it as well if ssh were at 22222 instead.