commit db15241dfb6058730890c76eb943c65cc624c6fc from: barth date: Sat Oct 05 19:03:04 2024 UTC added ip geolocation. Corrected some got commands. commit - 7f36bb88d10481d0f053380645d8d8961901be2a commit + db15241dfb6058730890c76eb943c65cc624c6fc blob - 243d3c6301c7f3a340fbd99bf5d78e1f0d16e087 blob + 5075e00ea879cae86a8a408802395625c274e79e --- user_fingerprint.org +++ user_fingerprint.org @@ -37,21 +37,37 @@ can type the following commands : See : [[eww:https://wiki.ircnow.org/?n=Police.Fingerprints][IRCNOW wiki entry]] -** Find the user's ip and log history +** Find the user's ip, location and log history #+begin_src sh :results output - USER=MR_SOHAIB; - IP=39.38.109.231; - doas su botnow -c "sqlite3 /var/www/botnow/botnow.db \ - 'select nick, ip, date from irc where nick=\"$USER\" \ - or ip=\"$IP\";'" + USER=KinG; + IP=; + doas su botnow -c "sqlite3 /var/www/botnow/botnow.db \ + 'select nick, ip, date from irc where nick=\"$USER\" \ + or ip=\"$IP\";'" + LOOKUPIP=$(doas su botnow -c "sqlite3 /var/www/botnow/botnow.db \ + 'select ip from irc where nick=\"$USER\" \ + or ip=\"$IP\";'"); + echo "Connecting from ..." + curl ipinfo.io/$LOOKUPIP; #+end_src #+RESULTS: -: ZidBot|39.38.109.231|20240920 -: ZidBot|39.38.109.231|20240921 -: ZidBot|39.38.109.231|20240920 -: ZidBot|39.38.109.231|20240920 +#+begin_example +KinG|39.38.97.110|20241005 +Connecting from ... +{ + "ip": "39.38.97.110", + "city": "Quetta", + "region": "Balochistan", + "country": "PK", + "loc": "30.1841,67.0014", + "org": "AS17557 Pakistan Telecommunication Company Limited", + "postal": "87500", + "timezone": "Asia/Karachi", + "readme": "https://ipinfo.io/missingauth" +} +#+end_example ** Find if user has already requested an email, bnc, shell account @@ -80,3 +96,11 @@ See : [[eww:https://wiki.ircnow.org/?n=Police.Fingerpr : has user already requested a bnc account? : 109|4929705759429656576|samin|mendoanp45@gmail.com : has user already requested an email account? + +** Use Botnow's report tool to check user's IP's + +#+begin_src sh + doas su botnow; + cd; + ./report username +#+end_src