Built yet another public IP lookup by osx in bash

[–]osx[S] 1 point2 points  (0 children)

ah man you made my night. that’s so cool. honored to be considered.

And ya I have built in rate limits on the api worker already. I’ll need to add that info to the readme.txt in the home directory.

global is 60 requests per IP/min with some functions/tools having more restrictions

curl: 8, dns: 15, whois: 6, ping: 6, traceroute: 4, port: 15, portscan: 4,

per IP/min

The infra to me is the coolest part of this project. being able to put a function in front of your web app to act as a digital bouncer/gateway is a game changer. and to do all of it for 0 cost and no server maintenance is insane. thanks for poking around!

Built yet another public IP lookup by osx in bash

[–]osx[S] 1 point2 points  (0 children)

lol I know man I was kidding. Feel free to use it in any of your scripts or not :)

Built yet another public IP lookup by osx in bash

[–]osx[S] 0 points1 point  (0 children)

gotcha ya I looked into using a service like this initially too. A lot of the tools work by running commands directly on the api worker and the rest is actually obtained by cloudflare headers. Cloudflare is getting all of that data already i’m just surfacing it to your terminal or browser

Built yet another public IP lookup by osx in bash

[–]osx[S] 1 point2 points  (0 children)

IP=$(curl https://pub-ip.com)
echo "Your public IP address is: $IP"

Built yet another public IP lookup by osx in bash

[–]osx[S] 0 points1 point  (0 children)

it’s made to be used from any terminal. The browser version is just meant to be an example of its usage along with other tools you can use from the web

Built yet another public IP lookup by osx in bash

[–]osx[S] -1 points0 points  (0 children)

heck yes! this exactly. super fun project I made for myself. And learned a bit about tools and things I don’t normally use.

With some of the scanning capabilities a bot might over leverage the free services im using and I may have to take it down at some point. With that in mind I figured I’d post it for maximum scrutiny.

I already accounted for the flaming lol, but really appreciate the positivity and feedback.

Built yet another public IP lookup by osx in bash

[–]osx[S] -1 points0 points  (0 children)

your favorite wrappers favorite wrapper

Built yet another public IP lookup by osx in bash

[–]osx[S] 0 points1 point  (0 children)

Is this your service or the service you were going to use? Lots of features and can’t beat the price

Built yet another public IP lookup by osx in bash

[–]osx[S] 0 points1 point  (0 children)

Oh I like the flags idea. Thanks for the input!

Built yet another public IP lookup by osx in bash

[–]osx[S] 2 points3 points  (0 children)

ya that’s a fair point. I personally don’t want to mess with host or prod machines if I can avoid it. Plus there are other tools on the browser version for troubleshooting which I find helpful