1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
| java -jar heapdump_tool.jar heapdump 查询方式: 1. 关键词 例如 password 2. 字符长度 len=10 获取长度为10的所有key或者value值 3. 按顺序获取 num=1-100 获取顺序1-100的字符 4. class模糊搜索 class=xxx 获取class的instance数据信息 5. id查询 id=0xaaaaa 获取id为0xaaaaa的class或者object数据信息 4. re正则查询 re=xxx 自定义正则查询数据信息 获取url,file,ip shirokey 获取shirokey的值 geturl 获取所有字符串中的url getfile 获取所有字符串中的文件路径文件名 getip 获取所有字符串中的ip 默认不输出查询结果非key-value格式的数据,需要获取所有值,输入all=true,all=false取消显示所有值。
示例: > java -jar heapdump_tool.jar heapdump [-] Start jhat, waiting... [-] fing object count: 100000 [-] too many object,please input 0/1 to choose mode. 0. (search data, may can't find some data, can't use function num=,len=). 1. (load all object, need wait a few minutes). > 0 [-] please input keyword value to search, example: password,re=xxx,len=16,num=0-10,id=0x123a,class=org.xx,all=true,geturl,getfile,getip,shirokey,systemproperties,allproperties,hashtable input q/quit to quit. > spring.datasource.password [-] Start find keyword: spring.datasource.password >> spring.datasource.password -> test@wyzxxz [-] please input keyword value to search, example: password,re=xxx,len=16,num=0-10,id=0x123a,class=org.xx,all=true,geturl,getfile,getip,shirokey,systemproperties,allproperties,hashtable input q/quit to quit. > accesskey [-] Start find keyword: accessKey >> ConnectionProperties.noAccessToProcedureBodies -> When determining procedure parameter types for CallableStatements, and the connected user can''t access procedure bodies through "SHOW CREATE PROCEDURE" or select on mysql.proc should the driver instead create basic metadata >> accessKey -> LTA************** [-] please input keyword value to search, example: password,re=xxx,len=16,num=0-10,id=0x123a,class=org.xx,all=true,geturl,getfile,getip,shirokey,systemproperties,allproperties,hashtable input q/quit to quit. > shirokey >> kPH+bIxk5D2deZiIxcaaaA== [-] please input keyword value to search, example: password,re=xxx,len=16,num=0-10,id=0x123a,class=org.xx,all=true,geturl,getfile,getip,shirokey,systemproperties,allproperties,hashtable input q/quit to quit. > class=shiro.web.mgt - > org.apache.shiro.web.mgt.CookieRememberMeManager - - - -> org.apache.shiro.crypto.AesCipherService - - - - - - - -> algorithmName -> AES - - - - - - - -> blockSize -> 0 - - - - - - - -> generateInitializationVectors -> true - - - - - - - -> initializationVectorSize -> 128 - - - - - - - -> keySize -> 128 - - - - - - - -> modeName -> CBC - - - - - - - -> paddingSchemeName -> PKCS5Padding - - - - - - - -> secureRandom -> <null> - - - - - - - -> streamingBlockSize -> 8 - - - - - - - -> streamingBufferSize -> 512 - - - - - - - -> streamingModeName -> CBC - - - - - - - -> streamingPaddingSchemeName -> PKCS5Padding - - - - - - - -> streamingTransformationString -> <null> - - - - - - - -> transformationString -> <null> - - - -> cipherService -> - - - -> org.apache.shiro.web.servlet.SimpleCookie - - - - - - - -> comment -> <null> - - - - - - - -> domain -> <null> - - - - - - - -> httpOnly -> true - - - - - - - -> maxAge -> 31536000 - - - - - - - -> name -> rememberMe - - - - - - - -> path -> <null> - - - - - - - -> secure -> false - - - - - - - -> value -> <null> - - - - - - - -> version -> -1 - - - -> cookie -> - - - -> decryptionCipherKey -> xxxx - - - -> encryptionCipherKey -> xxxx - - - -> org.apache.shiro.io.DefaultSerializer - - - -> serializer -> [-] please input keyword value to search, example: password,re=xxx,len=16,num=0-10,id=0x123a,class=org.xx,all=true,geturl,getfile,getip,shirokey input q/quit to quit. > q [-] exit.
|