Find Invisible Users In Gmail


Finding who is invisible is something that I always wanted to do.It’s always fun to ping a person who feels none can see him/her online. While studying XMPP protocol I found out that even when the person is offline the chat client knows that person is online.
The Chat Client should know who all are really online at any given time.This is because even when the person is invisible he/she should have a buddy list showing online users.

Ah!! Guess you did’nt understand a word till now.Let me try making it simpler.

Let’s assume two users A and B are online now.Both A and B are Available (ie the chat client shows them online).Both A and B has a list of online users in his chat client(eg:google talk,gmail inbox chat,pidgin). Now this online users need to be kept constantly updated. This is done by the XMPP protocol(this is the protocol used by google for it’s chat).Now even if B is invisible still it needs to keep it’s online users list updated as it needs to show B the online users.
So whenever B logs into his account it initially sends a presence notification to all the users in it’s contacts list saying that B is online as “Please show me online in our online user list”.
All online users respond back with their online status and status message.
This is where the invisible people shows up.The chat server replies back with their status. The only difference in them is that they respond with their status as “Unavailable“.
So my aim was to find out all users that respond back to me with Unavailable status and display them.
Ok enough of explanation of how it works let’s see the code

#!/bin/perl

use strict;
use Net::XMPP;

my $sttime=time;
print "Username:$ARGV[0]\n";
my $username = "$ARGV[0]";
my $password = "$ARGV[1]";

my $resource = "SNIFFER";

my $hostname = 'talk.google.com';
my $port = 5222;
my $componentname = 'gmail.com';
my $Contype = 'tcpip';
my $tls = 1;

my %online;
my $Con = new Net::XMPP::Client();
$Con->SetCallBacks(presence=>\&presence_ch);

my $status = $Con->Connect(
hostname => $hostname, port => $port,
componentname => $componentname,
connectiontype => $Contype, tls => $tls);

if (!(defined($status))) {
print "ERROR:  XMPP connection failed.\n";
print "        ($!)\n";
exit(0);
}

# Change hostname
my $sid = $Con->{SESSION}->{id};
$Con->{STREAM}->{SIDS}->{$sid}->{hostname} = $componentname;

# Authenticate
my @result = $Con->AuthSend(
username => $username, password => $password,
resource => $resource);

if ($result[0] ne "ok") {
print "ERROR: Authorization failed: $result[0] - $result[1]\n";
exit(0);
}
else
{
print "Logged in Sucessfull!\nInvisible Users:\n";
}
$Con->PresenceSend(show=>"Available");
sub presence_ch
{
my $p=0;
my $x;
my $presence = pop;
my $from = $presence->GetFrom();
$from =~ s/([a-zA-Z@.]*)\/(.*)/$1/;
if($presence->GetType() eq "unavailable")
{
if (exists $online{$from})
{
delete($online{$from});
}
else
{
$online{$from}=$presence->GetType()."!!" .$presence->GetStatus();
print $from."\n";
}
}
else
{
$online{$from}=$presence->GetType()."!!" .$presence->GetStatus();
}
}
my $currtime;
while(1)
{
$currtime=time;
if($currtime-$sttime>10)
{last;}
my $res=$Con->Process(1);
if(!(defined($res))){ last;}}

XMPP protocol needs SSL encryption.So you need to install the perl modules for it.So before trying out the code make sure u have the following modules:

  • IO ::Socket ::SSL (>=0.81)
  • XML ::Stream
  • Net ::XMPP
  • Authen ::SASL

To install the packages open the CPAN shell using the command

sudo perl -MCPAN -e 'shell'

Followed by

install <module name>

for each of the module listed above
Also you need to install the package send-xmpp and it’s dependecies

sudo apt-get install send-xmpp

Run the program by running it as

perl invi.pl <username> <password>

If you need Windows Version of the tool, check the Comment #39
Worked?? Did’nt work?? Comment me


