⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 af.java

📁 经过反编译和部分代码修改后的ultraimpro java源代码。可在netbean环境下成功编译。供学习和分析用。
💻 JAVA
字号:
// Decompiled by DJ v3.9.9.91 Copyright 2005 Atanas Neshkov  Date: 2006-5-1 19:31:40
// Home Page : http://members.fortunecity.com/neshkov/dj.html  - Check often for new version!
// Decompiler options: packimports(3) 

import java.io.InputStream;
import java.io.OutputStream;
import javax.microedition.io.*;

public final class af
{

    public af()
    {
    }

    public static final String a(String s, String s1)
    {
        int i;
        try
        {
        i = s1.indexOf(s);
        boolean flag = false;
        if(i < 0)
            return null;
        i += s.length();
        int j;
        if((j = s1.indexOf(',', i)) < 0)
            return null;
        return s1.substring(i, j);
        }
        catch (Exception _ex)
        {
            return null;
        }
        // JVM INSTR pop ;
        //return null;
    }

    public static final String[] a(String s, String s1, String s2, int i)
    {
        String as[];
        String s3;
        String s4;
        HttpsConnection httpsconnection;
        if(s == null || s1 == null || s2 == null)
            return null;
        as = new String[2];
        s3 = u.a(s, 0);
        StringBuffer stringbuffer;
        (stringbuffer = new StringBuffer()).append("Passport1.4OrgVerb=GET,OrgURL=http%3A%2F%2Fmessenger%2Emsn%2Ecom,sign-in=");
        stringbuffer.append(s3).append(",pwd=").append(u.a(s1, 0));
        stringbuffer.append(",").append(s2);
        s4 = stringbuffer.toString();
        httpsconnection = null;
        //if(i > 10)
            //break MISSING_BLOCK_LABEL_285;
        if (i <= 10)
Label_a_if:        {
        try
        {
        httpsconnection = (HttpsConnection)Connector.open("https://login.passport.com/login2.srf");
        
        int j;
        do
        {
            httpsconnection.setRequestProperty("Authorization", s4);
            if((j = httpsconnection.getResponseCode()) != 302)
                break;
            String s5;
            if((s5 = httpsconnection.getHeaderField("Location")) == null)
                break Label_a_if; // break MISSING_BLOCK_LABEL_285;
            s5 = s5.trim();
            httpsconnection.close();
            httpsconnection = (HttpsConnection)Connector.open(s5);
        } while(true);
        if(j != 200)
            break Label_a_if; //break MISSING_BLOCK_LABEL_285;
        String s6;
        if((s6 = httpsconnection.getHeaderField("Authentication-Info")) == null)
            s6 = httpsconnection.getHeaderField("WWW-Authenticate");
        String s7;
        if(s6 == null || (s7 = a("from-PP=", s6)) == null)
            break Label_a_if; //break MISSING_BLOCK_LABEL_285;
        s7 = s7.substring(1, s7.length() - 1);
        as[0] = String.valueOf(10);
        as[1] = s7;
        {
        try
        {
            if(httpsconnection != null)
            {
                httpsconnection.close();
                httpsconnection = null;
            }
        }
        catch(Exception _ex) { }
        return as;
        }
        }
        catch (Exception _ex) { }
        } // end if

        try
        {
            if(httpsconnection != null)
                httpsconnection.close();
        }
        catch(Exception _ex) { }
        String s9 = u.a(s1, 1);
        String s8;
        if((s8 = (new af()).a(s3, s9, s2, "http://www.mobisophy.com/servlets/Authen1", 0)) == null || s8.length() == 0)
            s8 = (new af()).a(s3, s9, s2, "http://www.mobilosophy.com/servlets/Authen1", 0);
        else  if(s8.equals(String.valueOf(-100)))
            s8 = (new af()).a(s3, s9, s2, "http://www.mobisophy.com/servlets/Authen1", 1);
       
        if(s8 == null || s8.length() == 0)
        {
            as[0] = String.valueOf(i);
            as[1] = null;
        } else
        {
            if(i < 10 && ++i >= 5)
                i = 11;
            as[0] = String.valueOf(i);
            as[1] = s8;
        }
        return as;
    }

    public final String a(String s, String s1, String s2, String s3, int i)
    {
        HttpConnection httpconnection;
        InputStream inputstream;
        OutputStream outputstream;
        String s6;
        httpconnection = null;
        inputstream = null;
        outputstream = null;
        s6 = null;
        try
        {
        if(i == 0)
        {
            String s4 = "a=" + s;
            (httpconnection = (HttpConnection)Connector.open(s3 + "?" + s4)).setRequestProperty("Authp", s1);
            httpconnection.setRequestProperty("Authc", s2);
        } else
        {
            String s5 = "a=" + s + "&b=" + s1 + "&c=" + s2;
            (httpconnection = (HttpConnection)Connector.open(s3)).setRequestMethod("POST");
            httpconnection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
            httpconnection.setRequestProperty("Content-Length", Integer.toString(s5.getBytes().length));
            (outputstream = httpconnection.openOutputStream()).write(s5.getBytes());
        }
        int j;
        if((j = httpconnection.getResponseCode()) == 200)
        {
            inputstream = httpconnection.openInputStream();
            int k;
            if((k = (int)httpconnection.getLength()) > 0)
            {
                int l = 0;
                int i1 = 0;
                byte abyte0[] = new byte[k];
                for(; i1 != k && l != -1; i1 += l)
                    l = inputstream.read(abyte0, i1, k - i1);

                if((s6 = (new String(abyte0)).trim()).equals(String.valueOf(-101)))
                    s6 = null;
            }
        }

        try
        {
            if(outputstream != null)
                outputstream.close();
            if(inputstream != null)
                inputstream.close();
            if(httpconnection != null)
                httpconnection.close();
        }
        catch(Exception _ex) { }
         }
        catch (Exception _ex)
        {
        //break MISSING_BLOCK_LABEL_439;
        //JVM INSTR pop ;
        s6 = null;
        try
        {
            if(outputstream != null)
                outputstream.close();
            if(inputstream != null)
                inputstream.close();
            if(httpconnection != null)
                httpconnection.close();
        }
        catch(Exception _ex2) { }
        }
        //break MISSING_BLOCK_LABEL_439;
        //Exception exception;
        //exception;
        try
        {
            if(outputstream != null)
                outputstream.close();
            if(inputstream != null)
                inputstream.close();
            if(httpconnection != null)
                httpconnection.close();
        }
        catch(Exception _ex) { return null;}
        //throw exception;
        return s6;
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -