This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Public IP Information Checker [SOLVED]

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

holycrap wrote:Had a chance to use the script for a few days and was wondering if this is doable.

Instead of having to do !wlogin for the bot to login, is it possible for the bot to auto login by itself and if it ever de-attaches from the server somehow make it relogin by itself? Kind of like all behind the scene kind of thing.

I have sent you the login info via the forum's message thing. :D

Thanks!

:D
Easy enough and in motion it appears to work as you can see below:
<speechles> !wlogin
<sp33chy> Whereis: Login Successful! DailyLimit: 25; Remaining: 18
<speechles> !wstatus
<sp33chy> Whereis: Always login; Logged in; Account (18 of 25 remain).
<speechles> !wlogout
<sp33chy> Whereis: Logout Successful!
<speechles> !wstatus
<sp33chy> Whereis: Always login; Waiting for login; Free mode.
<speechles> !whereis adsl-153-124-124.tys.bellsouth.net
<sp33chy> Whereis: Free quota has been exceeded...
<sp33chy> Whereis: Login Successful! DailyLimit: 25 Remaining: 18
<sp33chy> Host of the ip: adsl-153-124-124.tys.bellsouth.net, Host ip: 70.153.124.124, Country code: US, Country: United States, State: Tennessee, City: Oak Ridge, Latitude: 35.9724, Longitude: -84.2904, Isp of this ip: BellSouth.net
<sp33chy> Organization: BellSouth.net, Local time in united states: 2009-11-23 18:07
<speechles> !wstatus
<sp33chy> Whereis: Always login; Logged in; Account (17 of 25 remain).
commands wrote:Master/Owner:
!wauto : Inverts previous automatic option, if on, this will turn it off and vice versa
!wlogin : Log the bot into the account
!wlogout : Log the bot out of the account
!wstatus : Gives status information

Any user:
!whereis : Gives geolocation information
This should do as you like. It has all sorts of hidden features involving how it decides to log you in and out at certain times depending on what it thinks. This should be how you imagined it.

Took a few more of your quota to test this feature, as the script needs to keep track of remaining queries left when using the account mode before it defaults back to free. It can tell when free mode's quota has been used up and will attempt to log itself in if an account has been setup as well.

-> Whereis.tcl
h
holycrap
Op
Posts: 152
Joined: Mon Jan 21, 2008 11:19 pm

Post by holycrap »

Ridiculously awesome!

Much thanks for your time!

:D
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

Small addition to make it even more impressive. Why not assume it's a buffet course meal, and eat until they start charging.. ;)
<speechles> !wstatus
<sp33chy> Whereis: Always login; Eating For free; Free mode.

Code: Select all

# If you want to use all the free quota of
# usage before letting the bot automatically
# use your account, see this option below to 1.
----
variable whereisEatForFree 1
The behavior before might have already been doing this, but it wasn't intentional. After seeing it do this myself, I decided to make it optional to either eat-for-free first, then login, or always login first, then eat-for-free. It now works either way. Setting 1 eats for free first, 0 eats for free last

--> Whereis 1.3.tcl
h
holycrap
Op
Posts: 152
Joined: Mon Jan 21, 2008 11:19 pm

Post by holycrap »

Why not assume it's a buffet course meal, and eat until they start charging..
:lol: :mrgreen:

Thanks for making the learning process such a joy.

:D
h
holycrap
Op
Posts: 152
Joined: Mon Jan 21, 2008 11:19 pm

Post by holycrap »

!wlogin

DCC with bot.

Code: Select all

Tcl error [whereisLogin]: can't read "daily": no such variable
:?
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

holycrap wrote:!wlogin

DCC with bot.

Code: Select all

Tcl error [whereisLogin]: can't read "daily": no such variable
:?
That is easy to diagnose. Did you use all your remaining quota up? I never tested the script this deeply as I didn't want to rape your account, but if you've run it out and then this happens. It's an easy fix, just do like below.

Code: Select all

In "proc whereisLogin" , near the end of it...

