Jump to content
Tuts 4 You

[UnpackMe] Jar2Exe v2.1


CodeExplorer
Go to solution Solved by Derberux,

Recommended Posts

  • 1 month later...

When I open unpackme, the nag demo version jar2exe wrapper appear:

Error -> This program is generated by unregistered Jar2Exe and it has expired to run for DEMO use.

Can someone teach me how to patch that nag? 

Link to comment
Share on other sites

  • 8 months later...

When I open unpackme, the nag demo version jar2exe wrapper appear:

Error -> This program is generated by unregistered Jar2Exe and it has expired to run for DEMO use.

Can someone teach me how to patch that nag?

 

Open the file with OllyDBG, and patch the following addresses

 

in jar2exeu.00406C13 replace the jnz jar2exeu.00406C99 to jmp jar2exeu.00406C99

in jar2exeu.00406B4D replace the jnz jar2exeu.00406BD3 to jmp jar2exeu.00406BD3 

 

if you are too lazy to patch it yourself here's the file without demo limits

jar2exeunpackme_nodemo.rar

  • Like 2
Link to comment
Share on other sites

OK.


Tell me is correct.



package main; import java.awt.*;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.*; // Referenced classes of package main:
// RegistrationTest public class MainJFrame extends JFrame
{ public MainJFrame()
{
initComponents();
setTitle("Jar2Exe v2.1 Unpack Me");
if(RegistrationTest.IsRegistered())
jLabel2.setText("Registered!");
else
jLabel2.setText("Not registered!");
} private void initComponents()
{
jLabel1 = new JLabel();
jLabel2 = new JLabel();
jLabel3 = new JLabel();
setDefaultCloseOperation(3);
jLabel1.setText("Status:");
jLabel2.setText("Not registered!");
jLabel3.setFont(new Font("Tahoma", 0, 18));
jLabel3.setText("If you can unpack write a tutorial!");
GroupLayout layout = new GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addGap(36, 36, 36).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(jLabel3, -2, 279, -2).addComponent(jLabel1).addComponent(jLabel2, -2, 88, -2)).addContainerGap(85, 32767)));
layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap().addComponent(jLabel1).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jLabel2).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addComponent(jLabel3, -2, 58, -2).addContainerGap(186, 32767)));
pack();
} public static void main(String args[])
{
try
{
javax.swing.UIManager.LookAndFeelInfo arr$[] = UIManager.getInstalledLookAndFeels();
int len$ = arr$.length;
int i$ = 0;
do
{
if(i$ >= len$)
break;
javax.swing.UIManager.LookAndFeelInfo info = arr$[i$];
if("Nimbus".equals(info.getName()))
{
UIManager.setLookAndFeel(info.getClassName());
break;
}
i$++;
} while(true);
}
catch(ClassNotFoundException ex)
{
Logger.getLogger(main/MainJFrame.getName()).log(Level.SEVERE, null, ex);
}
catch(InstantiationException ex)
{
Logger.getLogger(main/MainJFrame.getName()).log(Level.SEVERE, null, ex);
}
catch(IllegalAccessException ex)
{
Logger.getLogger(main/MainJFrame.getName()).log(Level.SEVERE, null, ex);
}
catch(UnsupportedLookAndFeelException ex)
{
Logger.getLogger(main/MainJFrame.getName()).log(Level.SEVERE, null, ex);
}
EventQueue.invokeLater(new Runnable() { public void run()
{
(new MainJFrame()).setVisible(true);
} }
);
} private JLabel jLabel1;
private JLabel jLabel2;
private JLabel jLabel3;
}


package main;
// Referenced classes of package main:
// MainJFrame static class MainJFrame$1
implements Runnable
{ public void run()
{
(new MainJFrame()).setVisible(true);
} MainJFrame$1()
{
}
}


package main;
public class RegistrationTest
{ public RegistrationTest()
{
} public static boolean IsRegistered()
{
return false;
}
}

Unpacked.rar

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...