| View previous topic :: View next topic |
| Author |
Message |
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 |
|
 |
shahrul Voice
Joined: 06 Mar 2005 Posts: 27
|
Posted: Sun Feb 28, 2010 8:27 pm Post subject: |
|
|
Hi,
i dont see any whereis-tcl.html location.
i think, i give my login to you and fix it. can u?
after that i will change the passwd? -_- |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Sun Feb 28, 2010 10:14 pm Post subject: |
|
|
| shahrul wrote: | Hi,
i dont see any whereis-tcl.html location.
i think, i give my login to you and fix it. can u?
after that i will change the passwd? -_- |
It's easier if you just reget the script from the same url. This contains the new addition to dump the html given at the end of the redirect trail which will then create "whereis-tcl.html". This will give me the page which is blocking your access. After that I can craft an http reply which will basically be clicking a box on that page and going to the member page reserved for gold members. I wont necessarily need your password anymore... _________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
shahrul Voice
Joined: 06 Mar 2005 Posts: 27
|
|
| Back to top |
|
 |
shahrul Voice
Joined: 06 Mar 2005 Posts: 27
|
Posted: Sat Mar 06, 2010 12:37 pm Post subject: |
|
|
speechles, where are you?  |
|
| Back to top |
|
 |
Fraud Op
Joined: 19 May 2008 Posts: 101
|
Posted: Wed Mar 10, 2010 8:34 am Post subject: |
|
|
Very nice Script. Thanks a lot for this.
I am using this Script in a german channel and i hav problems with displaying äöü. Is it possible to get this in any way solved.
Example : Ländercode
Should be: Ländercode
Thanks a lot |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Mon Mar 15, 2010 6:37 pm Post subject: |
|
|
| shahrul wrote: | speechles, where are you?  |
That shouldn't happen with the html response you've provided.
Here is a play-by-play of what happens (#read the comments)... | Code: | ... snipped irrelevant parts ...
# get data, to check if we are logged in or not
set html [::http::data $http]
# copy the html to a file here, this may be a stupid ad.
# Need to do this so users can give the html for the
# GOLD MEMBER and other accounts..
set c [open "whereis-tcl.html" w]
puts $c $html
close $c
# bypass the stupid ad trying to get you to become a pay member....
if {[regexp -nocase {\"/member/\">} $html]} {
catch {set http [::http::geturl "http://www.ip-adress.com/member/" -headers [list Referer [string map {" " "%20"} $value] Cookie [join $::whereisCookies {;}]] -timeout [expr 1000 * 10]]} error
# error condition 1: invalid http session
if {![string match -nocase "::http::*" $error]} {
putserv "privmsg $chan :\002Whereis\002: Login Failed: [string totitle $error] \( http://www.ip-adress.com/member \)"
set ::whereisLogged 0
return 0
}
# error condition 2: http error
if {![string equal -nocase [::http::status $http] "ok"]} {
putserv "privmsg $chan :\002Whereis\002: Login Failed: [string totitle [::http::status $http]] \( http://www.ip-adress.com/member \)"
set ::whereisLogged 0
return 0
}
# get html
set html [::http::data $http]
}
# cleanup http token
::http::cleanup $http
# cleanse html of problematic undisplayable characters
regsub -all {(?:\n|\t|\v|\r|\x01)} $html " " html
# check that 'login failed' isn't within the html
if {![string match -nocase "*login failed*" $html]} {
# 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, are we a gold member account?
if {![regexp -nocase {Gold Member<br>} $html]} {
# no, we should message we are exceeded...
putserv "privmsg $chan :\002Whereis\002: Account quota appears to have been exceeded..."
# then we should logout
set lf [whereisLogout $nick $uhost $hand $chan $text]
# and return 0 to indicate logged out
return 0
} else {
# yes, we are a gold member, set some fake variables
set daily 999 ; set remain 999 ; set extra 0
}
}
# yes, set state as logged in
set ::whereisLogged 1
... snip ... |
The part that matters is directly below -v | Code: | # no, are we a gold member account?
if {![regexp -nocase {Gold Member<br>} $html]} { | Notice the same html you've shown on line 588 will match the regex shown above. This should log you in successfully with an unlimited (999 qualifies as that I hope ) amount of queries.
| Fraud wrote: | Very nice Script. Thanks a lot for this.
I am using this Script in a german channel and i hav problems with displaying äöü. Is it possible to get this in any way solved.
Example : Ländercode
Should be: Ländercode |
My apologies I should've included something for this when it was created.
Whereis.tcl v1.6 should solve that problem and any other entities appearing.  _________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
shahrul Voice
Joined: 06 Mar 2005 Posts: 27
|
Posted: Tue Mar 16, 2010 10:54 am Post subject: |
|
|
Hi,
i have re-download the tcl and still got this error.
<IP> returns no useful information for me to reply with... ;/
this is whereis.html provided.
http://pastebin.com/LDjG8DUX |
|
| 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
|
|