change below:
     # wasn't found, we must be logged in. ;)
     regexp -nocase {<div class="row2">.*?<span class="limit.*?>(.*?)</span.*?<span class="limit.*?>(.*?)</span.*?<span class="limit.*?>(.*?)</span><br>} $html - daily remain extra
     # set state that we are logged in
     set ::whereisLogged 1

into this:
     # wasn't found, we must be logged in. ;)
     # do we have any quota left?
     if {![regexp -nocase {<div class="row2">.*?<span class="limit.*?>(.*?)</span.*?<span class="limit.*?>(.*?)</span.*?<span class="limit.*?>(.*?)</span><br>} $html - daily remain extra]} {
       # no, we should message so
       putserv "privmsg $chan :\002Whereis\002: Account quota appears to have been exceeded..."
       # we should logout
       set lf [whereisLogout $nick $uhost $hand $chan $text]
       # and return 0 to indicate logged out
       return 0
     }
     # set state that we are logged in
     set ::whereisLogged 1
The above change will fix it (or you can download it again fixed). The problem is if the account had no remaining quota left, the template didn't match, and it tries to set variables based on scraping that template.. If the problem is something other than this let me know.. ;D
h
holycrap
Op
Posts: 152
Joined: Mon Jan 21, 2008 11:19 pm

Post by holycrap »

There seems to be a small problem. I have another account that I paid for and when the script tries to detect the daily quota it kindda messes things up.
!wlogin

Bot: Whereis: Account quota appears to have been exceeded...
Bot: Whereis: Logout Successful!
I think it keeps doing this because the daily quota is "unlimited."

I sent you the paid account info via PM.

:D
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

holycrap wrote:There seems to be a small problem. I have another account that I paid for and when the script tries to detect the daily quota it kindda messes things up.
!wlogin

Bot: Whereis: Account quota appears to have been exceeded...
Bot: Whereis: Logout Successful!
I think it keeps doing this because the daily quota is "unlimited."

I sent you the paid account info via PM.

:D
This should rock your world. Have your cake, and eat it too. Insert other unobtainable metaphors here that are now obtainable. Have a fun ;P
<speechles> !wlogin
<sp33chy> Whereis Login Failed! Account (1/2) youremail@here.com
<sp33chy> Whereis Next Account (2/2) e-----@j---.com
<sp33chy> Whereis Login Successful! Account (2/2) (e-----@j---.com; Gold Member)

<speechles> !wstatus
<sp33chy> Whereis Always login; Logged in; Account (2/2) (e-----@j---.com; Gold Member)

<speechles> !wprev
<sp33chy> Whereis: Previous Account (1/2) youremail@here.com
<sp33chy> Whereis: Login Failed! Account (1/2) youremail@here.com
<sp33chy> Whereis: Next Account (2/2) e-----@---.com
<sp33chy> Whereis: Login Successful! Account (2/2) (e-----@j---.com; Gold Member)

<speechles> !wlogout
<sp33chy> Whereis: Logout Successful! Accout (2/2) e-----@j---.com

<speechles> !whereis google.com
<sp33chy> Whereis: Free quota has been exceeded...
<sp33chy> Whereis: Login Successful! Account (2/2) (e-----@j---.com; Gold Member)
<sp33chy> Host of the ip: google.com, Host ip: 74.125.53.100, Country code: US, Country: United States, State: California, City: Mountain View, Ip postcode: 94043, Latitude: 37.4192, Longitude: -122.0574
<sp33chy> Isp of this ip: Google, Organization: Google, Local time in united states: 2009-11-27 19:49
This adds alot more features, and let's the script manage multiple accounts easily. These are how you control it.
commands wrote:Master/Owner:
!wauto : Inverts previous automatic option, if on, this will turn it off and vice versa
!wlogin : Log the bot into the account
!wlogout : Log the bot out of the account
!wstatus : Gives status information
!wprev : Load the previous account, moves pointer -1
!wnext : Load the next account , moves pointer +1

Any user:
!whereis : Gives geolocation information
!wprev and !wnext will also log themselves in. If they cannot login and fail, they will move to the "next" moving forward (+1) until it can't move onto more accounts (reaches the end). Then it will deactivate automatic logon itself seeing as it can't find any accounts in the list that it can actually successfully log in with.

Code: Select all

# set your accounts up here
# the method is simple
# "your-email@site.com:password-goes-here"
# add as many as you like, the script will
# cycle through them, or you can using
# !wnext and !wprev
variable whereisAccounts {
  "youremail@here.com:password-goes-here"
  "e-----@j---.com:h----t----"
}
Of course, your email and password shown above has been obfuscated into some hyphens. But even with this, it still shows how elegantly the script works.

They changed the way a successful query is gathered as well. Not only do you need to login as before, acquire the cookie and follow the redirect trail. Then during each query you must first make a post request for that query using the cookie. This invokes a backend php engine to design the forwarded page which is returned as a 302 address. Following the 302, takes you to the desired html. It's quite involved doing all this but this is sort of a proof of concept on how to get eggdrop to access these types of web services. ;)

-->Whereis.tcl v1.4
h
holycrap
Op
Posts: 152
Joined: Mon Jan 21, 2008 11:19 pm

Post by holycrap »

This should rock your world. Have your cake, and eat it too.
This is like one big giant cheesecake! :shock: The script now woks too when on a server with +x, so awesome! :mrgreen:

Thanks once again!

:D
s
shahrul
Voice
Posts: 27
Joined: Sun Mar 06, 2005 8:52 am

Post by shahrul »

hi there,

can i request to make this tcl work with this website?

http://www.myiptest.com/

i think this service is free.

can ur make it?

thanks
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

shahrul wrote:hi there,

can i request to make this tcl work with this website?

http://www.myiptest.com/

i think this service is free.

can ur make it?

thanks
Why? The most accurate DB on the web is already being used. This also includes an update. They began shoveling advertisements into the redirect trail the script follows. This is so that free users, get spammed with a page asking:
DO YOU WANT TO UPGRADE TO PREMIUM ACCOUNT? [yes] [no]

The script will now properly choose no, and properly log in again.

Get the best IP location script available for eggdrop here: Whereis v1.5

Enjoy and as always have a fun ;P
s
shahrul
Voice
Posts: 27
Joined: Sun Mar 06, 2005 8:52 am

Post by shahrul »

speechles wrote:
shahrul wrote:hi there,

can i request to make this tcl work with this website?

http://www.myiptest.com/

i think this service is free.

can ur make it?

thanks
Why? The most accurate DB on the web is already being used. This also includes an update. They began shoveling advertisements into the redirect trail the script follows. This is so that free users, get spammed with a page asking:
DO YOU WANT TO UPGRADE TO PREMIUM ACCOUNT? [yes] [no]

The script will now properly choose no, and properly log in again.

Get the best IP location script available for eggdrop here: Whereis v1.5

Enjoy and as always have a fun ;P
hi speechles,

i got gold account on this account, and after try that i got this error.
returns no useful information for me to reply with... ;/
any solution?

thx
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

shahrul wrote:
speechles wrote:
shahrul wrote:hi there,

can i request to make this tcl work with this website?

http://www.myiptest.com/

i think this service is free.

can ur make it?

thanks
Why? The most accurate DB on the web is already being used. This also includes an update. They began shoveling advertisements into the redirect trail the script follows. This is so that free users, get spammed with a page asking:
DO YOU WANT TO UPGRADE TO PREMIUM ACCOUNT? [yes] [no]

The script will now properly choose no, and properly log in again.

Get the best IP location script available for eggdrop here: Whereis v1.5

Enjoy and as always have a fun ;P
hi speechles,

i got gold account on this account, and after try that i got this error.
returns no useful information for me to reply with... ;/
any solution?

thx
I was hoping somebody could show me the HTML that comes from having a gold account. Log in manually, via the website. Once logged in and it displaying your a gold member, and etc. Save the page source (OF COURSE EDIT OUT ANY PERSONAL INFO SUCH AS PASSWORD OR LOGIN! MOST IMPORTANT), and post that to a pastebin for me and this can easily be fixed. I've only got free accounts so could only fix it for these.
s
shahrul
Voice
Posts: 27
Joined: Sun Mar 06, 2005 8:52 am

Post by shahrul »

Hi,

is this what u mean?

http://pastebin.com/tpVLWAKW

thanks
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

shahrul wrote:Hi,

is this what u mean?

http://pastebin.com/tpVLWAKW

thanks
Well, sorta. But seems the template you have there is already within my parsing and would be caught. The problem must be the same issue that is causing free accounts hassle, the injected ad after the redirect trail. This trail must be followed implicitly or it won't log you in. What I've done now is add an HTML dump for this page within the script. Use the script again, and find the file "whereis-tcl.html" in your eggdrop's root. Post that to a pastebin and this can be solved very easily. I need to see it through your bots eyes is why I've crafted it this way.. ;)
Post Reply