How to De-Compile An Exsisting Jar

Discussion in 'Resources' started by Kodfod, Jul 17, 2012.

  1. Offline

    Kodfod

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    PLEASE NOTE:
    THIS IS FOR EDUCATIONAL PURPOSES ONLY I AM NOT IN ANYWAY RESPONSIBLE FOR HOW OTHERS MAY USE THIS KNOWLEDGE

    So Why am I going to tell you guys?
    I have run into the problem of needing to go back to an earlier version of a plugin to grab a piece of code. So what is a way to get back older versions? De-compile.

    Personally, I use JD-GUI To Download Use This

    Now, just place it somewhere on your desktop. Get A Jar File, and drag and drop it ontop of the .exe.

    This will open the program and have your source at your finger tips!

    Remember, i am not responsible for how others use the knowledge.

    As This Person stated Below:
    Keep this in mind and Please be respectful of others.

    Hope This Helped!

    This post has been edited 1 time. It was last edited by Kodfod Aug 6, 2012.
    Icyene, russjr08 and bobacadodl like this.
  2. Offline

    McLuke500

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @Kodfod
    I use JD-GUI as well, it is useful.

    You should add screenshots that are cropped showing how to use it.
  3. Offline

    Fiddy_percent

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Wow this this is GREAT im new to making plugins so having this lets me learn alot quicker (no I wont use it to still peoples plugins) but thanks for posting this
  4. Offline

    Icyene

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @McLuke500 No offense to the developers who will use JD-GUI (I use it also), if they can't figure out how to use it, then they shouldn't be developing. Its as simple as File > Open.

    This post has been edited 1 time. It was last edited by Icyene Jul 26, 2012.
  5. Offline

    McLuke500

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Yeah I suppose but most resource threads have like code quotes and pictures to make them look nice and this is just text.
  6. Offline

    Icyene

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    True, but its such a deliciously simple program. Including images would be like spoon-feeding a 23-year old man.
    Kodfod likes this.
  7. Offline

    firecombat4

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Thanks man, makes it so much easyer to learn plugin developing!
  8. Online

    BMX_ATVMAN14

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  9. Offline

    Icyene

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @BMX_ATCMAN14 I have AVG and Avast, never got that...
  10. Offline

    chaseoes BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    It's fun to decompile your own plugins.
    Doggyroc likes this.
  11. Offline

    Icyene

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @chaseoes Yes, its fun to see that Eclipse swaps String adding with StringBuilder.append(). Glad to see its making minor optimizations for me.

    This post has been edited 1 time. It was last edited by Icyene Jul 28, 2012.
  12. Offline

    Kodfod

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME

    I never got that, Here is the virus total

    2 out of 41 (4.8787%) Say it's a virus

    Here is Vipre:

    [IMG]
  13. Offline

    p000ison

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Its not eclipse which does this :p Every compiler does this :p
  14. Offline

    desht

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  15. Offline

    Icyene

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Well played.
  16. Offline

    edocsyl

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Cool tool :)
  17. Offline

    Jacob Marshall

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I just use Jad in command line, however I really dont like it when this sort of useful information is so easily usable for people that wish to use it maliciously.
  18. Offline

    zecheesy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    its in french!!!!
  19. Offline

    Kodfod

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    lol wut?
  20. Offline

    zecheesy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  21. Offline

    Kodfod

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  22. Offline

    zecheesy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Hey, I have netbeens :B
    Where is the jre? :eek:
  23. Offline

    Kodfod

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME

    This post has been edited 1 time. It was last edited by Kodfod Aug 9, 2012.
  24. Offline

    Milkywayz BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Especially stuff done in a non-secure way such as opening a url which puts data into a database based on $_GET, if someone got that url (Easily with jd-gui) then it's SQL injection heaven... Fortunately most people who realize that can be exploited know they send data in a more secure way.

    This post has been edited 1 time. It was last edited by Milkywayz Aug 11, 2012.
  25. Offline

    Jacob Marshall

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Is all about security for me, if it takes an extra 300ms to handle, it's worth it.

Share This Page