, , , , , , ,

  1. #1 by vyompv on June 13, 2010 - 11:45 am

    Kar -> your installation might have gone wrong [you have mentioned that you have installed all the modules]. So is the CPAN command working?? Custom installation for the folder has worked for me but since its not working for you, try in the default folder “C:\Program Files”. You will get a folder in the start menu-> program files; try their the command prompt of perl. [after installing strawberry check whether you got the perl/cpan commands{command prompt should recognize}].Else you check it out in strawberry . In some places i have read usage of nmake instead of dmake, hope that will not be ur problem as the perl itself is not coming for you.

  2. #2 by vyompv on June 13, 2010 - 12:02 pm

    Nishanth->was all your installation successful? [where ever it is Windows/linux]. After that MAKE SURE you COPY the code correctly [without mistakes] [if in windows u need to be more CAREFUL, even while SAVING the file]. Check step by step no error will come as its not depended on any of your already present software/files [if in windows]. Perl compilation is in C language directly talks with hardware. So no trouble you will find. Some where something wrong you are doing,check it out. Hope you are trying in home [where the port 5222 is opened], so no chance of that port getting blocked. Hoping you/others have not tweeked the internet connectivity. In short if gtalk program works in your pc then this will be :) . Things can occur that gtalk fails but not this code :) .Hope you enjoy it.[Mainly in windows;as packages you are installing new. Installation should be successful].

    Enjoy the output. :)

  3. #3 by Nisanth Issac on June 13, 2010 - 5:59 pm

    Hi Vyompv
    thank you for the reply. The problem was mine only. I was using username@gmail.com for user name. Now its working perfectly. Great work by Srijth. Also waiting for your Java application. Wish you good luck!!

  4. #4 by Nisanth Issac on June 14, 2010 - 10:19 pm

    I have a strange observation. I am using Empathy chat client. In this software when the options ‘view offline contacts’ and ‘sort by status’ were selected most of the invisible userS(not all) were found at the bottom of the list disturbing the alphabetic order of offline contacts. There were some other contacts too which broke the order. These contacts though actually offline at that time, were invisible during my previous logins. I also created another google account and blocked me in that. Then this contact appeared at the very bottom of the list. Is there any thing in it to be observed further?

  5. #5 by vyompv on June 15, 2010 - 11:26 pm

    Nisanth i dont know about it as i didnt use it. But one thing which i observed is that if you have logged out from gmail chat but logged in to see your mail [or use any other mail alert client] then this program/even my code will show the person as invisible user. This is not the problem of the code but problem from gmail as they should not send the presence notification or try to look their buddies presence when the user is logged out from chat.
    Can you please confirm on this.
    Some other guy has made a pidgin half invisible scanner to see the users in invisible mode and he called half scanner since this problem is present and some other reason also he said.
    Nisanth check whether can you guess the invisible users with that [may be you can find]

  6. #6 by Nidhin on June 17, 2010 - 7:48 pm

    i GOT THIS ERROR

    C:\invi>perl invi.pl
    syntax error at invi.pl line 6, near “my ”
    Global symbol “$sttime” requires explicit package name a
    syntax error at invi.pl line 13, near “my ”
    Global symbol “$hostname” requires explicit package name
    Global symbol “$hostname” requires explicit package name
    Global symbol “$sttime” requires explicit package name a
    Execution of invi.pl aborted due to compilation errors.

  7. #7 by Nidhin on June 17, 2010 - 7:56 pm

    Vishnu :
    Yes it’s working, perfect…. Thank you. It’s adipoli machu…

    Please tell me how…?

  8. #8 by Srijith R on June 19, 2010 - 8:45 pm

    I think its something to do with you perl. Think perl is not running or something. Try some hello world program and check if perl is fine or not

  9. #9 by Tasha on June 21, 2010 - 6:49 pm

    Hello guys and Vyompv,i’m totally beginer in this so i have to ask u some beginners stuff..
    As i have never met with strawberryperl so i need to ask many stuff.
    VYOMPV explained in the post#39 how do script for Windows.
    Well,I istalled stawberryperl[http://strawberryperl.com (38mb file)],
    then clicked->all programs->strawberry perl->comand prompt,and typeed’cpan’ ,then
    said:”install these modules:(on what way i install it??,typing 1st intsall and copy paste all
    install->IO::Socket::SSL->enter
    istall->XML::Stream->enter
    install->Net::XMPP->enter
    install->Authen::SASL->enter
    how?typing ‘instal and press enter,then type IO::Socket::SSL etc??
    i’m confused:(
    Pls helppp

  10. #10 by dolly on June 23, 2010 - 3:50 pm

    hi all ,
    i m in a strict need to find invisible users,.biggest prob is google has tighten security
    and i not at all familiar with languages and programming.
    so plz anyone can help me here…

  11. #11 by Tasha on June 23, 2010 - 7:31 pm

    When i read my silly question i cant stop smiling’how install modules lol lol lol…Evrth works ok,all modules,just need extract 2nd part more about what vyompv typed and i hope it will work ok what vyompv typed.
    I” ll write am i did evrt correct
    regards

  12. #12 by Luis on June 24, 2010 - 5:40 am

    Thanks. Great!
    Another alternative is to use pidgin and open the XMPP console (it first has to be activated in ‘plugins’) looking for lines after ‘changing status to offline and then back to available.

  13. #13 by Luis on June 24, 2010 - 8:03 am

    Apparently, my previous comment didn’t get through complete, maybe because the xml fragment it looked like html. So here it goes again. Besides this great program, one could look at the XMPP console of pidgin (after activating it via plugins) and find lines with the fragment
    presence from=… type=’unavailable’/
    after changing status to offline and then back to available. The from=field corresponds to the invisible users.

  14. #14 by Tasha on June 27, 2010 - 11:21 pm

    plz anyone can help me here,vyompv typed about this in the post #39.
    ”Extract the send-xmpp file and via command prompt go to that folder where its extracted and then do these commands:1)perl Makefile.PL2)dmake3)dmake install
    When i type via command promt,C:\Users\Tasha\Desktop\sendxmpp-0.0.8>perl Makefile.PL2 cant work and wrote” perl MAxfile.PL2” isn’t recognized as an internal or external,or i need type sth as’cd’before perl MAkefile.PL2 or what to work well??

  15. #15 by Tasha on June 28, 2010 - 7:57 pm

    Thanks a lot vyompv.
    I did it on ur way(u decribed in ur blog) and everything works well.Thanks for u sharing it with us:)
    Still,dont know why cant do it via perl command prompt.When i take a command prompt(perl command line) starts with:C:\Windows\system32 and after type just ”perl” ->starts a new row for typing…what then?
    I have Windows7 32 bit

  16. #16 by vyompv on June 28, 2010 - 9:57 pm

    Tasha :
    Thanks a lot vyompv.
    I did it on ur way(u decribed in ur blog) and everything works well.Thanks for u sharing it with us:)
    Still,dont know why cant do it via perl command prompt.When i take a command prompt(perl command line) starts with:C:\Windows\system32 and after type just ”perl” ->starts a new row for typing…what then?
    I have Windows7 32 bit

    Tasha Type “perl -version” … it should print something like this “This is perl 5, version 12, subversion 0 (v5.12.0) built for MSWin32-x86-multi-thread”..
    Then “dmake -version” …it should print something like this “Usage:
    dmake [-P#] [-{f|K} file] [-{w|W} target ...] [macro[!][[*][+][:]]=value …] [-v[cdfimrtw]] [-m[trae]] [-ABcdeEghiknpqrsStTuVxX] [target ...]“.

    If upto here its fine then check whether in the directory sendxmpp which you extracted have a file named “Makefile.PL” if not extract the zip file again else type “perl Makefile.PL”.. An output should be shown like this “Writing Makefile for sendxmpp”. After that type “dmake” and then later “dmake install”. All the other things should go fine.

    If you have problems till the steps which i said check whether you have 64 bit installed or not ? If any special error is thrown then let me know. It should work in all PCs.

    Happy using the program . And learn new things daily :) . Thank you for visiting my blog.

  17. #17 by Tasha on June 29, 2010 - 5:11 am

    Vyompv,now works both ways thanks to u,i installed again perl and did it without any problems:)
    Manyyyyy thanks Vyompv for ur patiently and great explanation every details:)
    kiss;)
    Thank u for ur great blog!
    btw do u have some idea for invisible skype users?

  18. #18 by vyompv on June 30, 2010 - 11:45 am

    :) Ask Srijith to find he will have more information. He is working in Yahoo… he will have more information. Well from my side “Skype uses a proprietary Internet telephony (VoIP) network based on peer-to-peer architecture. The protocol has not been made publicly available by Skype and official applications using the protocol are closed-source.” –From Wikipedia .
    Well Gtalk is in XMPP protocol and smack was there to do which supported gtalk. So i could do; for me i need to learn or grow to that level to do the same for skype. :) Happy using the program..

  19. #19 by Tasha on July 1, 2010 - 6:16 pm

    I’m waiting for it :-)

  20. #20 by SVK on July 8, 2010 - 12:05 pm

    i have downloaded the strawbeery msi file. and installed it. then i went to the dos/command prompt of my windows XP system and typed Cpan

    at the prompt i keyed in INSTALL IO:Socket::SSL………………. as shown below , but its giving me error

    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.

    C:\Documents and Settings\surekha>cpan

    cpan shell — CPAN exploration and modules installation (v1.9456)
    Enter ‘h’ for help.

    cpan> io::socket::SSL
    Catching error: “Can’t locate object method \”SSL\” via package \”io::socket\” (
    perhaps you forgot to load \”io::socket\”?) at C:/strawberry/perl/lib/CPAN.pm li
    ne 375, line 1.\cJ” at C:/strawberry/perl/lib/CPAN.pm line 391
    CPAN::shell() called at C:/strawberry/perl/lib/App/Cpan.pm line 295
    App::Cpan::_process_options(‘App::Cpan’) called at C:/strawberry/perl/li
    b/App/Cpan.pm line 364
    App::Cpan::run(‘App::Cpan’) called at C:\strawberry\perl\bin/cpan line 8

    cpan> install io::Socket:SS
    Fetching with LWP:
    http://cpan.strawberryperl.com/authors/01mailrc.txt.gz
    Fetching with LWP:
    http://cpan.strawberryperl.com/modules/02packages.details.txt.gz
    Fetching with LWP:
    http://cpan.strawberryperl.com/modules/03modlist.data.gz
    Creating database file …

    Gathering information from index files …
    fetch_info() failed! at C:\strawberry\perl\vendor\lib/CPAN/SQLite/Index.pm line
    57, line 1.
    Indexing failed! at C:/strawberry/perl/vendor/lib/CPAN/SQLite.pm line 62,
    line 1.
    CPAN::SQLite setup failed at C:/strawberry/perl/vendor/lib/CPAN/SQLite/META.pm l
    ine 329, line 1.
    Catching error: “system C:\\strawberry\\perl\\bin\\perl.exe -MCPAN::SQLite::META
    =setup,update -e setup failed: 5632 at C:\\strawberry\\perl\\vendor\\lib/CPAN/SQ
    Lite/META.pm line 323.\cJ” at C:/strawberry/perl/lib/CPAN.pm line 391
    CPAN::shell() called at C:/strawberry/perl/lib/App/Cpan.pm line 295
    App::Cpan::_process_options(‘App::Cpan’) called at C:/strawberry/perl/li
    b/App/Cpan.pm line 364
    App::Cpan::run(‘App::Cpan’) called at C:\strawberry\perl\bin/cpan line 8

    Creating database file …

    Gathering information from index files …
    fetch_info() failed! at C:\strawberry\perl\vendor\lib/CPAN/SQLite/Index.pm line
    57, line 1.
    Indexing failed! at C:/strawberry/perl/vendor/lib/CPAN/SQLite.pm line 62,
    line 1.
    CPAN::SQLite setup failed at C:/strawberry/perl/vendor/lib/CPAN/SQLite/META.pm l
    ine 329, line 1.
    Lockfile removed.
    system C:\strawberry\perl\bin\perl.exe -MCPAN::SQLite::META=setup,update -e setu
    p failed: 5632 at C:\strawberry\perl\vendor\lib/CPAN/SQLite/META.pm line 323.

    C:\Documents and Settings\surekha>cpan

    cpan shell — CPAN exploration and modules installation (v1.9456)
    Enter ‘h’ for help.

    cpan> install IO::Socket:SSL
    Creating database file …

    Gathering information from index files …
    fetch_info() failed! at C:\strawberry\perl\vendor\lib/CPAN/SQLite/Index.pm line
    57, line 1.
    Indexing failed! at C:/strawberry/perl/vendor/lib/CPAN/SQLite.pm line 62,
    line 1.
    CPAN::SQLite setup failed at C:/strawberry/perl/vendor/lib/CPAN/SQLite/META.pm l
    ine 329, line 1.
    Catching error: “system C:\\strawberry\\perl\\bin\\perl.exe -MCPAN::SQLite::META
    =setup,update -e setup failed: 5632 at C:\\strawberry\\perl\\vendor\\lib/CPAN/SQ
    Lite/META.pm line 323, line 1.\cJ” at C:/strawberry/perl/lib/CPAN.pm line 3
    91
    CPAN::shell() called at C:/strawberry/perl/lib/App/Cpan.pm line 295
    App::Cpan::_process_options(‘App::Cpan’) called at C:/strawberry/perl/li
    b/App/Cpan.pm line 364
    App::Cpan::run(‘App::Cpan’) called at C:\strawberry\perl\bin/cpan line 8

    Creating database file …

    Gathering information from index files …
    fetch_info() failed! at C:\strawberry\perl\vendor\lib/CPAN/SQLite/Index.pm line
    57, line 1.
    Indexing failed! at C:/strawberry/perl/vendor/lib/CPAN/SQLite.pm line 62,
    line 1.
    CPAN::SQLite setup failed at C:/strawberry/perl/vendor/lib/CPAN/SQLite/META.pm l
    ine 329, line 1.
    Lockfile removed.
    system C:\strawberry\perl\bin\perl.exe -MCPAN::SQLite::META=setup,update -e setu
    p failed: 5632 at C:\strawberry\perl\vendor\lib/CPAN/SQLite/META.pm line 323, line 1.

    C:\Documents and Settings\surekha>install XML::Stream
    ‘install’ is not recognized as an internal or external command,
    operable program or batch file.

    C:\Documents and Settings\surekha>cpan

    cpan shell — CPAN exploration and modules installation (v1.9456)
    Enter ‘h’ for help.

    cpan> INSTALL IO::Socket::SSL
    Unknown shell command ‘INSTALL’. Type ? for help.

    cpan> xml::Stream
    Catching error: “Can’t locate object method \”Stream\” via package \”xml\” (perh
    aps you forgot to load \”xml\”?) at C:/strawberry/perl/lib/CPAN.pm line 375, line 2.\cJ” at C:/strawberry/perl/lib/CPAN.pm line 391
    CPAN::shell() called at C:/strawberry/perl/lib/App/Cpan.pm line 295
    App::Cpan::_process_options(‘App::Cpan’) called at C:/strawberry/perl/li
    b/App/Cpan.pm line 364
    App::Cpan::run(‘App::Cpan’) called at C:\strawberry\perl\bin/cpan line 8

    cpan> Net::XMPP
    Catching error: “Can’t locate object method \”XMPP\” via package \”Net\” at C:/s
    trawberry/perl/lib/CPAN.pm line 375, line 3.\cJ” at C:/strawberry/perl/lib/
    CPAN.pm line 391
    CPAN::shell() called at C:/strawberry/perl/lib/App/Cpan.pm line 295
    App::Cpan::_process_options(‘App::Cpan’) called at C:/strawberry/perl/li
    b/App/Cpan.pm line 364
    App::Cpan::run(‘App::Cpan’) called at C:\strawberry\perl\bin/cpan line 8

    cpan> Authen::SASL
    Catching error: “Can’t locate object method \”SASL\” via package \”Authen\” (per
    haps you forgot to load \”Authen\”?) at C:/strawberry/perl/lib/CPAN.pm line 375,
    line 4.\cJ” at C:/strawberry/perl/lib/CPAN.pm line 391
    CPAN::shell() called at C:/strawberry/perl/lib/App/Cpan.pm line 295
    App::Cpan::_process_options(‘App::Cpan’) called at C:/strawberry/perl/li
    b/App/Cpan.pm line 364
    App::Cpan::run(‘App::Cpan’) called at C:\strawberry\perl\bin/cpan line 8

    cpan>

    vyompv :I got it worked at last in Windows. [i tried in Windows XP]Guys download the perl from here http://strawberryperl.com/ [38MB file] and then from the programs menu take the command prompt from strawberry perl. And then type->cpan [ i have tried with normal command prompt it works smooth]install these modules: [format to type inside cpan prompt->install ]IO::Socket::SSLXML::StreamNet::XMPPAuthen::SASLAll will get installed without error [as it does in linux]
    After that download send-xmpp from here http://sendxmpp.platon.sk/ [download this file sendxmpp-0.0.8.tar.gz.] .Hope you already have Winrar for extracting that file. [may be it works with zip, i didnt check it]Extract the send-xmpp file and via command prompt go to that folder where its extracted and then do these commands:1)perl Makefile.PL2)dmake3)dmake install
    Thats it. Now copy the above script [be careful while copying hope you don't make mistake] and paste in NOTEPAD [not wordpad] and save as “invi.pl” [Save as type All files and ANSI encoding. [save the file with quotes]and then take the command prompt to the place where you kept that file and then type->perl invi.plI got the result without any error . Hope you also enjoy the output.
    And not to mention thanks to Srijith; he has done a great job.

  21. #21 by SVK on July 9, 2010 - 10:58 am

    i still get the same erroros when i try to run the command in command prompt .i am using windows XP

  22. #22 by vyompv on July 9, 2010 - 11:13 pm

    :( :( :( SVK :( :(:(

    Even i am getting the same error by typing the way in which you type. Copy paste my package name and command, the alphabet cases [small or upper matters] a lot. Why do you want to waste your energy by typing it, I have clearly written so that you can copy paste it.

  23. #23 by vyompv on July 9, 2010 - 11:25 pm

    SVK only for you this is type CPAN [as you did] after getting the prompt type these one by one
    install IO::Socket::SSL
    install XML::Stream
    install Net::XMPP
    install Authen::SASL
    I am sorry please don’t type copy paste [now dont ask me how to copy paste in command prompt :( ; i know its not that easy] ok even that

  24. #24 by SVK on July 10, 2010 - 1:25 pm

    asu said i copied the commnads instead of typing , i get this msg

    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.

    C:\Documents and Settings\surekha>cpan

    There seems to be running another CPAN process (pid 2988). Contacting…
    Other job not responding. Shall I overwrite the lockfile ‘C:\strawberry\cpan\.lo
    ck’? (Y/n) [y] y

    cpan shell — CPAN exploration and modules installation (v1.9456)
    Enter ‘h’ for help.

    cpan> IO::Socket::SSL
    Catching error: “Can’t locate object method \”SSL\” via package \”IO::Socket\” a
    t C:/strawberry/perl/lib/CPAN.pm line 375, line 1.\cJ” at C:/strawberry/per
    l/lib/CPAN.pm line 391
    CPAN::shell() called at C:/strawberry/perl/lib/App/Cpan.pm line 295
    App::Cpan::_process_options(‘App::Cpan’) called at C:/strawberry/perl/li
    b/App/Cpan.pm line 364
    App::Cpan::run(‘App::Cpan’) called at C:\strawberry\perl\bin/cpan line 8

    cpan> XML::Stream
    Catching error: “Can’t locate object method \”Stream\” via package \”XML\” at C:
    /strawberry/perl/lib/CPAN.pm line 375, line 2.\cJ” at C:/strawberry/perl/li
    b/CPAN.pm line 391
    CPAN::shell() called at C:/strawberry/perl/lib/App/Cpan.pm line 295
    App::Cpan::_process_options(‘App::Cpan’) called at C:/strawberry/perl/li
    b/App/Cpan.pm line 364
    App::Cpan::run(‘App::Cpan’) called at C:\strawberry\perl\bin/cpan line 8

    cpan> Net::XMPP
    Catching error: “Can’t locate object method \”XMPP\” via package \”Net\” at C:/s
    trawberry/perl/lib/CPAN.pm line 375, line 3.\cJ” at C:/strawberry/perl/lib/
    CPAN.pm line 391
    CPAN::shell() called at C:/strawberry/perl/lib/App/Cpan.pm line 295
    App::Cpan::_process_options(‘App::Cpan’) called at C:/strawberry/perl/li
    b/App/Cpan.pm line 364
    App::Cpan::run(‘App::Cpan’) called at C:\strawberry\perl\bin/cpan line 8

    cpan> Authen::SASL
    Catching error: “Can’t locate object method \”SASL\” via package \”Authen\” (per
    haps you forgot to load \”Authen\”?) at C:/strawberry/perl/lib/CPAN.pm line 375,
    line 4.\cJ” at C:/strawberry/perl/lib/CPAN.pm line 391
    CPAN::shell() called at C:/strawberry/perl/lib/App/Cpan.pm line 295
    App::Cpan::_process_options(‘App::Cpan’) called at C:/strawberry/perl/li
    b/App/Cpan.pm line 364
    App::Cpan::run(‘App::Cpan’) called at C:\strawberry\perl\bin/cpan line 8

    cpan> install IO::Socket::SSL
    Fetching with LWP:
    http://cpan.strawberryperl.com/authors/01mailrc.txt.gz
    Fetching with LWP:
    http://cpan.strawberryperl.com/modules/02packages.details.txt.gz
    Fetching with LWP:
    http://cpan.strawberryperl.com/modules/03modlist.data.gz
    Creating database file …

    Gathering information from index files …
    fetch_info() failed! at C:\strawberry\perl\vendor\lib/CPAN/SQLite/Index.pm line
    57, line 1.
    Indexing failed! at C:/strawberry/perl/vendor/lib/CPAN/SQLite.pm line 62,
    line 1.
    CPAN::SQLite setup failed at C:/strawberry/perl/vendor/lib/CPAN/SQLite/META.pm l
    ine 329, line 1.
    Catching error: “system C:\\strawberry\\perl\\bin\\perl.exe -MCPAN::SQLite::META
    =setup,update -e setup failed: 5632 at C:\\strawberry\\perl\\vendor\\lib/CPAN/SQ
    Lite/META.pm line 323.\cJ” at C:/strawberry/perl/lib/CPAN.pm line 391
    CPAN::shell() called at C:/strawberry/perl/lib/App/Cpan.pm line 295
    App::Cpan::_process_options(‘App::Cpan’) called at C:/strawberry/perl/li
    b/App/Cpan.pm line 364
    App::Cpan::run(‘App::Cpan’) called at C:\strawberry\perl\bin/cpan line 8

    Creating database file …

    Gathering information from index files …
    fetch_info() failed! at C:\strawberry\perl\vendor\lib/CPAN/SQLite/Index.pm line
    57, line 1.
    Indexing failed! at C:/strawberry/perl/vendor/lib/CPAN/SQLite.pm line 62,
    line 1.
    CPAN::SQLite setup failed at C:/strawberry/perl/vendor/lib/CPAN/SQLite/META.pm l
    ine 329, line 1.
    Lockfile removed.
    system C:\strawberry\perl\bin\perl.exe -MCPAN::SQLite::META=setup,update -e setu
    p failed: 5632 at C:\strawberry\perl\vendor\lib/CPAN/SQLite/META.pm line 323.

    C:\Documents and Settings\surekha>install XML::Stream
    ‘install’ is not recognized as an internal or external command,
    operable program or batch file.

    C:\Documents and Settings\surekha>install Net::XMPP
    ‘install’ is not recognized as an internal or external command,
    operable program or batch file.

    C:\Documents and Settings\surekha>install Authen::SASL
    ‘install’ is not recognized as an internal or external command,
    operable program or batch file.

    C:\Documents and Settings\surekha>

    is this the right way

  25. #25 by vyompv on July 11, 2010 - 10:52 am

    SVK : You have typed it correctly this is the right way you have typed …… cpan> install IO::Socket::SSL [other way of typing are wrong].
    I don’t know what went wrong. Well i say my way of installing perl.

    Try “upgrade” [under prompt CPAN>upgrade]
    it would take some time to complete.Don’t stop that in between.
    then try “reload index”[under prompt CPAN>reload index]
    Try now the command of install [which i have posted before]

    Still after doing that if its not working then uninstall and reinstall. And this time don’t type wrong commands. Your indexing fetch of the perl has failed thats the reason you are getting the error.

    Please do reply back. I am using the same Windows command prompt which you are using so it should work. Guarantee!!!!

  26. #26 by vyompv on July 11, 2010 - 10:54 am

    Well i say my way of installing… i forgot to metion above->
    I am not even administrator while installing [office laptop].
    I have installed even in D prompt.

    You being in administrator and in C prompt it should work. Error chance is low.

  27. #27 by vyompv on July 11, 2010 - 12:01 pm

    SVK…..Upgrade taking a long time.

    Just uninstall, delete the folders reinstall the whole thing after a complete download of packages.

  28. #28 by s j on July 20, 2010 - 10:19 pm

    i also did the whole thing but at the end i keep getting an error
    “You requested that XML::Stream turn the socket into an SSL socket, but you don’t
    have the correct version of IO::Socket::SSL v0.81. at C:/strawberry/perl/site/l
    ib/XML/Stream/Node.pm line 549″
    plz help!!!

  29. #29 by E on July 20, 2010 - 11:09 pm

    Is there a way to get the XMPP (that you can configure for pidgin) for adium on mac?

  30. #30 by Rafael on July 27, 2010 - 12:50 am

    Hi Srijith,

    Thanks! It works on my ubuntu machine.

    To clarify to others who may have problems:
    install sendxmpp instead of send-xmpp
    single colons are used instead of double colons when installing perl packages (e.g. “install XML:Stream”).

    Now there are some things I would like to ask (sorry I haven’t tried perl programming or xmpp before).

    Using the program sets my status on gtalk as visible, this may be unwanted when I’m currently logged in as invisible. Can my user status be set to “Unavailable” in the script?

    I’m using bash, so I don’t want my password being left in the bash history. I tried to modify the script to get the username and password from stdin prompt () instead of command line arguments (argv[]). However, it fails to authenticate using a prompted login. Currently my username and password are hard coded in the script, and it works. Any suggestions here?

    It would be nice if program updates the output at a time interval (5 seconds or so). Even if it just dumps everything in the terminal (does not erase the previous output). And then wait for a keypress (ReadKey) to exit.

    Again, sorry for asking too much. I just find your script very useful and interesting and the only one of its kind.

    Thanks and keep up the great work!

    -Rafael

  31. #31 by DeJean on August 13, 2010 - 10:39 am

    Passwords containing special characters pose issues. I had an ‘Authorization failed’ up till the moment I changed my Gmail password to something more simple. Given the script is written in perl, I expect a ‘$’ sign in the password causes the failure, but I also had a ‘%’ and a ‘?’ in it.

  32. #32 by Saugat on August 25, 2010 - 5:04 am

    Hi Srijith, Vyompv
    thank u both for your support. Well I am getting an error while i am trying to run the script. I quoated it below. also when i am tring to run te command perl makefile.pl, it throws a warning as net::XMPP 1 not found. Though my install command worked successfully. I am using w7 64 bit & downloaded the 64 bit version of straberryperl.

    [i]H:\sendxmpp>perl invi.pl
    Can’t locate Net/XMPP.pm in @INC (@INC contains: C:/strawberry/perl/site/lib C:/
    strawberry/perl/vendor/lib C:/strawberry/perl/lib .) at invi.pl line 4.
    BEGIN failed–compilation aborted at invi.pl line 4.[/i]

  33. #33 by jazz on August 26, 2010 - 2:30 am

    I tried the script using Strawberry on
    W7 64 bit but keep getting this error msg

    You requested that XML::Stream turn the socket into an SSL socket, but you don’t have the correct version of IO::Socket:
    :SSL v0.81. at C:/Strawberry/perl/site/lib/XML/Stream/Node.pm line 549

    pls help me.it finds to be quit intersting

  34. #34 by vyompv on August 28, 2010 - 12:17 pm

    Saugat, jazz and others…

    After you have installed all your modules check whether it was properly installed and do compare with my version of package.
    To do that in the CPAN prompt type “m (Module name)” -> Module name is all the modules that you have installed. You should get a proper result for all.

    I am pasting the snippet of my result for all the modules.

    cpan> m Net::XMPP
    Fetching with LWP:
    http://cpan.strawberryperl.com/authors/id/H/HA/HACKER/CHECKSUMS
    Module id = Net::XMPP
    CPAN_USERID HACKER (Eric Hacker )
    CPAN_VERSION 1.02
    CPAN_FILE H/HA/HACKER/Net-XMPP-1.02.tar.gz
    UPLOAD_DATE 2007-03-31
    MANPAGE Net::XMPP – XMPP Perl Library
    INST_FILE D:\Perl\strawberry\perl\site\lib\Net\XMPP.pm
    INST_VERSION 1.02

    cpan> m IO::Socket:SSL
    Module id = IO::Socket::SSL
    CPAN_USERID SULLR (Steffen Ullrich )
    CPAN_VERSION 1.33
    CPAN_FILE S/SU/SULLR/IO-Socket-SSL-1.33.tar.gz
    UPLOAD_DATE 2010-03-17
    MANPAGE IO::Socket::SSL — Nearly transparent SSL encapsulation for IO:
    :Socket::INET.
    INST_FILE D:\Perl\strawberry\perl\vendor\lib\IO\Socket\SSL.pm
    INST_VERSION 1.33

    cpan> m XML::Stream
    Module id = XML::Stream
    DESCRIPTION Module for handling XML Streams
    CPAN_USERID DAPATRICK (Darian Anthony Patrick )
    CPAN_VERSION 1.23
    CPAN_FILE D/DA/DAPATRICK/XML-Stream-1.23.tar.gz
    UPLOAD_DATE 2010-01-08
    DSLIP_STATUS RdpOl (released,developer,perl,object-oriented,LGPL)
    MANPAGE XML::Stream – Creates an XML Stream connection and parses retur
    n data
    INST_FILE D:\Perl\strawberry\perl\site\lib\XML\Stream.pm
    INST_VERSION 1.23

    cpan> m Net::XMPP
    Module id = Net::XMPP
    CPAN_USERID HACKER (Eric Hacker )
    CPAN_VERSION 1.02
    CPAN_FILE H/HA/HACKER/Net-XMPP-1.02.tar.gz
    UPLOAD_DATE 2007-03-31
    MANPAGE Net::XMPP – XMPP Perl Library
    INST_FILE D:\Perl\strawberry\perl\site\lib\Net\XMPP.pm
    INST_VERSION 1.02

    cpan> m Authen::SASL
    Module id = Authen::SASL
    DESCRIPTION SASL authentication framework
    CPAN_USERID GBARR (Graham Barr )
    CPAN_VERSION 2.15
    CPAN_FILE G/GB/GBARR/Authen-SASL-2.15.tar.gz
    UPLOAD_DATE 2010-06-02
    DSLIP_STATUS RmpOp (released,mailing-list,perl,object-oriented,Standard-Perl
    )
    MANPAGE Authen::SASL – SASL Authentication framework
    INST_FILE D:\Perl\strawberry\perl\site\lib\Authen\SASL.pm
    INST_VERSION 2.15

    cpan>
    ____________________________________

    Well this doesnt check whether you have installed send-xmpp.
    For send-xmpp installation verification; check the directory where you have installed perl and see whether you can see following files under this directory structure [note i have installed in 'd:' drive yours path might be different]
    d:\Perl\strawberry\perl\site\bin\sendxmpp
    d:\Perl\strawberry\perl\site\bin\sendxmpp [Ms-Dos batch file]
    d:\Perl\strawberry\perl\site\lib\auto\sendxmpp\.packlist

    If all the above is fine and the version of each module matches with the above, then probably your copied script might be wrong. [copy properly and try again]
    If all the above mentioned is not correct with yours installed. Uninstall strawberry and install everything again. And make sure that you dont type wrong command and destroy your working perl.

    To check your perl version type “perl -v” in the command prompt
    My output is like this:
    “This is perl 5, version 12, subversion 0 (v5.12.0) built for MSWin32-x86-multi-t
    hread

    Copyright 1987-2010, Larry Wall”

  35. #35 by jazz on September 10, 2010 - 9:41 pm

    hi,vyompv
    i tried the module check commands and found dat SSL is not installed properly.As u said i uninstalled the whole perl and started from the begining..and when am trying to install the install the ssl the followng is comng..let me show it below..

    Warning: Prerequisite ‘Net::SSLeay => 1.21′ for ‘SULLR/IO-Socket-SSL-1.33.tar.gz
    ‘ failed when processing ‘FLORA/Net-SSLeay-1.36.tar.gz’ with ‘make_test => NO’.
    Continuing, but chances to succeed are limited.
    cp SSL.pm blib\lib\IO\Socket\SSL.pm
    SULLR/IO-Socket-SSL-1.33.tar.gz
    C:\strawberry\c\bin\dmake.EXE — OK
    Running make test
    C:\strawberry\perl\bin\perl.exe “-MExtUtils::Command::MM” “-e” “test_harness(0,
    ‘blib\lib’, ‘blib\arch’)” t/*.t
    t/01loadmodule.t ……….. Can’t locate Net/SSLeay.pm in @INC (@INC contains:
    C:\strawberry\cpan\build\IO-Socket-SSL-1.33-oiR25t\blib\lib C:\strawberry\cpan\b
    uild\IO-Socket-SSL-1.33-oiR25t\blib\arch C:/strawberry/perl/site/lib C:/strawber
    ry/perl/vendor/lib C:/strawberry/perl/lib .) at C:\strawberry\cpan\build\IO-Sock
    et-SSL-1.33-oiR25t\blib\lib/IO/Socket/SSL.pm line 18.
    BEGIN failed–compilation aborted at C:\strawberry\cpan\build\IO-Socket-SSL-1.33
    -oiR25t\blib\lib/IO/Socket/SSL.pm line 18.
    Compilation failed in require at t/01loadmodule.t line 14.
    BEGIN failed–compilation aborted at t/01loadmodule.t line 14.
    t/01loadmodule.t ……….. Dubious, test returned 2 (wstat 512, 0×200)
    Failed 4/4 subtests
    t/02settings.t …………. Can’t locate Net/SSLeay.pm in @INC (@INC contains:
    C:\strawberry\cpan\build\IO-Socket-SSL-1.33-oiR25t\blib\lib C:\strawberry\cpan\b
    uild\IO-Socket-SSL-1.33-oiR25t\blib\arch C:/strawberry/perl/site/lib C:/strawber
    ry/perl/vendor/lib C:/strawberry/perl/lib .) at C:\strawberry\cpan\build\IO-Sock
    et-SSL-1.33-oiR25t\blib\lib/IO/Socket/SSL.pm line 18.
    BEGIN failed–compilation aborted at C:\strawberry\cpan\build\IO-Socket-SSL-1.33
    -oiR25t\blib\lib/IO/Socket/SSL.pm line 18.
    Compilation failed in require at t/02settings.t line 4.
    BEGIN failed–compilation aborted at t/02settings.t line 4.
    t/02settings.t …………. Dubious, test returned 2 (wstat 512, 0×200)
    No subtests run
    t/acceptSSL-timeout.t …… Can’t locate Net/SSLeay.pm in @INC (@INC contains:
    C:\strawberry\cpan\build\IO-Socket-SSL-1.33-oiR25t\blib\lib C:\strawberry\cpan\b
    uild\IO-Socket-SSL-1.33-oiR25t\blib\arch C:/strawberry/perl/site/lib C:/strawber
    ry/perl/vendor/lib C:/strawberry/perl/lib .) at C:\strawberry\cpan\build\IO-Sock
    et-SSL-1.33-oiR25t\blib\lib/IO/Socket/SSL.pm line 18.
    BEGIN failed–compilation aborted at C:\strawberry\cpan\build\IO-Socket-SSL-1.33
    -oiR25t\blib\lib/IO/Socket/SSL.pm line 18.
    Compilation failed in require at t/acceptSSL-timeout.t line 3.
    BEGIN failed–compilation aborted at t/acceptSSL-timeout.t line 3.
    t/acceptSSL-timeout.t …… Dubious, test returned 2 (wstat 512, 0×200)
    No subtests run
    t/auto_verify_hostname.t … Can’t locate Net/SSLeay.pm in @INC (@INC contains:
    C:\strawberry\cpan\build\IO-Socket-SSL-1.33-oiR25t\blib\lib C:\strawberry\cpan\b
    uild\IO-Socket-SSL-1.33-oiR25t\blib\arch C:/strawberry/perl/site/lib C:/strawber
    ry/perl/vendor/lib C:/strawberry/perl/lib .) at t/auto_verify_hostname.t line 4.

    BEGIN failed–compilation aborted at t/auto_verify_hostname.t line 4.
    t/auto_verify_hostname.t … Dubious, test returned 2 (wstat 512, 0×200)
    No subtests run
    t/cert_no_file.t ……….. Can’t locate Net/SSLeay.pm in @INC (@INC contains:
    C:\strawberry\cpan\build\IO-Socket-SSL-1.33-oiR25t\blib\lib C:\strawberry\cpan\b
    uild\IO-Socket-SSL-1.33-oiR25t\blib\arch C:/strawberry/perl/site/lib C:/strawber
    ry/perl/vendor/lib C:/strawberry/perl/lib .) at t/cert_no_file.t line 14.
    BEGIN failed–compilation aborted at t/cert_no_file.t line 14.
    t/cert_no_file.t ……….. Dubious, test returned 2 (wstat 512, 0×200)
    No subtests run
    t/compatibility.t ………. Can’t locate Net/SSLeay.pm in @INC (@INC contains:
    C:\strawberry\cpan\build\IO-Socket-SSL-1.33-oiR25t\blib\lib C:\strawberry\cpan\b
    uild\IO-Socket-SSL-1.33-oiR25t\blib\arch C:/strawberry/perl/site/lib C:/strawber
    ry/perl/vendor/lib C:/strawberry/perl/lib .) at C:\strawberry\cpan\build\IO-Sock
    et-SSL-1.33-oiR25t\blib\lib/IO/Socket/SSL.pm line 18.
    BEGIN failed–compilation aborted at C:\strawberry\cpan\build\IO-Socket-SSL-1.33
    -oiR25t\blib\lib/IO/Socket/SSL.pm line 18.
    Compilation failed in require at t/compatibility.t line 5.
    BEGIN failed–compilation aborted at t/compatibility.t line 5.
    t/compatibility.t ………. Dubious, test returned 2 (wstat 512, 0×200)
    No subtests run
    t/connectSSL-timeout.t ….. no testlib at t/connectSSL-timeout.t line 3.
    t/connectSSL-timeout.t ….. Dubious, test returned 2 (wstat 512, 0×200)
    No subtests run
    t/core.t ………………. Can’t locate Net/SSLeay.pm in @INC (@INC contains:
    C:\strawberry\cpan\build\IO-Socket-SSL-1.33-oiR25t\blib\lib C:\strawberry\cpan\b
    uild\IO-Socket-SSL-1.33-oiR25t\blib\arch C:/strawberry/perl/site/lib C:/strawber
    ry/perl/vendor/lib C:/strawberry/perl/lib .) at t/core.t line 6.
    BEGIN failed–compilation aborted at t/core.t line 6.
    t/core.t ………………. Dubious, test returned 2 (wstat 512, 0×200)
    No subtests run
    t/dhe.t ……………….. Can’t locate Net/SSLeay.pm in @INC (@INC contains:
    C:\strawberry\cpan\build\IO-Socket-SSL-1.33-oiR25t\blib\lib C:\strawberry\cpan\b
    uild\IO-Socket-SSL-1.33-oiR25t\blib\arch C:/strawberry/perl/site/lib C:/strawber
    ry/perl/vendor/lib C:/strawberry/perl/lib .) at t/dhe.t line 11.
    BEGIN failed–compilation aborted at t/dhe.t line 11.
    t/dhe.t ……………….. Dubious, test returned 2 (wstat 512, 0×200)
    No subtests run
    t/inet6.t ……………… Can’t locate Net/SSLeay.pm in @INC (@INC contains:
    C:\strawberry\cpan\build\IO-Socket-SSL-1.33-oiR25t\blib\lib C:\strawberry\cpan\b
    uild\IO-Socket-SSL-1.33-oiR25t\blib\arch C:/strawberry/perl/site/lib C:/strawber
    ry/perl/vendor/lib C:/strawberry/perl/lib .) at t/inet6.t line 5.
    BEGIN failed–compilation aborted at t/inet6.t line 5.
    t/inet6.t ……………… Dubious, test returned 2 (wstat 512, 0×200)
    No subtests run
    t/memleak_bad_handshake.t .. Can’t locate Net/SSLeay.pm in @INC (@INC contains:
    C:\strawberry\cpan\build\IO-Socket-SSL-1.33-oiR25t\blib\lib C:\strawberry\cpan\b
    uild\IO-Socket-SSL-1.33-oiR25t\blib\arch C:/strawberry/perl/site/lib C:/strawber
    ry/perl/vendor/lib C:/strawberry/perl/lib .) at t/memleak_bad_handshake.t line 6
    .
    BEGIN failed–compilation aborted at t/memleak_bad_handshake.t line 6.
    t/memleak_bad_handshake.t .. Dubious, test returned 2 (wstat 512, 0×200)
    No subtests run
    t/nonblock.t …………… Can’t locate Net/SSLeay.pm in @INC (@INC contains:
    C:\strawberry\cpan\build\IO-Socket-SSL-1.33-oiR25t\blib\lib C:\strawberry\cpan\b
    uild\IO-Socket-SSL-1.33-oiR25t\blib\arch C:/strawberry/perl/site/lib C:/strawber
    ry/perl/vendor/lib C:/strawberry/perl/lib .) at t/nonblock.t line 6.
    BEGIN failed–compilation aborted at t/nonblock.t line 6.
    t/nonblock.t …………… Dubious, test returned 2 (wstat 512, 0×200)
    No subtests run
    t/readline.t …………… Can’t locate Net/SSLeay.pm in @INC (@INC contains:
    C:\strawberry\cpan\build\IO-Socket-SSL-1.33-oiR25t\blib\lib C:\strawberry\cpan\b
    uild\IO-Socket-SSL-1.33-oiR25t\blib\arch C:/strawberry/perl/site/lib C:/strawber
    ry/perl/vendor/lib C:/strawberry/perl/lib .) at t/readline.t line 14.
    BEGIN failed–compilation aborted at t/readline.t line 14.
    t/readline.t …………… Dubious, test returned 2 (wstat 512, 0×200)
    No subtests run
    t/sessions.t …………… Can’t locate Net/SSLeay.pm in @INC (@INC contains:
    C:\strawberry\cpan\build\IO-Socket-SSL-1.33-oiR25t\blib\lib C:\strawberry\cpan\b
    uild\IO-Socket-SSL-1.33-oiR25t\blib\arch C:/strawberry/perl/site/lib C:/strawber
    ry/perl/vendor/lib C:/strawberry/perl/lib .) at t/sessions.t line 5.
    BEGIN failed–compilation aborted at t/sessions.t line 5.
    t/sessions.t …………… Dubious, test returned 2 (wstat 512, 0×200)
    No subtests run
    t/start-stopssl.t ………. Can’t locate Net/SSLeay.pm in @INC (@INC contains:
    C:\strawberry\cpan\build\IO-Socket-SSL-1.33-oiR25t\blib\lib C:\strawberry\cpan\b
    uild\IO-Socket-SSL-1.33-oiR25t\blib\arch C:/strawberry/perl/site/lib C:/strawber
    ry/perl/vendor/lib C:/strawberry/perl/lib .) at C:\strawberry\cpan\build\IO-Sock
    et-SSL-1.33-oiR25t\blib\lib/IO/Socket/SSL.pm line 18.
    BEGIN failed–compilation aborted at C:\strawberry\cpan\build\IO-Socket-SSL-1.33
    -oiR25t\blib\lib/IO/Socket/SSL.pm line 18.
    Compilation failed in require at t/start-stopssl.t line 4.
    BEGIN failed–compilation aborted at t/start-stopssl.t line 4.
    t/start-stopssl.t ………. Dubious, test returned 2 (wstat 512, 0×200)
    No subtests run
    t/startssl.t …………… Can’t locate Net/SSLeay.pm in @INC (@INC contains:
    C:\strawberry\cpan\build\IO-Socket-SSL-1.33-oiR25t\blib\lib C:\strawberry\cpan\b
    uild\IO-Socket-SSL-1.33-oiR25t\blib\arch C:/strawberry/perl/site/lib C:/strawber
    ry/perl/vendor/lib C:/strawberry/perl/lib .) at t/startssl.t line 6.
    BEGIN failed–compilation aborted at t/startssl.t line 6.
    t/startssl.t …………… Dubious, test returned 2 (wstat 512, 0×200)
    No subtests run
    t/sysread_write.t ………. Can’t locate Net/SSLeay.pm in @INC (@INC contains:
    C:\strawberry\cpan\build\IO-Socket-SSL-1.33-oiR25t\blib\lib C:\strawberry\cpan\b
    uild\IO-Socket-SSL-1.33-oiR25t\blib\arch C:/strawberry/perl/site/lib C:/strawber
    ry/perl/vendor/lib C:/strawberry/perl/lib .) at t/sysread_write.t line 9.
    BEGIN failed–compilation aborted at t/sysread_write.t line 9.
    t/sysread_write.t ………. Dubious, test returned 2 (wstat 512, 0×200)
    No subtests run
    t/verify_hostname.t …….. Can’t locate Net/SSLeay.pm in @INC (@INC contains:
    C:\strawberry\cpan\build\IO-Socket-SSL-1.33-oiR25t\blib\lib C:\strawberry\cpan\b
    uild\IO-Socket-SSL-1.33-oiR25t\blib\arch C:/strawberry/perl/site/lib C:/strawber
    ry/perl/vendor/lib C:/strawberry/perl/lib .) at t/verify_hostname.t line 4.
    BEGIN failed–compilation aborted at t/verify_hostname.t line 4.
    t/verify_hostname.t …….. Dubious, test returned 2 (wstat 512, 0×200)
    No subtests run

    Test Summary Report
    ——————-
    t/01loadmodule.t (Wstat: 512 Tests: 0 Failed: 0)
    Non-zero exit status: 2
    Parse errors: Bad plan. You planned 4 tests but ran 0.
    t/02settings.t (Wstat: 512 Tests: 0 Failed: 0)
    Non-zero exit status: 2
    Parse errors: No plan found in TAP output
    t/acceptSSL-timeout.t (Wstat: 512 Tests: 0 Failed: 0)
    Non-zero exit status: 2
    Parse errors: No plan found in TAP output
    t/auto_verify_hostname.t (Wstat: 512 Tests: 0 Failed: 0)
    Non-zero exit status: 2
    Parse errors: No plan found in TAP output
    t/cert_no_file.t (Wstat: 512 Tests: 0 Failed: 0)
    Non-zero exit status: 2
    Parse errors: No plan found in TAP output
    t/compatibility.t (Wstat: 512 Tests: 0 Failed: 0)
    Non-zero exit status: 2
    Parse errors: No plan found in TAP output
    t/connectSSL-timeout.t (Wstat: 512 Tests: 0 Failed: 0)
    Non-zero exit status: 2
    Parse errors: No plan found in TAP output
    t/core.t (Wstat: 512 Tests: 0 Failed: 0)
    Non-zero exit status: 2
    Parse errors: No plan found in TAP output
    t/dhe.t (Wstat: 512 Tests: 0 Failed: 0)
    Non-zero exit status: 2
    Parse errors: No plan found in TAP output
    t/inet6.t (Wstat: 512 Tests: 0 Failed: 0)
    Non-zero exit status: 2
    Parse errors: No plan found in TAP output
    t/memleak_bad_handshake.t (Wstat: 512 Tests: 0 Failed: 0)
    Non-zero exit status: 2
    Parse errors: No plan found in TAP output
    t/nonblock.t (Wstat: 512 Tests: 0 Failed: 0)
    Non-zero exit status: 2
    Parse errors: No plan found in TAP output
    t/readline.t (Wstat: 512 Tests: 0 Failed: 0)
    Non-zero exit status: 2
    Parse errors: No plan found in TAP output
    t/sessions.t (Wstat: 512 Tests: 0 Failed: 0)
    Non-zero exit status: 2
    Parse errors: No plan found in TAP output
    t/start-stopssl.t (Wstat: 512 Tests: 0 Failed: 0)
    Non-zero exit status: 2
    Parse errors: No plan found in TAP output
    t/startssl.t (Wstat: 512 Tests: 0 Failed: 0)
    Non-zero exit status: 2
    Parse errors: No plan found in TAP output
    t/sysread_write.t (Wstat: 512 Tests: 0 Failed: 0)
    Non-zero exit status: 2
    Parse errors: No plan found in TAP output
    t/verify_hostname.t (Wstat: 512 Tests: 0 Failed: 0)
    Non-zero exit status: 2
    Parse errors: No plan found in TAP output
    Files=18, Tests=0, 1 wallclock secs ( 0.13 usr + 0.14 sys = 0.27 CPU)
    Result: FAIL
    Failed 18/18 test programs. 0/0 subtests failed.
    dmake.EXE: Error code 130, while making ‘test_dynamic’
    SULLR/IO-Socket-SSL-1.33.tar.gz
    C:\strawberry\c\bin\dmake.EXE test — NOT OK
    //hint// to see the cpan-testers results for installing this module, try:
    reports SULLR/IO-Socket-SSL-1.33.tar.gz
    Running make install
    make test had returned bad status, won’t install without force
    Failed during this command:
    FLORA/Net-SSLeay-1.36.tar.gz : make_test NO
    SULLR/IO-Socket-SSL-1.33.tar.gz : make_test NO

    cpan> force cmd

    cpan> force cmd FLORA\Net-SSLeay-1.36.tar.gz
    Warning: Cannot cmd FLORANet-SSLeay-1.36.tar.gz, don’t know what it is.
    Try the command

    i /FLORANet-SSLeay-1.36.tar.gz/

    to find objects with matching identifiers.

    cpan> force cmd FLORA/Net-SSLeay-1.36.tar.gz
    Panic: obj[--- !!perl/hash:CPAN::Distribution
    CALLED_FOR: F/FL/FLORA/Net-SSLeay-1.36.tar.gz
    CHECKSUM_STATUS: OK
    CONTAINSMODS:
    Net::SSLeay: 1
    Net::SSLeay::Handle: 1
    ID: F/FL/FLORA/Net-SSLeay-1.36.tar.gz
    RO:
    CPAN_USERID: FLORA
    CPAN_VERSION: 1.36
    DESCRIPTION: Secure Socket Layer (based on OpenSSL)
    archived: tar
    build_dir: C:\strawberry\cpan\build\Net-SSLeay-1.36-8EOueU
    incommandcolor: 0
    localfile: C:\strawberry\cpan\sources\authors\id\F\FL\FLORA\Net-SSLeay-1.36.tar.
    gz
    make: !!perl/hash:CPAN::Distrostatus
    COMMANDID: 2
    FAILED: ''
    TEXT: YES
    TIME: 1284132976
    make_test: !!perl/hash:CPAN::Distrostatus
    COMMANDID: 2
    FAILED: 1
    TEXT: NO
    TIME: 1284133034
    negative_prefs_cache: 2
    prefs: {}
    prereq_pm:
    build_requires: ~
    requires:
    ExtUtils::MakeMaker: 6.42
    MIME::Base64: 0
    reqtype: r
    unwrapped: !!perl/hash:CPAN::Distrostatus
    COMMANDID: 2
    FAILED: ''
    TEXT: YES
    TIME: 1284132937
    writemakefile: !!perl/hash:CPAN::Distrostatus
    COMMANDID: 2
    FAILED: ''
    TEXT: YES
    TIME: 1284132951
    ] cannot meth[cmd]

    cpan> fforce cmd FLORA/Net-SSLeay-1.36.tar.gz
    Panic: obj[--- !!perl/hash:CPAN::Distribution
    CALLED_FOR: F/FL/FLORA/Net-SSLeay-1.36.tar.gz
    CONTAINSMODS:
    Net::SSLeay: 1
    Net::SSLeay::Handle: 1
    ID: F/FL/FLORA/Net-SSLeay-1.36.tar.gz
    RO:
    CPAN_USERID: FLORA
    CPAN_VERSION: 1.36
    DESCRIPTION: Secure Socket Layer (based on OpenSSL)
    incommandcolor: 0
    negative_prefs_cache: 2
    ] cannot meth[cmd]

    cpan>

    pls help me…

  36. #36 by vyompv on September 12, 2010 - 8:55 pm

    Jazz…
    From the output what you have pasted i understand that you have already downloaded and now it tries to install it; is it so? Was the output you pasted is it complete one?

    I have not myself tried in Windows 7 but i searched in the strawberry the issues regarding IO::Socket is solved from the version above Strawberry perl 5.10.
    Download the latest perl [choose the correct one while downloading]. I have not tried even the 64 bit version. But i think none should have a problem.

    Can you do a fresh installation ? uninstall Strawberry and then remove [manually] all the folders connected with Strawberry. [Search and find out the folders]. Make sure you delete all the folders connected with it mainly the place wher you have installed the folder. I hope you have downloaded the latest perl 5.12.1.0.

    When you install any of the module it should first download the module from internet and then try to install. All the modules will be downloaded from internet and installed. All the modules will be installed smoothly, make sure you dont make mistake while typing. Also install the modules in order.

    All the best. If still unable to do so and you are in a need to find invisible users then search internet with a better keywords.

  37. #37 by shanmukh on September 23, 2010 - 4:49 pm

    could u pls help in the error. all installation
    are successfull

    Use of uninitialized value $args{“file”} in lc at C:/strawberry/perl/site/lib/Ne
    t/XMPP/Debug.pm line 154.
    Use of uninitialized value $ENV{“HOME”} in concatenation (.) or string at invi.p
    l line 209.
    cannot read /.sendxmpprc: No such file or directory

  38. #38 by ssh on September 24, 2010 - 12:49 am

    Hi, Im having a little issue withe the ssl side of things:
    # perl invi.pl bla bla
    Username:bla
    Invalid or unreadable path specified for ssl_ca_path. at /usr/local/share/perl/5.10.0/XML/Stream.pm line 753.

    how can i configure the ssl_ca_path?

    thanks
    ssh

  39. #39 by archit- the devil on September 28, 2010 - 4:16 am

    with the gr8 help of person (on commnt no #39) i reached almost up to the end
    but when i gave command ” perl invi.pl ” the following error occured-

    cant locate object method “perl” via pacakage “MakeFile” (perhaps to forget to load “MakeFile” ?) at invi.pl line 1.

    i am using windows 7.

    help & regards !!

  40. #40 by Adhi on September 30, 2010 - 11:17 am

    IM receiving the below error while executing type->perl invi.pl

    syntax error at invi.pl line 2, near “02″
    “use” not allowed in expression at invi.pl line 3, near “03 ”
    “use” not allowed in expression at invi.pl line 4, near “04 ”
    Illegal octal digit ’8′ at invi.pl line 8, at end of line
    Illegal octal digit ’9′ at invi.pl line 9, at end of line
    syntax error at invi.pl line 32, near “32 }”
    syntax error at invi.pl line 46, near “46 }”
    syntax error at invi.pl line 50, near “50 }”
    Illegal declaration of subroutine main::presence_ch at invi.pl line 52.

  41. #41 by Srijith R on September 30, 2010 - 11:33 am

    Are you sure perl is working fine? seems to be issue with perl not working. Just verify that

  42. #42 by vyompv on October 1, 2010 - 8:48 pm

    shanmukh, archit- the devil and others .. I have written and commented here from scrap to the end how to check teh modules whether they are installed properly of not and also answered many issues in the comment for installing and running this program in windows xp.
    I never got an error while installing nor anytime. Please make sure to read all my comments written here [by vyompv] for windows perl. There are 2 pages for this comment, please make sure you read all. I have written how to check whether your installation was proper or not and make sure you have tried it.
    In no way you will find this installation failure, only thing you need to try bit harder. Happy installation in windows and running this program :)

  43. #43 by Gautam on October 4, 2010 - 8:21 pm

    Hi Srijith,

    Beautfiul piece of code. Thanks to you and Vyom. This is a nice tool to play around with.

    I’ve covered you both on my blog:

    http://www.techbuzz.in/how-can-i-check-find-invisible-users-in-gtalk-gmail-chat-google-talk.php

    Cheers,

  44. #44 by vyompv on October 8, 2010 - 10:31 pm

    Hi Srijith

    :( This code cracked google fixed it. Any other way ? :)

  45. #45 by mehul on October 9, 2010 - 5:11 am

    hey i tried the code and everything and it worked but i can’t see any buddy in the invisible list.. i asked my friend to go invisible and then i tried it but i didn’t got any feeds…or info saying that my buddy was invisilbe.. do u have any idea..

  46. #46 by akshat on October 11, 2010 - 11:52 am

    Now, this script is not working since last 5 days…..:(

  47. #47 by Srijith R on October 11, 2010 - 11:54 am

    The script doesn’t seem to work with Google fixing the loophole i used to get invisible users. I will try finding new method to get the same. Keep checking here for any updates

  48. #48 by Kiran on October 12, 2010 - 3:25 am

    Hi Srijith, Vyompv
    me too getting an error like: Authorization failed.
    could you pls send me the file, script in notepad (invi.pl)

  49. #49 by vjjoe on October 19, 2010 - 12:19 am

    Hi Srijith, Any update on this? Have you figured out a way?Thanks!

  50. #50 by max on October 22, 2010 - 3:53 am

    hey do u think there is any chance of getting this code working again ????

(will not be published)