使用jd-gui+javassist修改已编译好的class文件

2017-07-28

1.原因:因为公司代码管理不当导致源码丢失,只好已编译好的class文件进行修改

2.首先先在myeclipse中新建java项目并导入javassist

3.将需要修改的文件放到指定文件夹下

4..在项目中添加以下代码

package dtj;

import javassist.ClassPool;
import javassist.CtClass;
import javassist.CtMethod;
import javassist.NotFoundException;

public class MyTest {

///////入口启动函数

       public static void main(String[] args) throws Exception {

       //这个是得到反编译的池

      ClassPool pool = ClassPool.getDefault();
      
      pool.insertClassPath("E:/dtj") ;
      
    //取得需要反编译修改的文件,注意是完整路径

      CtClass cc1 = pool.get("SmsSender");

      try {
          
          
          cc1.setName("CTCC_SmsSender");
          //取得需要修改的方法

         // CtMethod method = cc1.getDeclaredMethod("a");

         //插入修改项,我们让他直接返回(注意:根据方法的具体返回值返回,因为这个方法返回值是void,所以直接return;)

         // method.insertBefore("{if(true) return ;}");

          //写入保存

          cc1.writeFile();

      } catch (NotFoundException e) {

          e.printStackTrace();

     }

} 
}

注:jd-gui和javassist的下载地址
下载


本文由 admin 创作,采用 知识共享署名 3.0,可自由转载、引用,但需署名作者且注明文章出处。

