log


SUBMITTED BY: xrgabor

DATE: April 29, 2017, 1:52 p.m.

FORMAT: Text only

SIZE: 984 Bytes

HITS: 596

  1. use LWP::UserAgent;
  2. use HTTP::Cookies;
  3. use WWW::Mechanize;
  4. my $start_page = 'https://secure2.playboy.com/security/loginStart.do?s
  5. +c_target=cyber.playboy.com';
  6. my $mech = WWW::Mechanize->new();
  7. my $mech = WWW::Mechanize->new( cookie_jar => "lwpcookies.txt");
  8. my $mech = WWW::Mechanize->new( agent=>"Mozilla/5.0 (X11; U; Linux i68
  9. +6; en-US; rv:1.7) Gecko/20040918 Firefox/0.9.3 " );
  10. $mech->get( $start_page );
  11. if ($mech->success()==1) {
  12. print "Success \n";
  13. }
  14. $mech->submit_form(
  15. form_name => 'loginForm',
  16. fields => {
  17. username => 'xxxx',
  18. password => 'xxxx',
  19. savedPWAction => 'on',
  20. submitButton => 'ENTER THE CLUB'
  21. }
  22. );
  23. #$mech->click_button(name => 'submitButton');
  24. #$button='submitButton';
  25. $mech->click;
  26. $result = $mech->success();
  27. if ($result == 1){
  28. print "Success";
  29. }
  30. else {
  31. print "Fail";
  32. }

comments powered by Disqus