Created
February 18, 2014 13:48
-
-
Save danilovazb/9071297 to your computer and use it in GitHub Desktop.
Interface do Enviador de e-mail anonimo hostinger.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.awt.BorderLayout; | |
import java.awt.EventQueue; | |
import java.util.Properties; | |
import javax.activation.DataHandler; | |
import javax.activation.FileDataSource; | |
import javax.mail.Authenticator; | |
import javax.mail.Message; | |
import javax.mail.PasswordAuthentication; | |
import javax.mail.Session; | |
import javax.mail.Transport; | |
import javax.mail.internet.InternetAddress; | |
import javax.mail.internet.MimeMessage; | |
import javax.swing.JFrame; | |
import javax.swing.JPanel; | |
import javax.swing.border.EmptyBorder; | |
import javax.swing.JTextField; | |
import javax.swing.JButton; | |
import java.awt.event.ActionListener; | |
import java.awt.event.ActionEvent; | |
import java.io.BufferedReader; | |
import java.io.FileNotFoundException; | |
import java.io.FileReader; | |
import java.io.IOException; | |
import javax.swing.JTextArea; | |
import javax.swing.JLabel; | |
import javax.swing.JScrollPane; | |
import javax.swing.JPasswordField; | |
import javax.swing.UIManager; | |
import javax.swing.UnsupportedLookAndFeelException; | |
import com.seaglasslookandfeel.component.SeaGlassArrowButton; | |
import javax.swing.JSeparator; | |
import java.awt.Color; | |
public class InterfaceSpammer extends JFrame { | |
private JPanel contentPane; | |
private JTextField tfPara; | |
private JTextField tfAssunto; | |
private JTextArea txtrNmm = new JTextArea(); | |
private JTextField tfDe; | |
private JPasswordField pfSenha; | |
private JTextField tfQmEnvia; | |
/** | |
* Inicia a aplica��o. | |
*/ | |
public static void main(String[] args) { | |
EventQueue.invokeLater(new Runnable() { | |
public void run() { | |
try { | |
InterfaceSpammer frame = new InterfaceSpammer(); | |
frame.setVisible(true); | |
} catch (Exception e) { | |
e.printStackTrace(); | |
} | |
} | |
}); | |
} | |
/** | |
* Cria o Frame. | |
* @throws UnsupportedLookAndFeelException | |
* @throws IllegalAccessException | |
* @throws InstantiationException | |
* @throws ClassNotFoundException | |
*/ | |
public InterfaceSpammer() throws IOException, ClassNotFoundException, InstantiationException, IllegalAccessException, UnsupportedLookAndFeelException{ | |
setTitle("FakeMail - Unknown_AntiSec - http://unknownsec.wordpress.com"); | |
UIManager.setLookAndFeel("com.seaglasslookandfeel.SeaGlassLookAndFeel"); | |
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); | |
setBounds(100, 100, 457, 593); | |
contentPane = new JPanel(); | |
contentPane.setForeground(Color.WHITE); | |
contentPane.setBackground(Color.BLACK); | |
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); | |
setContentPane(contentPane); | |
contentPane.setLayout(null); | |
tfPara = new JTextField(); | |
tfPara.setBounds(15, 219, 419, 19); | |
contentPane.add(tfPara); | |
tfPara.setColumns(10); | |
tfAssunto = new JTextField(); | |
tfAssunto.setBounds(15, 272, 419, 19); | |
contentPane.add(tfAssunto); | |
tfAssunto.setColumns(10); | |
JButton btnNewButton = new JButton("Envia"); | |
//Atribui fun��o de enviar para bot�o | |
btnNewButton.addActionListener(new ActionListener() { | |
public void actionPerformed(ActionEvent e) { | |
// L� o arquivo de texto com os dados a serem enviados | |
/*FileReader ler = null; | |
try { | |
ler = new FileReader("C:\\Users\\rbrasil\\Documents\\usr.txt"); | |
} catch (FileNotFoundException e1) { | |
// TODO Auto-generated catch block | |
e1.printStackTrace(); | |
} | |
BufferedReader leitor = new BufferedReader(ler); | |
String linha; | |
try { | |
while ((linha = leitor.readLine()) != null) {*/ | |
//System.out.println(linha); | |
enviaEmail send = new enviaEmail(); | |
send.enviaEmail(tfDe.getText(), tfPara.getText(), tfAssunto.getText(), txtrNmm.getText(), pfSenha.getText(), tfQmEnvia.getText()); | |
//senhaEmail sh = new senhaEmail(); | |
//sh.enviaEmail(pfSenha.getText(), tfDe.getText()); | |
// send.enviaEmail(DE, PARA, ASSUNTO, MSG); | |
//} | |
//} catch (IOException e1) { | |
// TODO Auto-generated catch block | |
//e1.printStackTrace(); | |
//} | |
} | |
}); | |
btnNewButton.setBounds(166, 530, 117, 25); | |
contentPane.add(btnNewButton); | |
JLabel lblAssunto = new JLabel("Assunto"); | |
lblAssunto.setForeground(Color.WHITE); | |
lblAssunto.setBounds(15, 247, 62, 14); | |
contentPane.add(lblAssunto); | |
JLabel lblMsg = new JLabel("Msg"); | |
lblMsg.setForeground(Color.WHITE); | |
lblMsg.setBounds(15, 302, 62, 14); | |
contentPane.add(lblMsg); | |
JLabel lblPara = new JLabel("Para"); | |
lblPara.setForeground(Color.WHITE); | |
lblPara.setBounds(15, 194, 62, 14); | |
contentPane.add(lblPara); | |
JScrollPane scrollPane = new JScrollPane(); | |
scrollPane.setBounds(15, 327, 419, 192); | |
contentPane.add(scrollPane); | |
scrollPane.setViewportView(txtrNmm); | |
tfDe = new JTextField(); | |
tfDe.setColumns(10); | |
tfDe.setBounds(15, 32, 215, 19); | |
contentPane.add(tfDe); | |
JLabel lblDe = new JLabel("De"); | |
lblDe.setForeground(Color.WHITE); | |
lblDe.setBounds(15, 138, 62, 14); | |
contentPane.add(lblDe); | |
JLabel lblSh = new JLabel("Senha: "); | |
lblSh.setForeground(Color.WHITE); | |
lblSh.setBounds(15, 63, 62, 14); | |
contentPane.add(lblSh); | |
pfSenha = new JPasswordField(); | |
pfSenha.setBounds(15, 89, 102, 19); | |
contentPane.add(pfSenha); | |
tfQmEnvia = new JTextField(); | |
tfQmEnvia.setBounds(15, 163, 419, 20); | |
contentPane.add(tfQmEnvia); | |
tfQmEnvia.setColumns(10); | |
JLabel lblUsurio = new JLabel("Usu\u00E1rio:"); | |
lblUsurio.setForeground(Color.WHITE); | |
lblUsurio.setBounds(15, 12, 102, 14); | |
contentPane.add(lblUsurio); | |
JSeparator separator = new JSeparator(); | |
separator.setBounds(15, 124, 426, 2); | |
contentPane.add(separator); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment