首页
社区
课程
招聘
求助:某android软件的加密处理函数
发表于: 2012-12-18 22:44 4399

求助:某android软件的加密处理函数

2012-12-18 22:44
4399
附件里是 APK 望 能指点 12,登陆的 密码的 转换 6-16位 密码 转成256位了,看了半天没有找到 处理的部分!

[课程]Android-CTF解题方法汇总!

上传的附件:
收藏
免费 0
支持
分享
最新回复 (5)
雪    币: 133
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2
还原了代码看了看,这应该是款摄像软件吧?还需要登录?我看了半天也没找到哦,目录大概的是软件使用功能、移动支付功能、IP验证什么什么的,我也不太懂。抱歉,没能帮到你。
2012-12-19 00:20
0
雪    币: 2700
活跃值: (63)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
3
谢谢楼上哥们,我还原JAVA 源码 也没有找到 关键部分。主要的在下面的函数 ,转换部分 没有找到。

public static Hashtable a(String paramString, Hashtable paramHashtable)
  {
    String str1;
    if (paramHashtable.get("BODY/jsessionidStr") != null)
    {
      str1 = (String)paramHashtable.get("BODY/jsessionidStr");
      Object localObject = paramHashtable.remove("BODY/jsessionidStr");
    }
    for (String str2 = str1; ; str2 = null)
    {
      byte[] arrayOfByte = h.h(h.a("ROOT", paramHashtable));
      PrintStream localPrintStream1 = System.out;
      StringBuilder localStringBuilder1 = new StringBuilder("xml request=======");
      String str3 = h.a("ROOT", paramHashtable);
      String str4 = str3;
      localPrintStream1.println(str4);
      java.net.Proxy localProxy;
      URL localURL1;
      if ((ApplicationConfig.d != null) && (ApplicationConfig.d.equals("cmwap")))
      {
        String str5 = android.net.Proxy.getDefaultHost();
        int i = android.net.Proxy.getDefaultPort();
        InetSocketAddress localInetSocketAddress = new InetSocketAddress(str5, i);
        Proxy.Type localType = Proxy.Type.HTTP;
        localProxy = new java.net.Proxy(localType, localInetSocketAddress);
        localURL1 = new URL(paramString);
        a = localURL1;
      }
      URL localURL2;
      for (HttpURLConnection localHttpURLConnection = (HttpURLConnection)localURL1.openConnection(localProxy); ; localHttpURLConnection = (HttpURLConnection)localURL2.openConnection())
      {
        localHttpURLConnection.setDoOutput(1);
        localHttpURLConnection.setDoInput(1);
        localHttpURLConnection.setRequestMethod("POST");
        localHttpURLConnection.setUseCaches(0);
        localHttpURLConnection.setInstanceFollowRedirects(1);
        localHttpURLConnection.setConnectTimeout(80000);
        localHttpURLConnection.setReadTimeout(50000);
        localHttpURLConnection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
        localHttpURLConnection.setRequestProperty("Connection", "Keep-Alive");
        localHttpURLConnection.setRequestProperty("Charset", "UTF-8");
        if (str2 != null)
        {
          PrintStream localPrintStream2 = System.out;
          String str6 = "PICCODE###########" + str2;
          localPrintStream2.println(str6);
          String str7 = "JSESSIONID=" + str2;
          localHttpURLConnection.setRequestProperty("Cookie", str7);
        }
        OutputStream localOutputStream = localHttpURLConnection.getOutputStream();
        DataOutputStream localDataOutputStream = new DataOutputStream(localOutputStream);
        localDataOutputStream.write(arrayOfByte);
        localDataOutputStream.flush();
        localDataOutputStream.close();
        PrintStream localPrintStream3 = System.out;
        StringBuilder localStringBuilder2 = new StringBuilder("response code======:");
        int j = localHttpURLConnection.getResponseCode();
        String str8 = j;
        localPrintStream3.println(str8);
        String str9 = h.a(a(localHttpURLConnection.getInputStream()));
        PrintStream localPrintStream4 = System.out;
        String str10 = "xml response========:" + str9;
        localPrintStream4.println(str10);
        return h.i(str9);
        localURL2 = new URL(paramString);
        a = localURL2;
      }
    }
  }
2012-12-19 08:01
0
雪    币: 2676
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
4
牵扯到收费的东西,还是不要动的好。
2012-12-19 10:05
0
雪    币: 133
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
5
具体的还是得把程序的整个流程弄明白的好,这样光直白的看代码一点头绪也没有的,哪些函数是用来操作神马的,这样一步一步地分析+猜测,模拟对比着程序运行后的功能模式瞅瞅。我也是看的相当蛋疼的说。
2012-12-19 13:46
0
雪    币: 2700
活跃值: (63)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
6
分 给楼上 哥们了 ,实在 难搞哦!也谢谢您了!
2012-12-29 11:35
0
游客
登录 | 注册 方可回帖
返回
//