4001 条评论

  1. xlxohbbc
    xlxohbbc

    使用jd-gui javassist修改已编译好的class文件 - 青花瓷
    axlxohbbc
    [url=http://www.gi0o5j9i36514oh49rfz26r5pe0l2k6as.org/]uxlxohbbc[/url]
    xlxohbbc http://www.gi0o5j9i36514oh49rfz26r5pe0l2k6as.org/

    1. KallinikaRok
      KallinikaRok

      is cannabis together

      441d achat is italie

      1. pqanielsddwsc
        pqanielsddwsc

        lbcyohprhkmq viagra testimonials viagra shelf life viagra free samples mexican pharmacy for erectile dysfunction and cialis
        viagra online sales
        http://dou46magadan.ru/user/bongomarch4/

    2. KallinikaRok
      KallinikaRok

      is verkaufte aus kanada

      441d at is daily soft tabs

      1. woaniellpjnqf
        woaniellpjnqf

        tmidywlprnpb low cost viagra canadian cialis] viagra pill brand cialis canadain paypal
        does generic viagra work
        http://www.agriverdesa.it/index.php?option=com_k2&view=itemlist&task=user&id=879358

    3. KallinikaRok
      KallinikaRok

      ff97 buy cialis cipla

      http://cialishhqq.com/ - get cialis toronto
      discount cialis

      precios cialis genrico

      1. atanielndpmap
        atanielndpmap

        qzvdyltxewul cheapest canadian pharmacy. for cialis online viagra safe generic viagra candian pharmacy viagra
        online pharmacy viagra
        http://hwctr.com/index.php?qa=user&qa_1=bongobeetle3

    4. KallinikaRok
      KallinikaRok

      is rezeptfrei online

      441d is jovene

    5. Kristianascied
      Kristianascied

      comprar is foro

      b5db is tablets prices in pk

      1. rcanielbumrwt
        rcanielbumrwt

        uciqysvvzbyx lowest price viagra viagra overnight viagra and high blood pressure price of cialis in canada
        viagra purchase

    6. Kristianascied
      Kristianascied

      is e cibo

      b5db is levitra is prices

    7. Gordianscied
      Gordianscied

      is tadalafil a at is

      be07 is to be

      1. ixhnry
        ixhnry

        4dnj9ns payday loan alternative
        http://loandayfastgo.com/ - installment loans for bad credit no payday loans
        payday loans in jacksonville fl
        best online payday loans direct lender payday loans oregon

    8. Gordianscied
      Gordianscied

      is 10 precio

      be07 is tadalafil a at is

  2. kkdkvgnvje
    kkdkvgnvje

    使用jd-gui javassist修改已编译好的class文件 - 青花瓷
    akkdkvgnvje
    [url=http://www.g8yw5ks66g33v98gj85j34pv0fh1r55ys.org/]ukkdkvgnvje[/url]
    kkdkvgnvje http://www.g8yw5ks66g33v98gj85j34pv0fh1r55ys.org/

    1. RebekkaRok
      RebekkaRok

      ato do is dosagem

      88fc usa is prescription

      1. yghxcn
        yghxcn

        7fudkob fast auto payday loans
        http://loandayfastgo.com/ - payday loans without checks
        payday loans no credit check no employment verification
        payday loans guaranteed approval advance america payday loan

    2. RebekkaRok
      RebekkaRok

      achat is generique pfizer

      88fc is bestellen online paypal

    3. RebekkaRok
      RebekkaRok

      escompte bon march is

      88fc original is for sale

    4. RebekkaRok
      RebekkaRok

      be is where

      88fc comprare is is levitr

      1. loqbyc
        loqbyc

        rclj6ga payday loan alternative
        http://loandayfastgo.com/ - payday loans chicago
        payday loans guaranteed approval
        payday loans fresno ca payday loans colorado

      2. kyanieledvjbw
        kyanieledvjbw

        lrzbxsprsfen sildenafil viagra canada viagra prescription viagra canadian pharmacies free cialis
        viagra order online
        http://tinyurl.com/qrnnti00

  3. sqfkxbkt
    sqfkxbkt

    使用jd-gui javassist修改已编译好的class文件 - 青花瓷
    sqfkxbkt http://www.gpokyslq944271j941ao31y8dig139a0s.org/
    asqfkxbkt
    [url=http://www.gpokyslq944271j941ao31y8dig139a0s.org/]usqfkxbkt[/url]

    1. AaronAbale
      AaronAbale

      http://amoxicillin-abc.com/ - amoxicillin price

    2. Bennybot
      Bennybot

      ciprofloxacin hcl

    3. CharlesSer
      CharlesSer

      albuterol

    4. Bennybot
      Bennybot

      diflucan no rx

      1. feanielonlscy
        feanielonlscy

        lryizupglkhy www.cialis.com viagra pro viagra pfizer online canadian pharmacy free viagra
        order viagra
        http://www.introrecycling.com/index.php?option=com_k2&view=itemlist&task=user&id=969701

    5. Bennybot
      Bennybot

      cheap vardenafil

    6. AaronAbale
      AaronAbale

      http://orderdiflucan.us.com/ - diflucan

      1. rdanielflmenb
        rdanielflmenb

        icmfvtqcootq best viagra viagra shelf life get viagra generic cialis canadian pharmacy
        herbal viagra reviews
        https://yourbookmark.stream/story.php?title=want-healthy-skin-its-easy-with-these-tips#discuss

      2. peanielqfmsyj
        peanielqfmsyj

        nzqvqxeeqkqx canada cialis effects of viagra viagra results cialiscanada
        viagra for women
        https://zzb.bz/NEFlD

    7. CharlesSer
      CharlesSer

      order viagra online

    8. Bennybot
      Bennybot

      torsemide

    9. MichaelHon
      MichaelHon

      metformin

    10. Brettpew
      Brettpew

      prednisone

    11. Bennybot
      Bennybot

      diflucan no rx

      1. owdtegPI
        owdtegPI

        acg9cet usa payday loans
        http://loandayfastgo.com/ - payday loan consolidation
        payday loans near me
        ace payday loan payday loans kcmo

      2. ucanielbaiejo
        ucanielbaiejo

        xszuovejrnie buy viagra online cheap canadian drugs natural viagra viagra online from canada
        taking viagra
        http://bookmarkwiki.xyz/story.php?title=want-healthy-skin-its-easy-with-these-tips#discuss

    12. Bennybot
      Bennybot

      viagra canada

      1. jekpvy
        jekpvy

        rfecuk6 payday loans az
        http://loandayfastgo.com/ - payday loans salem oregon
        payday loans tulsa
        payday loans online same day no credit check payday loan las vegas

      2. jbanielosnqiz
        jbanielosnqiz

        exdmjfdyzhmi buy viagra uk viagra costs viagra for women is there generic cialis in canada
        buy cheap viagra online uk
        http://www.discoverbits.in/index.php?qa=user&qa_1=lotionpajama8

    13. MichaelHon
      MichaelHon

      lisinopril

    14. Bennybot
      Bennybot

      buy viagra uk

    15. AaronAbale
      AaronAbale

      http://lasix-abc.com/ - lasix on line

    16. MichaelHon
      MichaelHon

      Generic Viagra Valtrex

    17. Douglasawalo
      Douglasawalo

      viagra pills cheapest nolvadex generic viagra cost furosemide lasix vermox Tretinoin acyclovir cost generic levitra from india lisinopril generic cialis

      1. ihqjgm
        ihqjgm

        ayr5gsp quick payday loans online
        http://loandayfastgo.com/ - missouri payday loans
        texas car title and payday loans
        payday loan relief payday loans cleveland ohio

    18. CharlesSer
      CharlesSer

      acyclovir 400 mg avodart price doxycycline cytotec online

      1. raanielbqzyyl
        raanielbqzyyl

        vvrtsqmhsguk rx cialis women and viagra viagra patent canadia pharmacy cialis
        viagra alternative
        http://www.ridesharetalks.com/index.php?qa=user&qa_1=holebeetle4

    19. Bennybot
      Bennybot

      lisinopril

    20. AaronAbale
      AaronAbale

      http://zybangeneric2019.com/ - zyban

    21. MichaelHon
      MichaelHon

      mobic Torsemide Benicar Generic Substitute Lisinopril xenical zoloft

    22. Douglasawalo
      Douglasawalo

      viagra soft effexor 75mg buy zoloft on line no prescription buying viagra amoxicillin xenical

      1. aianielhrtmlx
        aianielhrtmlx

        lxzxotnolkvt viagra purchase viagra online viagra cost canada cialis from candian pharmacy
        discount viagra

    23. CharlesSer
      CharlesSer

      levitra WHERE CAN I BUY FLAGYL Zyban atarax Vardenafil Online nexium motrin pm

    24. Bennybot
      Bennybot

      vermox mebendazole

    25. AaronAbale
      AaronAbale

      http://genericavodart.com/ - generic avodart 0.5 mg

    26. MichaelHon
      MichaelHon

      click for source xenical ciprofloxacin hcl zyban advantage pack nexium levitra Lisinopril zoloft buy wellbutrin albuterol

    27. Douglasawalo
      Douglasawalo

      amoxicillin Lisinopril No Prescription

    28. CharlesSer
      CharlesSer

      generic lisinopril canadian generic cialis atarax for insomnia vardenafil 20 mg Tetracycline Online Flagyl No RX here i found it

    29. Bennybot
      Bennybot

      Order Vardenafil

      1. boanieldbzxyr
        boanieldbzxyr

        ixabanvjgzyi best price on cialis generic viagra sale online viagra prescription viagra online pharmacy
        buy viagra professional

    30. AaronAbale
      AaronAbale

      http://doxycycline100mg.us.org/ - found here

    31. Douglasawalo
      Douglasawalo

      view discover more here zithromax doxycycline 100 mg Valtrex Without A Prescription

    32. CharlesSer
      CharlesSer

      learn more here levitra torsemide tadalafil

      1. twanieldkaewj
        twanieldkaewj

        rdzfeseouuru payday advance loans payday loans nj legit online payday loans fast payday loans online

    33. Bennybot
      Bennybot

      Cheap Mobic

    34. AaronAbale
      AaronAbale

      http://lasix-abc.com/ - Lasix To Buy

    35. MichaelHon
      MichaelHon

      xenical antabuse

    36. Douglasawalo
      Douglasawalo

      flagyl order online buy viagra soft LEVITRA ONLINE propecia over the counter amoxicillin going here paxil levitra

      1. gqanielmbfauk
        gqanielmbfauk

        kwvvbvlxulqq canadian pharmacies viagra shelf life no rx canada pharmacy low dose cialis from canadian pharmacy
        pharmacy viagra

    37. CharlesSer
      CharlesSer

      TADALAFIL Atarax viagra online store buy ventolin hfa vardenafil

      1. naueni
        naueni

        5orvyb7 payday loan places
        http://loandayfastgo.com/ - payday loans locations
        payday loans chicago
        guaranteed payday loans no matter what payday advance loans

    38. Bennybot
      Bennybot

      Valtrex Online

    39. AaronAbale
      AaronAbale

      http://furosemide40mg.us.org/ - furosemide 40 mg

      1. kvjnij
        kvjnij

        ejbu35h first payday loans
        http://loandayfastgo.com/ - advance payday loan
        payday loans austin tx
        payday loans denver payday loans springfield mo

      2. hranielbufsfa
        hranielbufsfa

        ixpkmqembihc women viagra what is viagra viagra for men canadian cialis in usa
        canadian pharmacy generic cialis

    40. MichaelHon
      MichaelHon

      albuterol viagra by mail antibiotic cephalexin Synthroid vardenafil 20 mg

    41. Bennybot
      Bennybot

      tetracycline

    42. Douglasawalo
      Douglasawalo

      order lisinopril online Synthroid generic betnovate effexor 75 mg diflucan by mail cephalexin500mg cap azithromycin purchase

    43. CharlesSer
      CharlesSer

      metformin without prescription lisinopril 5mg generic levitra azithromycin online home zoloft no prescription needed vardenafil

    44. AaronAbale
      AaronAbale

      http://genericpaxil.com/ - paxil

    45. MichaelHon
      MichaelHon

      Generic Viagra 60 mg prozac Buy Viagra female viagra buy online Viagra Canada tadalafil online pharmacy kamagra

    46. Bennybot
      Bennybot

      lisinopril

    47. CharlesSer
      CharlesSer

      Buy Diflucan Viagra Soft atarax pills tretinoin vardenafil 20 mg albuterol cheapest nolvadex cefixime

      1. kranielmvkjuz
        kranielmvkjuz

        jpdrrmuzqsrg payday loans in va payday loan collection scams ace cash express payday loan payday loans albuquerque

    48. AaronAbale
      AaronAbale

      http://amoxicillin-abc.com/ - amoxicillin

    49. MichaelHon
      MichaelHon

      Buy Sildenafil prednisone

    50. Bennybot
      Bennybot

      Cialis

    51. CharlesSer
      CharlesSer

      tadalis Pyridium motrin 800mg cytotech check out your url synthroid female viagra flagyl online

    52. Bennybot
      Bennybot

      effexor xr 75

    53. MichaelHon
      MichaelHon

      propecia buy lisinopril buy cialis

    54. AaronAbale
      AaronAbale

      http://genericpaxil.com/ - paxil

    55. Brettpew
      Brettpew

      buylevitra.us.org

    56. Bennybot
      Bennybot

      sildenafil

    57. MichaelHon
      MichaelHon

      tretinoin diflucan buy flagyl metformin er amoxil 875 mg click generic viagra prednisone Motrin cytotec

    58. AaronAbale
      AaronAbale

      http://buyvardenafil.us.com/ - Buy Vardenafil

    59. Douglasawalo
      Douglasawalo

      diflucan PAXIL Vardenafil

      1. cdanielxmhaxm
        cdanielxmhaxm

        eqhpsmsipllu womens viagra viagra story cialis low price canadian pharmacies best prices for cialis
        soft viagra
        https://xypid.win/story.php?title=want-healthy-skin-its-easy-with-these-tips#discuss

      2. tfanielqkiqgt
        tfanielqkiqgt

        pddxaimvspkm viagra dosages viagra prescriptions viagra in india canadian pharmacy cialis no prescriptio
        purchase viagra online
        http://mathsgee.com/qna/index.php?qa=user&qa_1=bongolentil7

    60. CharlesSer
      CharlesSer

      generic pyridium ventolin hfa Order Viagra Online valtrex visit your url purchase torsemide

      1. flanielmlyull
        flanielmlyull

        mdgxjeyzcpuz viagra canada discount generic viagra canadian cialis canadian pharmacies shipping to usa viagra samples
        real viagra online
        http://www.chimisal.it/index.php?option=com_k2&view=itemlist&task=user&id=695122

    61. MichaelHon
      MichaelHon

      avodart LISINOPRIL NO PRESCRIPTION zyban cheap mobic buy nolvadex

    62. AaronAbale
      AaronAbale

      http://genericatarax.com/ - atarax

    63. Bennybot
      Bennybot

      ventolin hfa

    64. Douglasawalo
      Douglasawalo

      viagra canada generic zithromax zestril vardenafil Vardenafil

    65. CharlesSer
      CharlesSer

      levitra online vermox

    66. MichaelHon
      MichaelHon

      furosemide Generic Tetracyclin tadalafil Azithromycin Online wellbutrin levitra online

    67. AaronAbale
      AaronAbale

      http://viagrasoft.us.com/ - viagra soft

      1. uwozavo
        uwozavo

        d3d3LmR0ajAwNy54aW4# ahubofo-a.anchor.com [URL=http://ahubofo-u.com/]ahubofo-u.anchor.com[/URL] http://ahubofo-t.com/ http://ahubofo-t.com/ http://ahubofo-t.com/ http://ahubofo-t.com/ http://ahubofo-t.com/ http://ahubofo-t.com/ http://ahubofo-t.com/ http://ahubofo-t.com/ iqexitpoi

    68. Bennybot
      Bennybot

      levitra

    69. CharlesSer
      CharlesSer

      benicar 20 mg buy cipro on line buy cialis Order Viagra buy lisinopril buy wellbutrin

    70. KennethExpah
      KennethExpah

      advair orlistat online purchase flagyl levoxyl synthroid website here more information zoloft LEVAQUIN tretinoin

    71. MichaelHon
      MichaelHon

      proair albuterol inhaler

      1. yuanieluwvivg
        yuanieluwvivg

        mzewnebpvpfi cialis at canadian pharmacy discount cialis canada viagra over the counter cialis in canada
        buy generic viagra

    72. CharlesSer
      CharlesSer

      cheap proscar

    73. Bennybot
      Bennybot

      buy colchicine online

    74. CharlesSer
      CharlesSer

      lisinopril without a prescription glucophage no prescription levaquin albuterol order zoloft furosemide price furosemide online propranolol er 60mg levitra canada bupropion albenza cheap doxycycline online Cheap Vardenafil vantin levitra 20mg price arimidex Tetracycline 500 hydrochlorothiazide buy cipro online

    75. AaronAbale
      AaronAbale

      generic arimidex elimite arimidex purchase furosemide more info buy lotrisone online albendazole albenza

    76. KennethExpah
      KennethExpah

      check this out colchicine for acute gout zofran 4mg Medrol ampicillin without a prescription furosemide without a prescription lexapro

    77. MichaelHon
      MichaelHon

      Robaxin

    78. CharlesSer
      CharlesSer

      nolvadex flagyl advair diskus 250/50 benicar continue prednisone on line acyclovir albenza pinworms cafergot pills celebrex 200mg CHEAP TRETINOIN CREAM valtrex pills albendazole online proscar methotrexate price medication propranolol Nolvadex estrace estradiol ATENOLOL 25MG TABLETS buy baclofen

    79. CharlesSer
      CharlesSer

      flagyl bupropion 100mg amoxil without a prescription amoxil

    80. KennethExpah
      KennethExpah

      Glucophage more helpful hints 500 mg azithromycin acyclovir online ventolin hfa 90 mcg

    81. AaronAbale
      AaronAbale

      Triamterene Hydrochlorothiazide Elimite neurontin VARDENAFIL plavix generic available amoxil online link lotrisone link

    82. MichaelHon
      MichaelHon

      buy indocin where to buy tretinoin cream usp 0.025 as explained here Nolvadex 10 Mg buy lotrisone online buy celexa cost of trazodone cheap albendazole elimite cream 5