Advertisement
Guest User

Untitled

a guest
Aug 29th, 2017
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. use WWW;
  2. use DOM::Tiny;
  3. use Text::CSV;
  4. use URI::Encode;
  5. use HTTP::UserAgent;
  6. use LWP::Protocol::socks;
  7.  
  8.  
  9. my $url = ?https://www.expressvpn.com/what-is-my-ip?;
  10. say (run :out, "perl", "-e", ?use LWP::UserAgent;
  11.  
  12. my $ua = LWP::UserAgent->new(timeout => 25);
  13. $ua->proxy([qw/http https/] => "socks://127.0.0.1:2225");
  14. $ua->cookie_jar({}); print $ua->get(? ~ $url.perl ~ ?)->content?).out.slurp: :close
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement