| View previous topic :: View next topic |
| Author |
Message |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Mon Nov 23, 2009 8:51 pm Post subject: |
|
|
| 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.
Thanks!
 |
Easy enough and in motion it appears to work as you can see below: | Quote: | <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 _________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
holycrap Op
Joined: 21 Jan 2008 Posts: 152
|
Posted: Tue Nov 24, 2009 4:38 am Post subject: |
|
|
Ridiculously awesome!
Much thanks for your time!
 |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Tue Nov 24, 2009 7:45 pm Post subject: |
|
|
Small addition to make it even more impressive. Why not assume it's a buffet course meal, and eat until they start charging..
| Quote: | <speechles> !wstatus
<sp33chy> Whereis: Always login; Eating For free; Free mode. |
| Code: | # 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 _________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
holycrap Op
Joined: 21 Jan 2008 Posts: 152
|
Posted: Tue Nov 24, 2009 8:30 pm Post subject: |
|
|
| Quote: | | Why not assume it's a buffet course meal, and eat until they start charging.. |
Thanks for making the learning process such a joy.
 |
|
| Back to top |
|
 |
holycrap Op
Joined: 21 Jan 2008 Posts: 152
|
Posted: Thu Nov 26, 2009 3:40 am Post subject: |
|
|
!wlogin
DCC with bot.
| Code: | | Tcl error [whereisLogin]: can't read "daily": no such variable |
 |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Thu Nov 26, 2009 10:04 am Post subject: |
|
|
| holycrap wrote: | !wlogin
DCC with bot.
| Code: | | 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: | 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 _________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
holycrap Op
Joined: 21 Jan 2008 Posts: 152
|
Posted: Fri Nov 27, 2009 1:24 am Post subject: |
|
|
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.
| Quote: | !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.
 |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Sat Nov 28, 2009 12:07 am Post subject: |
|
|
| 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.
| Quote: | !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.
 |
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
| Quote: | <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: | # 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 _________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
holycrap Op
Joined: 21 Jan 2008 Posts: 152
|
Posted: Sat Nov 28, 2009 3:39 am Post subject: |
|
|
| Quote: | | This should rock your world. Have your cake, and eat it too. |
This is like one big giant cheesecake! The script now woks too when on a server with +x, so awesome!
Thanks once again!
 |
|
| Back to top |
|
 |
shahrul Voice
Joined: 06 Mar 2005 Posts: 27
|
Posted: Sun Jan 03, 2010 2:29 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Sun Feb 28, 2010 12:15 pm Post subject: |
|
|
| 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 _________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
shahrul Voice
Joined: 06 Mar 2005 Posts: 27
|
Posted: Sun Feb 28, 2010 4:46 pm Post subject: |
|
|
| 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.
| Quote: | returns no useful information for me to reply with... ;/
|
any solution?
thx |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Sun Feb 28, 2010 6:12 pm Post subject: |
|
|
| 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.
| Quote: | 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. _________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
shahrul Voice
Joined: 06 Mar 2005 Posts: 27
|
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Sun Feb 28, 2010 8:03 pm Post subject: |
|
|
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..  _________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|