Advertisement
Guest User

Untitled

a guest
Dec 29th, 2016
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #!/usr/bin/perl
  2.  
  3. use strict;
  4. use Net::XMPP;
  5. use Data::Dumper;
  6.  
  7. my $con = Net::XMPP::Client->new( debuglevel=>1,);
  8. my $host = '<host name here>';
  9. my $user = '<my username>';
  10. my $pass = '<my password>';
  11.  
  12. my $status = $con->Connect(
  13. hostname => $host,
  14. connectiontype => 'tcpip',
  15. tls => 1
  16. );
  17.  
  18. my @result = $con->AuthSend(
  19. hostname => $host,
  20. username => $user,
  21. password => $pass,
  22. );
  23.  
  24. print Dumper @result;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement