亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? connection.java

?? 一個木馬程序源碼
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
  void newFolder(String newName) throws IOException  {   /**    *  Indicates to the server that a new  folder with name    *  newName should be created    */     encryptAndWrite("NEWFOLDER\n"+newName.trim()+"\n");    readAndDecrypt();    if (!in.readLine().equals("OK")) throw new IOException();  }       void renameFolder(String passedFolderName, String newName) throws IOException  {   /**    *  Indicates to the server that the folder indicated by    *  passedFolderName should be renamed newName    */    encryptAndWrite("RENAMEFOLDER\n"+passedFolderName.trim()+"\n"+newName.trim()+"\n");    readAndDecrypt();    if (!in.readLine().equals("OK")) throw new IOException();    if (folderName.equals(passedFolderName)) folderName = newName;  }  void openFolder(String passedFolderName) throws IOException  {   /**    *   Retrieves information on the messages in a folder from the server    *       folderName is set to passedFolderName.    *        Currently open folder is folderName.    *        numberOfMessages is set to the number of messages in      *          the currently open folder.    *        numberOfUnreadMessages is set to the number of unread     *          messages in the currently open folder.    *        messageIDArray, subjectArray, fromArray, readArray are      *          set for the messages in the currently open folder.    */        encryptAndWrite("LISTMESSAGES\n"+passedFolderName.trim()+"\n");    readAndDecrypt();    if (!in.readLine().equals("OK")) throw new IOException();    folderName = passedFolderName.trim();    numberOfMessages = Integer.parseInt(in.readLine());    messageIDArray = new int[numberOfMessages];    subjectArray = new String[numberOfMessages];    fromArray = new String[numberOfMessages];    toArray = new String[numberOfMessages];    readArray = new boolean[numberOfMessages];    dateArray = new String[numberOfMessages];    messageSizeArray = new int[numberOfMessages];       for (int x=0;x<numberOfMessages;x++)    {       messageIDArray[x] = Integer.parseInt(in.readLine());      readArray[x] = (Integer.parseInt(in.readLine())==1);      subjectArray[x] = in.readLine();      fromArray[x] = in.readLine();      toArray[x] = in.readLine()+"";      dateArray[x] = in.readLine();      messageSizeArray[x] = Integer.parseInt(in.readLine());    }  }  void deleteMessage(int passedMessageID) throws IOException  {   /**    *  Indicates to the server to remove a message from    *  the currently open folder    */    encryptAndWrite("DELETEMESSAGE\n"+folderName+"\n"+String.valueOf(passedMessageID)+"\n");    readAndDecrypt();    if (!in.readLine().equals("OK")) throw new IOException();   }  void moveMessage(int messageID, String passedFolderName) throws IOException  {   /**    *      Indicates to the server to move a message from the      *      currently open folder to the folder indicated by    *      passedFolderName     */         encryptAndWrite("MOVEMESSAGE\n"+folderName +"\n"+String.valueOf(messageID)+        "\n"+passedFolderName.trim()+"\n");       readAndDecrypt();      if (!in.readLine().equals("OK")) throw new IOException();  }    /**   * Retrieves message from the server:   *    messageID is set to passedMessageID.   *        date, subject, from, replyTo, to, cc, body are set to    *          the corresponding fields from the message in the    *          currently open folder with messageID equal to   *          passedMessageID.    *   */  void getMessage(int passedMessageID) throws IOException  {    /* Clear old message info     */       messageID = passedMessageID;    date="";    subject="";    to="";     from="";    replyTo="";    cc="";    bcc="";    /*  This field contains information on the message's encryption.  For example it may contain     *  an encrypted key that is used to symmetrically encrypt the actual message, or it may     *  indicated that the message body is symmetrically encrypted directly with the user's passphrase     */     String encryption="";    String keyblock="";    body="";    actualbody="";    wasRewritten = false;      encryptAndWrite("GETMESSAGE\n"+folderName+"\n"+String.valueOf(passedMessageID)+"\n");    readAndDecrypt();    if (!in.readLine().equals("OK")) throw new IOException();    int lengthOfMessage = Integer.parseInt(in.readLine());    /* Message must be converted to bytes to get around     * problems with string reading in Java 1.0     */    byte[] messageBytes = new byte[lengthOfMessage];    in.read(messageBytes);    DataInputStream messageParser = new DataInputStream(new ByteArrayInputStream(messageBytes));     String line;           //  Determine whether message is encrypted    boolean encrypted = false;     String eTo = "";    String eCc = "";    String eBcc = "";    String lastField = new String();    while ((line=messageParser.readLine())!=null)      if (line.length()>4)       {        header=line.trim()+"\n";        break;      }    /* This loop parses out header fields     * and compensates for header modifications necessary     * in encrypted messages     */     while ((line=messageParser.readLine())!=null)    {      if (line.length()==0) break;      else       {       /* A string representing the complete header        * accessed if user wants to see full header        */        header=header+line+"\n";       /* Concatenate information from wrapped header fields        */        if (line.regionMatches(0," ",0,1))        {           if (lastField.equals("to")) to=to+line.trim();          else if (lastField.equals("cc")) cc=cc+line.trim();          else if (lastField.equals("bcc")) bcc=bcc+line.trim();          else if (lastField.equals("eTo")) eTo=eTo+line.trim();          else if (lastField.equals("eCc")) eCc=eCc+line.trim();          else if (lastField.equals("eBcc")) eBcc=eBcc+line.trim();          else if (lastField.equals("date")) date=date+line.trim();          else if (lastField.equals("subject")) subject=subject+line.trim();          else if (lastField.equals("replyTo")) replyTo=replyTo+line.trim();          else if (lastField.equals("encryption")) encryption=encryption+line.trim();          else if (lastField.equals("keyblock")) keyblock=keyblock+line.trim();        }        else if (line.regionMatches(0,"From:",0,5))         {          from=line.substring(5).trim();          lastField = "from";        }        else if (line.regionMatches(0,"Date:",0,5))         {          date=line.substring(5).trim();          lastField = "date";        }        else if (line.regionMatches(0,"To:",0,3))         {          to=line.substring(3).trim();          lastField = "to";        }        else if (line.regionMatches(0,"Cc:",0,3))         {          cc=line.substring(3).trim();          lastField = "cc";	}         else if (line.regionMatches(0,"Bcc:",0,4))         {          bcc=line.substring(4).trim();          lastField = "bcc";	}        /* E-cc is used to store Cc information in encrypted messages         * which can have no Cc field          */         else if (line.regionMatches(0,"E-Bcc:",0,6))         {          eBcc=line.substring(6).trim();          lastField = "eBcc";        }         /* E-to overrides To in encrypted messages          */        else if (line.regionMatches(0,"E-To:",0,5))         {          eTo=eTo+line.substring(5).trim();          lastField = "eTo";        }        /* E-cc is used to store Cc information in encrypted messages         * which can have no Cc field          */        else if (line.regionMatches(0,"E-Cc:",0,5))         {          eCc=line.substring(5).trim();          lastField = "eCc";        }         else if (line.regionMatches(0,"Subject:",0,8))         {          subject=line.substring(8).trim();          lastField = "subject";        }         else if (line.regionMatches(0,"Reply-To:",0,9))         {          replyTo=line.substring(9).trim();          lastField = "replyTo";        }          else if (line.regionMatches(0,"Hush-encryption:",0,16))         {          encrypted = true;          encryption=line.substring(17).trim();          lastField = "encryption";        }         else if (line.regionMatches(0,"Hush-keyblock:",0,14))        {          keyblock = line.substring(15).trim();          lastField = "keyblock";        }         else lastField = "";         }    }  // end while (line) loop    if (encrypted) to="";    if (eTo.length()>0) to=eTo;    if (eCc.length()>0) cc=eCc;    if (eBcc.length()>0) bcc=eBcc;    StringBuffer bodyBuffer = new StringBuffer();    while ((line=messageParser.readLine())!=null)    {      bodyBuffer.ensureCapacity(bodyBuffer.length()+line.length());      bodyBuffer = bodyBuffer.append(line + "\n");    }    body = bodyBuffer.toString();          to=wrap(to,true,false);    cc=wrap(cc,true,false);    bcc=wrap(bcc,true,false);    replyTo=wrap(replyTo,true,false);    subject=wrap(subject,true,false);    actualbody = body;    if (encrypted)    {      if (!folderName().equals("drafts"))         hushApplet.statusBar(spaces+"This message was sent securely"+spaces);       /* The body of the message should be decrypted here       * using the variable 'body' and the information stored in       * the variable 'encryption'       */       byte[] bodyBytes = new byte[body.length()];      body.getBytes(0,body.length(),bodyBytes,0);      DataInputStream parseBody = new DataInputStream(new ByteArrayInputStream(bodyBytes));      StringBuffer encBodyBuf = new StringBuffer();      String bodyHash = "";      boolean inCipher = false;      String i;      while ((i = parseBody.readLine())!=null)      {        i = i.trim();        if (i.equals("----- HushMail v1.0 -----")) inCipher=true;        else if (i.regionMatches(0,"-",0,1))        {          bodyHash = i.substring(1);          break;        }        else if (inCipher)         {          encBodyBuf.ensureCapacity(encBodyBuf.length()+i.length());          encBodyBuf.append(i);        }      }      byte[] encKeyblock = Conversions.hexStringToBytes(keyblock);      byte[] plainKey = new byte[16];               byte[] keyHash = new byte[20];      byte[] bodyKeyAndHash = new byte[36];       /* Decrypt bodykey based on information included in "Encryption:" header        */      if (encryption.equals("Hush Private 1.0")) bodyKeyAndHash = passCipher.decrypt(encKeyblock);      else if (encryption.equals("Hush Public 1.0"))       {        /*  Make sure everything is wiped after private key is decrypted and used         */        byte[] privKey = passCipher.decrypt(encPrivKey);        ElGamalCipher privKeyCipher = new ElGamalCipher();        privKeyCipher.setPrivateKey(privKey);        bodyKeyAndHash = privKeyCipher.hushDecrypt(encKeyblock,36);        for (int x=0;x<privKey.length;x++) privKey[x]=0;        privKeyCipher.setPrivateKey(privKey);        privKey=null;        privKeyCipher=null;      }      System.arraycopy(bodyKeyAndHash,0,plainKey,0,16);      System.arraycopy(bodyKeyAndHash,16,keyHash,0,20);      if (keyHash.length!=20) hushApplet.statusBar(spaces+"Wrong hash length.  Message may not be valid."+spaces);      else      {        if (!Conversions.bytesToHexString(keyHash).equals(Conversions.bytesToHexString(new HushSHA1().SHA1Hash(plainKey)))) hushApplet.statusBar(spaces+"Hash failed.  Message may not be valid"+spaces);      }      BlowfishCipher bodyCipher = new BlowfishCipher();      bodyCipher.setKey(plainKey);      body = bodyCipher.stringDecrypt(Conversions.hexStringToBytes(encBodyBuf.toString()));      if (bodyHash.length()!=40)         hushApplet.statusBar(spaces+"Wrong hash length.  Message may not be valid."+spaces);      {        if (!bodyHash.equals(Conversions.bytesToHexString(new HushSHA1().SHA1Hash(body))))           hushApplet.statusBar(spaces+"Hash failed.  Message may not be valid"+spaces);      }      if (encryption.equals("Hush Public 1.0"))      {                String newKeyblock = "Hush-keyblock: "+Conversions.bytesToHexString(passCipher.encrypt(bodyKeyAndHash))+"\n";        StringBuffer newMessageBuf = new StringBuffer();        boolean inKeyblock = false;        boolean foundHeader = false;        boolean statusFieldFound = false;        messageParser.reset();        while ((line=messageParser.readLine())!=null)        {          newMessageBuf.ensureCapacity(newMessageBuf.length()+line.length());          if (line.regionMatches(0,"From ",0,5)) foundHeader=true;          if (line.trim().length()==0 && !statusFieldFound && foundHeader)	  {            statusFieldFound = true;            newMessageBuf.append("Status: RO\n");          }          if (line.regionMatches(0,"Hush-encryption:",0,16)) newMessageBuf.append("Hush-encryption: Hush Private 1.0\n");          else if (line.regionMatches(0,"Hush-keyblock:",0,14))          {            inKeyblock = true;            newMessageBuf.append(wrap(newKeyblock,false,true));          }          else if (line.regionMatches(0,"Status:",0,7))	  {            inKeyblock = false;            newMessageBuf.append("Status: RO\n");          }          else if (!line.regionMatches(0," ",0,1)&&inKeyblock)          {            inKeyblock = false;            newMessageBuf.append(line + "\n");          }          else if (!inKeyblock) newMessageBuf.append(line + "\n");         }        deleteMessage(messageID);        String newMessage = newMessageBuf.toString();        encryptAndWrite("SAVEMESSAGE\n" + folderName + "\n" + String.valueOf(newMessage.length()) + "\n" + newMessage);        readAndDecrypt();        if (!in.readLine().equals("OK")) throw new IOException();        wasRewritten = true;      }     }    else     {      if (!folderName().equals("drafts"))         hushApplet.statusBar(spaces+"This message was NOT sent securely"+spaces);      else hushApplet.statusBar(spaces+"This message was NOT saved securely"+spaces);    }    body = wrap(body,true,false);  }  void sendPlainMessage(String header, String body, boolean saveToSent)    throws IOException  {    String message = new String(header+"\n"+body);    if (saveToSent)     {      String firstLine =  "From "+emailAddress()+"  "+new Date().toString()+"\n";      encryptAndWrite("SAVEMESSAGE\nsent\n"+String.valueOf(firstLine.length()+message.length())+"\n"+firstLine+message);      readAndDecrypt();      if (!in.readLine().equals("OK")) throw new IOException();    }    encryptAndWrite("SENDMESSAGE\n"+String.valueOf(message.length())+"\n"+message);    readAndDecrypt();    if (!in.readLine().equals("OK")) throw new IOException();  }  /**   *  Send a formatted message to the server.   *   NOTE!!  Line wraps in header will be done on server side!!   */  boolean sendEncryptedMessage(String[] recipients, String[] headers, String body, boolean save, String saveFolder) throws IOException  {    /* Returns true if all recipients are vaild HushMail users.     */    /* Get the public keys     */          String[] pubKeys = new String[recipients.length];       for (int x=0;x<recipients.length;x++)    {      if (!recipients[x].equals(username)&&!recipients[x].equals("/self/"))      {        hushApplet.statusBar(spaces+"Retrieving public key for "+recipients[x]+spaces);        encryptAndWrite("GETPUBLICKEY\n"+recipients[x]+"\n");        readAndDecrypt();        if (!in.readLine().equals("OK")) throw new IOException();                if (in.readLine().equals("APPROVED")) pubKeys[x] = in.readLine().trim();        else         {          hushApplet.statusBar (spaces+"No such user: "+recipients[x]+spaces);          return false;        }

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产电影精品久久禁18| 亚洲国产日日夜夜| 一级日本不卡的影视| 亚洲高清在线视频| 久久av中文字幕片| 成人美女视频在线看| 91久久线看在观草草青青| 91超碰这里只有精品国产| 久久综合久久久久88| 一区在线观看视频| 丝袜诱惑亚洲看片| 成人久久18免费网站麻豆| 欧美日韩综合一区| 久久久久久免费网| 亚洲va国产天堂va久久en| 激情文学综合网| 色婷婷久久久久swag精品| 欧美日韩国产另类一区| 欧美韩日一区二区三区| 日产精品久久久久久久性色| 国产经典欧美精品| 欧美日韩免费一区二区三区| 久久久久久日产精品| 亚洲国产婷婷综合在线精品| 国产制服丝袜一区| 欧美伊人久久久久久久久影院| 精品国产伦理网| 亚洲午夜精品在线| 国产成人综合在线| 欧美一区二区三区在线观看 | 午夜影院久久久| 国产精品一级片| 911精品国产一区二区在线| 最新成人av在线| 国产又粗又猛又爽又黄91精品| 欧美系列日韩一区| 中文字幕欧美日本乱码一线二线| 视频一区在线视频| av成人免费在线| 久久伊人中文字幕| 日本女人一区二区三区| 91最新地址在线播放| 久久久www成人免费无遮挡大片| 亚洲图片欧美视频| heyzo一本久久综合| 国产亚洲成aⅴ人片在线观看| 午夜精品成人在线视频| 91麻豆国产香蕉久久精品| 久久久91精品国产一区二区精品| 日韩不卡手机在线v区| 91黄色激情网站| 国产精品国产三级国产有无不卡 | 欧美一区二区三区色| 亚洲男人天堂av| 成人黄色av电影| 国产欧美一区二区精品仙草咪| 美女尤物国产一区| 欧美精品 国产精品| 亚洲一区二区三区四区五区中文 | 亚洲日本在线观看| proumb性欧美在线观看| 久久精品亚洲乱码伦伦中文| 精品无码三级在线观看视频| 91精品国产免费| 一区二区在线观看免费| 色哟哟一区二区| 国产精品青草久久| 丰满少妇久久久久久久| 国产婷婷一区二区| 国产91对白在线观看九色| 国产欧美一区二区三区鸳鸯浴| 国产一区二区导航在线播放| 精品国产乱码久久久久久久 | 国产欧美一区二区三区在线看蜜臀| 狠狠色狠狠色综合日日91app| 欧美一区二区人人喊爽| 亚洲一区二区视频在线观看| 欧美三级资源在线| 丝袜美腿亚洲综合| 日韩欧美一级二级三级久久久| 精品中文字幕一区二区| 久久伊人中文字幕| 国产精品一区二区久久精品爱涩| 久久久久久久久久久电影| 国产成人精品网址| 亚洲欧洲美洲综合色网| 一本大道综合伊人精品热热| 亚洲一区二区三区在线看| 在线观看91精品国产麻豆| 欧美日韩久久一区二区| 亚洲电影在线播放| 欧美一区二区在线不卡| 激情六月婷婷久久| 中文字幕欧美日韩一区| 91久久精品网| 香蕉影视欧美成人| 精品sm在线观看| 成人网在线播放| 一区二区高清视频在线观看| 欧美丰满少妇xxxxx高潮对白 | 久久久国产精品不卡| 岛国精品在线播放| 亚洲欧美一区二区三区久本道91| 欧美私模裸体表演在线观看| 另类小说综合欧美亚洲| 国产精品麻豆欧美日韩ww| 欧美日韩在线播放一区| 久久精品国产久精国产爱| 国产午夜亚洲精品午夜鲁丝片| 91香蕉视频mp4| 三级亚洲高清视频| 欧美国产日本视频| 欧美午夜一区二区三区| 久久精品999| 亚洲欧洲av另类| 日韩免费观看高清完整版 | 中文字幕不卡在线播放| 色视频成人在线观看免| 玖玖九九国产精品| 国产精品护士白丝一区av| 欧美精品tushy高清| 成人黄色电影在线| 日韩精品电影在线观看| 国产精品全国免费观看高清| 制服丝袜成人动漫| 成人动漫在线一区| 午夜精品免费在线| 日本一区二区三区免费乱视频| 欧美亚洲动漫制服丝袜| 国产精品一区二区在线观看不卡| 亚洲综合免费观看高清完整版在线| 精品国产一区二区三区av性色| 91欧美一区二区| 精品一区二区三区免费播放| 亚洲欧美另类小说视频| 精品av久久707| 在线欧美日韩精品| 国产不卡视频在线观看| 日韩av一区二区三区| 中文字幕一区视频| 精品久久一二三区| 欧美亚洲一区三区| 成人精品一区二区三区四区| 午夜欧美视频在线观看| 中文字幕永久在线不卡| 久久丝袜美腿综合| 777精品伊人久久久久大香线蕉| 99久久精品久久久久久清纯| 麻豆91精品视频| 亚洲韩国精品一区| 国产精品传媒在线| 国产午夜精品一区二区三区嫩草 | 亚洲午夜精品17c| 自拍偷拍国产精品| 国产日韩精品一区二区浪潮av| 这里只有精品99re| 欧美影院午夜播放| av在线这里只有精品| 国产精品一区二区久久不卡 | 国产亚洲福利社区一区| 日韩欧美一区在线| 欧美另类videos死尸| 97精品久久久午夜一区二区三区| 韩国三级电影一区二区| 免费欧美在线视频| 人禽交欧美网站| 午夜精品久久久久久久99樱桃| 亚洲三级电影网站| 一区在线中文字幕| 中文字幕在线不卡一区| 国产精品女主播av| 国产精品入口麻豆九色| 国产欧美综合在线观看第十页| 精品剧情在线观看| www欧美成人18+| 精品国产乱码久久久久久久久 | 老鸭窝一区二区久久精品| 亚州成人在线电影| 亚洲动漫第一页| 亚洲成人综合视频| 五月开心婷婷久久| 午夜精品视频在线观看| 午夜日韩在线电影| 日韩福利电影在线观看| 日韩精品欧美精品| 日韩高清中文字幕一区| 免费在线成人网| 久久精品国产亚洲一区二区三区 | 久久无码av三级| 久久精品夜色噜噜亚洲aⅴ| 欧美精品一区男女天堂| 国产三级一区二区| 国产欧美一区二区精品性色| 国产精品盗摄一区二区三区| 亚洲视频一区二区免费在线观看| 亚洲日本免费电影| 午夜欧美一区二区三区在线播放| 日韩va欧美va亚洲va久久| 久久国内精品自在自线400部| 国产乱子轮精品视频|