Jump to content

Recommended Posts

Posted (edited)

Code geia password changer manager.  [ gia l2jfrozen. ]

L2PasswordChangerInstance.java

package com.l2jfrozen.gameserver.model.actor.instance;

import com.l2jfrozen.crypt.Base64;
import com.l2jfrozen.gameserver.ai.CtrlIntention;
import com.l2jfrozen.gameserver.ai.L2CharacterAI;
import com.l2jfrozen.gameserver.network.serverpackets.ActionFailed;
import com.l2jfrozen.gameserver.network.serverpackets.LeaveWorld;
import com.l2jfrozen.gameserver.network.serverpackets.MyTargetSelected;
import com.l2jfrozen.gameserver.network.serverpackets.NpcHtmlMessage;
import com.l2jfrozen.gameserver.network.serverpackets.ValidateLocation;
import com.l2jfrozen.gameserver.templates.L2NpcTemplate;
import com.l2jfrozen.util.database.L2DatabaseFactory;
import java.security.MessageDigest;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.StringTokenizer;
import java.util.logging.Logger;
import javolution.text.TextBuilder;

public class L2PasswordChangerInstance extends L2FolkInstance
{
  public L2PasswordChangerInstance(int objectId, L2NpcTemplate template)
  {
    super(objectId, template);
  }

  public void onBypassFeedback(L2PcInstance player, String command)
  {
    if (command.startsWith("change_password"))
    {
      StringTokenizer st = new StringTokenizer(command);
      st.nextToken();
      String currPass = null;
      String newPass = null;
      String repeatNewPass = null;
      try
      {
        if (st.hasMoreTokens())
        {
          currPass = st.nextToken();
          newPass = st.nextToken();
          repeatNewPass = st.nextToken();
        }
        else
        {
          player.sendMessage("Please fill in all the blanks before requesting for a password change.");
          return;
        }
        changePassword(currPass, newPass, repeatNewPass, player);
      }
      catch (StringIndexOutOfBoundsException localStringIndexOutOfBoundsException)
      {
      }
    }
  }

  public void onAction(L2PcInstance player)
  {
    if (!canTarget(player)) {
      return;
    }

    if (this != player.getTarget())
    {
      player.setTarget(this);

      player.sendPacket(new MyTargetSelected(getObjectId(), 0));

      player.sendPacket(new ValidateLocation(this));
    }
    else if (!canInteract(player))
    {
      player.getAI().setIntention(CtrlIntention.AI_INTENTION_INTERACT, this);
    }
    else
    {
      showHtmlWindow(player);
    }

    player.sendPacket(new ActionFailed());
  }

  private void showHtmlWindow(L2PcInstance activeChar)
  {
    NpcHtmlMessage nhm = new NpcHtmlMessage(5);
    TextBuilder replyMSG = new TextBuilder("");

    replyMSG.append("<html><title>L2Kasayka Account Manager</title>");
    replyMSG.append("<body><center>");
    replyMSG.append("To change your password:<br1> First fill in your current password and then your new!</font><br>");
    replyMSG.append("Current Password: <edit var=\"cur\" width=100 height=15><br>");
    replyMSG.append("New Password: <edit var=\"new\" width=100 height=15><br>");
    replyMSG.append("Repeat New Password: <edit var=\"repeatnew\" width=100 height=15><br><br>");
    replyMSG.append("<button value=\"Change Password\" action=\"bypass -h npc_" + getObjectId() + "_change_password $cur $new $repeatnew\" width=204 height=20 back=\"sek.cbui75\" fore=\"sek.cbui75\">");
    replyMSG.append("</center></body></html>");

    nhm.setHtml(replyMSG.toString());
    activeChar.sendPacket(nhm);

    activeChar.sendPacket(new ActionFailed());
  }

  public static boolean changePassword(String currPass, String newPass, String repeatNewPass, L2PcInstance activeChar)
  {
    if (newPass.length() < 5)
    {
      activeChar.sendMessage("The new password is too short!");
      return false;
    }
    if (newPass.length() > 20)
    {
      activeChar.sendMessage("The new password is too long!");
      return false;
    }
    if (!newPass.equals(repeatNewPass))
    {
      activeChar.sendMessage("Repeated password doesn't match the new password.");
      return false;
    }

    Connection con = null;
    String password = null;
    try
    {
      MessageDigest md = MessageDigest.getInstance("SHA");
      byte[] raw = currPass.getBytes("UTF-8");
      raw = md.digest(raw);
      String currPassEncoded = Base64.encodeBytes(raw);

      con = L2DatabaseFactory.getInstance().getConnection();
      PreparedStatement statement = con.prepareStatement("SELECT password FROM accounts WHERE login=?");
      statement.setString(1, activeChar.getAccountName());
      ResultSet rset = statement.executeQuery();
      while (rset.next())
      {
        password = rset.getString("password");
      }
      rset.close();
      statement.close();
      byte[] password2 = (byte[])
        null;
      if (currPassEncoded.equals(password))
      {
        password2 = newPass.getBytes("UTF-8");
        password2 = md.digest(password2);

        PreparedStatement statement2 = con.prepareStatement("UPDATE accounts SET password=? WHERE login=?");
        statement2.setString(1, Base64.encodeBytes(password2));
        statement2.setString(2, activeChar.getAccountName());
        statement2.executeUpdate();
        statement2.close();

        activeChar.sendMessage("Congratulations! Your password has been changed succesfully. You will now be disconnected for security reasons. Please login again!");
        try
        {
          Thread.sleep(3000L);
        }
        catch (Exception localException1)
        {
        }

        activeChar.deleteMe();

        activeChar.sendPacket(new LeaveWorld());
      }
      else
      {
        activeChar.sendMessage("The current password you've inserted is incorrect! Please try again!");

        return password2 != null;
      }
    }
    catch (Exception e)
    {
      _log.warning("could not update the password of account: " + activeChar.getAccountName());
    }
    finally
    {
      try
      {
        if (con != null)
          con.close();
      }
      catch (SQLException e)
      {
        _log.warning("Failed to close database connection!");
      }
    }
    try
    {
      if (con != null)
        con.close();
    }
    catch (SQLException e)
    {
      _log.warning("Failed to close database connection!");
    }

    return true;
  }
}

RequestBypassToServer.java 
 

package com.l2jfrozen.gameserver.network.clientpackets;

import com.l2jfrozen.Config;
import com.l2jfrozen.gameserver.ai.CtrlIntention;
import com.l2jfrozen.gameserver.ai.L2CharacterAI;
import com.l2jfrozen.gameserver.communitybbs.CommunityBoard;
import com.l2jfrozen.gameserver.datatables.sql.AdminCommandAccessRights;
import com.l2jfrozen.gameserver.handler.AdminCommandHandler;
import com.l2jfrozen.gameserver.handler.IAdminCommandHandler;
import com.l2jfrozen.gameserver.handler.custom.CustomBypassHandler;
import com.l2jfrozen.gameserver.managers.CastleManager;
import com.l2jfrozen.gameserver.model.L2Object;
import com.l2jfrozen.gameserver.model.L2World;
import com.l2jfrozen.gameserver.model.actor.instance.L2ClassMasterInstance;
import com.l2jfrozen.gameserver.model.actor.instance.L2NpcInstance;
import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
import com.l2jfrozen.gameserver.model.actor.instance.L2SymbolMakerInstance;
import com.l2jfrozen.gameserver.model.actor.instance.L2PasswordChangerInstance;
import com.l2jfrozen.gameserver.model.actor.position.L2CharPosition;
import com.l2jfrozen.gameserver.model.entity.event.CTF;
import com.l2jfrozen.gameserver.model.entity.event.DM;
import com.l2jfrozen.gameserver.model.entity.event.L2Event;
import com.l2jfrozen.gameserver.model.entity.event.TvT;
import com.l2jfrozen.gameserver.model.entity.event.VIP;
import com.l2jfrozen.gameserver.model.entity.olympiad.Olympiad;
import com.l2jfrozen.gameserver.model.entity.siege.Castle;
import com.l2jfrozen.gameserver.network.L2GameClient;
import com.l2jfrozen.gameserver.network.serverpackets.ActionFailed;
import com.l2jfrozen.gameserver.network.serverpackets.NpcHtmlMessage;
import com.l2jfrozen.gameserver.network.serverpackets.SiegeInfo;
import com.l2jfrozen.gameserver.util.FloodProtectorAction;
import com.l2jfrozen.gameserver.util.FloodProtectors;
import com.l2jfrozen.gameserver.util.GMAudit;
import java.util.logging.Level;
import java.util.logging.Logger;

public final class RequestBypassToServer extends L2GameClientPacket
{
  private static Logger _log = Logger.getLogger(RequestBypassToServer.class.getName());
  private String _command;

  protected void readImpl()
  {
    this._command = readS();
  }

  protected void runImpl()
  {
    L2PcInstance activeChar = ((L2GameClient)getClient()).getActiveChar();

    if (activeChar == null) {
      return;
    }
    if (!((L2GameClient)getClient()).getFloodProtectors().getServerBypass().tryPerformAction(this._command)) {
      return;
    }

    try
    {
      if (this._command.startsWith("admin_"))
      {
        String command;
        String command;
        if (this._command.indexOf(" ") != -1)
        {
          command = this._command.substring(0, this._command.indexOf(" "));
        }
        else
        {
          command = this._command;
        }

        IAdminCommandHandler ach = AdminCommandHandler.getInstance().getAdminCommandHandler(command);

        if (ach == null)
        {
          if (activeChar.isGM())
          {
            activeChar.sendMessage("The command " + command + " does not exists!");
          }

          _log.warning("No handler registered for admin command '" + command + "'");
          return;
        }

        if (!AdminCommandAccessRights.getInstance().hasAccess(command, activeChar.getAccessLevel()))
        {
          activeChar.sendMessage("You don't have the access right to use this command!");
          if (Config.DEBUG)
          {
            _log.warning("Character " + activeChar.getName() + " tried to use admin command " + command + ", but doesn't have access to it!");
          }
          return;
        }

        if (Config.GMAUDIT)
        {
          GMAudit.auditGMAction(activeChar.getName() + " [" + activeChar.getObjectId() + "]", command, activeChar.getTarget() != null ? activeChar.getTarget().getName() : "no-target", this._command.replace(command, ""));
        }

        ach.useAdminCommand(this._command, activeChar);
      }
      else if ((this._command.equals("come_here")) && (activeChar.isGM()))
      {
        comeHere(activeChar);
      }
      else if (this._command.startsWith("player_help "))
      {
        playerHelp(activeChar, this._command.substring(12));
      }
      else if (this._command.startsWith("siege_aden"))
      {
        Castle castle = CastleManager.getInstance().getCastleById(5);
        if (castle != null)
          sendPacket(new SiegeInfo(castle));
      }
      else if (this._command.startsWith("siege_giran"))
      {
        Castle castle = CastleManager.getInstance().getCastleById(3);
        if (castle != null)
          sendPacket(new SiegeInfo(castle));
      }
      else if (this._command.startsWith("siege_goddard"))
      {
        Castle castle = CastleManager.getInstance().getCastleById(7);
        if (castle != null)
          sendPacket(new SiegeInfo(castle));
      }
      else if (this._command.startsWith("siege_rune"))
      {
        Castle castle = CastleManager.getInstance().getCastleById(8);
        if (castle != null)
          sendPacket(new SiegeInfo(castle));
      }
      else if (this._command.startsWith("siege_shuttgart"))
      {
        Castle castle = CastleManager.getInstance().getCastleById(9);
        if (castle != null)
          sendPacket(new SiegeInfo(castle));
      }
      else if (this._command.startsWith("siege_oren"))
      {
        Castle castle = CastleManager.getInstance().getCastleById(4);
        if (castle != null)
          sendPacket(new SiegeInfo(castle));
      }
      else if (this._command.startsWith("siege_dion"))
      {
        Castle castle = CastleManager.getInstance().getCastleById(2);
        if (castle != null)
          sendPacket(new SiegeInfo(castle));
      }
      else if (this._command.startsWith("siege_gludio"))
      {
        Castle castle = CastleManager.getInstance().getCastleById(1);
        if (castle != null)
          sendPacket(new SiegeInfo(castle));
      }
      else if (this._command.startsWith("siege_innadril"))
      {
        Castle castle = CastleManager.getInstance().getCastleById(6);
        if (castle != null) {
          sendPacket(new SiegeInfo(castle));
        }
      }
      else if (this._command.startsWith("npc_"))
      {
        if (!activeChar.validateBypass(this._command)) {
          return;
        }
        int endOfId = this._command.indexOf('_', 5);
        String id;
        String id;
        if (endOfId > 0)
        {
          id = this._command.substring(4, endOfId);
        }
        else
        {
          id = this._command.substring(4);
        }

        try
        {
          L2Object object = L2World.getInstance().findObject(Integer.parseInt(id));

          if (this._command.substring(endOfId + 1).startsWith("event_participate"))
          {
            L2Event.inscribePlayer(activeChar);
          }
          else if (this._command.substring(endOfId + 1).startsWith("tvt_player_join "))
          {
            String teamName = this._command.substring(endOfId + 1).substring(16);

            if (TvT.is_joining())
            {
              TvT.addPlayer(activeChar, teamName);
            }
            else
            {
              activeChar.sendMessage("The event is already started. You can not join now!");
            }

          }
          else if (this._command.substring(endOfId + 1).startsWith("tvt_player_leave"))
          {
            if (TvT.is_joining())
            {
              TvT.removePlayer(activeChar);
            }
            else
            {
              activeChar.sendMessage("The event is already started. You can not leave now!");
            }

          }
          else if (this._command.substring(endOfId + 1).startsWith("dmevent_player_join"))
          {
            if (DM.is_joining())
              DM.addPlayer(activeChar);
            else {
              activeChar.sendMessage("The event is already started. You can't join now!");
            }
          }
          else if (this._command.substring(endOfId + 1).startsWith("dmevent_player_leave"))
          {
            if (DM.is_joining())
              DM.removePlayer(activeChar);
            else {
              activeChar.sendMessage("The event is already started. You can't leave now!");
            }
          }
          else if (this._command.substring(endOfId + 1).startsWith("ctf_player_join "))
          {
            String teamName = this._command.substring(endOfId + 1).substring(16);
            if (CTF.is_joining())
              CTF.addPlayer(activeChar, teamName);
            else {
              activeChar.sendMessage("The event is already started. You can't join now!");
            }
          }
          else if (this._command.substring(endOfId + 1).startsWith("ctf_player_leave"))
          {
            if (CTF.is_joining())
              CTF.removePlayer(activeChar);
            else {
              activeChar.sendMessage("The event is already started. You can't leave now!");
            }
          }
          if (this._command.substring(endOfId + 1).startsWith("vip_joinVIPTeam"))
          {
            VIP.addPlayerVIP(activeChar);
          }

          if (this._command.substring(endOfId + 1).startsWith("vip_joinNotVIPTeam"))
          {
            VIP.addPlayerNotVIP(activeChar);
          }

          if (this._command.substring(endOfId + 1).startsWith("vip_finishVIP"))
          {
            VIP.vipWin(activeChar);
          }

          if (this._command.substring(endOfId + 1).startsWith("event_participate"))
          {
            L2Event.inscribePlayer(activeChar);
          }
          else if (((Config.ALLOW_CLASS_MASTERS) && (Config.ALLOW_REMOTE_CLASS_MASTERS) && ((object instanceof L2ClassMasterInstance))) || (
            ((object instanceof L2NpcInstance)) && (endOfId > 0) && (activeChar.isInsideRadius(object, 150, false, false))))
          {
            ((L2NpcInstance)object).onBypassFeedback(activeChar, this._command.substring(endOfId + 1));
          }

          activeChar.sendPacket(ActionFailed.STATIC_PACKET);
        }
        catch (NumberFormatException nfe)
        {
          if (!Config.ENABLE_ALL_EXCEPTIONS) return; 
        }nfe.printStackTrace();
      }
      else if (this._command.equals("Draw"))
      {
        L2Object object = activeChar.getTarget();
        if ((object instanceof L2NpcInstance))
        {
          ((L2SymbolMakerInstance)object).onBypassFeedback(activeChar, this._command);
        }
      }
      else if (this._command.equals("RemoveList"))
      {
        L2Object object = activeChar.getTarget();
        if ((object instanceof L2NpcInstance))
        {
          ((L2SymbolMakerInstance)object).onBypassFeedback(activeChar, this._command);
        }
      }
      else if (this._command.equals("Remove "))
      {
        L2Object object = activeChar.getTarget();

        if ((object instanceof L2NpcInstance))
        {
          ((L2SymbolMakerInstance)object).onBypassFeedback(activeChar, this._command);
        }

      }
      else if (this._command.startsWith("manor_menu_select?"))
      {
        L2Object object = activeChar.getTarget();
        if ((object instanceof L2NpcInstance))
        {
          ((L2NpcInstance)object).onBypassFeedback(activeChar, this._command);
        }
      }
      else if (this._command.startsWith("bbs_"))
      {
        CommunityBoard.getInstance().handleCommands((L2GameClient)getClient(), this._command);
      }
      else if (this._command.startsWith("_bbs"))
      {
        CommunityBoard.getInstance().handleCommands((L2GameClient)getClient(), this._command);
      }
      else if (this._command.startsWith("Quest "))
      {
        if (!activeChar.validateBypass(this._command)) {
          return;
        }
        L2PcInstance player = ((L2GameClient)getClient()).getActiveChar();
        if (player == null) {
          return;
        }
        String p = this._command.substring(6).trim();
        int idx = p.indexOf(' ');

        if (idx < 0)
        {
          player.processQuestEvent(p, "");
        }
        else
        {
          player.processQuestEvent(p.substring(0, idx), p.substring(idx).trim());
        }

      }
      else if (this._command.startsWith("custom_"))
      {
        L2PcInstance player = ((L2GameClient)getClient()).getActiveChar();
        CustomBypassHandler.getInstance().handleBypass(player, this._command);
      }
      else if (this._command.startsWith("OlympiadArenaChange"))
      {
        Olympiad.bypassChangeArena(this._command, activeChar);
      }
    }
    catch (Exception e)
    {
      if (Config.ENABLE_ALL_EXCEPTIONS) {
        e.printStackTrace();
      }
      _log.log(Level.WARNING, "Bad RequestBypassToServer: ", e);
    }
  }

  private void comeHere(L2PcInstance activeChar)
  {
    L2Object obj = activeChar.getTarget();
    if (obj == null) {
      return;
    }
    if ((obj instanceof L2NpcInstance))
    {
      L2NpcInstance temp = (L2NpcInstance)obj;
      temp.setTarget(activeChar);
      temp.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, new L2CharPosition(activeChar.getX(), activeChar.getY(), activeChar.getZ(), 0));
    }
  }

  private void playerHelp(L2PcInstance activeChar, String path)
  {
    if (path.indexOf("..") != -1) {
      return;
    }
    String filename = "data/html/help/" + path;
    NpcHtmlMessage html = new NpcHtmlMessage(1);
    html.setFile(filename);
    activeChar.sendPacket(html);
  }

  public String getType()
  {
    return "[C] 21 RequestBypassToServer";
  }
}
Edited by yukselkasayka123
Posted (edited)

na kanw mia erwtisi? to code to pernas se poio npc mpenei auto to code?  giati voicecommand den einai.:/

gia java-Eclipse ine auto ala an 8es mporis kai se etimo sv katevase to Eclipse kane 1 arxeio L2PasswordChangerInstance.java meta apo8ikeuse to meta eki pou apo8ike3es pare to L2PasswordChangerInstance ginomeno se L2PasswordChagerIstance.class meta pane sto pack sou gameserver/libs an exeis l2jfrozen to exei l2jfrozen-core px: an exeis l2jesios to exei l2jesios-class (ala auto to code ine gia l2jfrozen) anikse to me Winrar meta valto sto com/l2jfrozen/gameserver/model/actor/instance kai  ise etimos. :) idio kai to RequestBypassToServer.java ala 8a to valis sto com/l2jfrozen/gameserver/network/clientpackets . meta pane sto Navicat , custom_npc kane eki 1 NPC me type L2PasswordChanger pane sto in-game oti evales to id kanto //spawn kai ise etimos :)

Edited by yukselkasayka123
  • 1 year later...
Posted
   [echo] L2jFrozen Gameserver Revision: 1118M
compile:
    [javac] Compiling 825 source files to C:\****\****\workspace\trunk\gameserver\build\classes
    [javac] C:\****\****\workspace\trunk\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2PasswordChangerInstance.java:193: error: cannot find symbol
    [javac] _log.warning("could not update the password of account: " + activeChar.getAccountName());
    [javac] ^
    [javac]   symbol:   variable _log
    [javac]   location: class L2PasswordChangerInstance
    [javac] C:\****\****\workspace\trunk\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2PasswordChangerInstance.java:204: error: cannot find symbol
    [javac] _log.warning("Failed to close database connection!");
    [javac] ^
    [javac]   symbol:   variable _log
    [javac]   location: class L2PasswordChangerInstance
    [javac] 2 errors

BUILD FAILED
C:\****\****\workspace\trunk\gameserver\build.xml:65: Compile failed; see the compiler error output for details.

Total time: 4 seconds

Κανείς να Help? 

Posted
   [echo] L2jFrozen Gameserver Revision: 1118M
compile:
    [javac] Compiling 825 source files to C:\****\****\workspace\trunk\gameserver\build\classes
    [javac] C:\****\****\workspace\trunk\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2PasswordChangerInstance.java:193: error: cannot find symbol
    [javac] _log.warning("could not update the password of account: " + activeChar.getAccountName());
    [javac] ^
    [javac]   symbol:   variable _log
    [javac]   location: class L2PasswordChangerInstance
    [javac] C:\****\****\workspace\trunk\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2PasswordChangerInstance.java:204: error: cannot find symbol
    [javac] _log.warning("Failed to close database connection!");
    [javac] ^
    [javac]   symbol:   variable _log
    [javac]   location: class L2PasswordChangerInstance
    [javac] 2 errors

BUILD FAILED
C:\****\****\workspace\trunk\gameserver\build.xml:65: Compile failed; see the compiler error output for details.

Total time: 4 seconds

Κανείς να Help? 

 

kane to log.warning se  logger.info

Posted (edited)
   [echo] L2jFrozen Gameserver Revision: 1118M
compile:
    [javac] Compiling 1476 source files to C:\****\****\workspace\trunk\gameserver\build\classes
    [javac] C:\****\****\workspace\trunk\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2PasswordChangerInstance.java:193: error: cannot find symbol
    [javac] 	logger.info("could not update the password of account: " + activeChar.getAccountName());
    [javac] 	^
    [javac]   symbol:   variable logger
    [javac]   location: class L2PasswordChangerInstance
    [javac] C:\****\****\workspace\trunk\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2PasswordChangerInstance.java:204: error: cannot find symbol
    [javac] 	logger.info("Failed to close database connection!");
    [javac] 	^
    [javac]   symbol:   variable logger
    [javac]   location: class L2PasswordChangerInstance
    [javac] 2 errors

BUILD FAILED
C:\****\****\workspace\trunk\gameserver\build.xml:65: Compile failed; see the compiler error output for details.

Total time: 20 seconds

...

 

Δοκίμασα να το βγάλω και τελείως με "// " 

αλλά δεν μου κάνει change στο password in game... βγάζοντας στο cmd αυτό το error

WARN  Bad RequestBypassToServer:
java.util.NoSuchElementException
        at java.util.StringTokenizer.nextToken(Unknown Source)
        at com.l2jfrozen.gameserver.model.actor.instance.L2PasswordChangerInstan
ce.onBypassFeedback(L2PasswordChangerInstance.java:60)
        at com.l2jfrozen.gameserver.network.clientpackets.RequestBypassToServer.
runImpl(RequestBypassToServer.java:235)
        at com.l2jfrozen.gameserver.network.clientpackets.L2GameClientPacket.run
(L2GameClientPacket.java:77)
        at com.l2jfrozen.gameserver.network.L2GameClient.run(L2GameClient.java:1
213)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

Edited by pnsrx8
  • 2 months later...
Posted (edited)

dose m t skype s se pm na sto fti

file m epidei exw compile pack mipws tha mpwrouses na m peis pws na to perasw etimo to npc ida to post p eipes sto alo paidi pws na to kanei etimo sto eclipse alla poio code akrivos pernaw?? ama mpwreis plz kane me add skype Doctorgr gt exw psa3ei padou kai prwth fora vlepw enan p na leei pws ginete kai bravo sou... ama mpwreseis plz kane me add gt thelw na perasw kai kati alla npc alla den 3erw pws na ta fria3w thnx for your time btw....eisai magas :D

Edited by dekko
Posted

file m epidei exw compile pack mipws tha mpwrouses na m peis pws na to perasw etimo to npc ida to post p eipes sto alo paidi pws na to kanei etimo sto eclipse alla poio code akrivos pernaw?? ama mpwreis plz kane me add skype Doctorgr gt exw psa3ei padou kai prwth fora vlepw enan p na leei pws ginete kai bravo sou... ama mpwreseis plz kane me add gt thelw na perasw kai kati alla npc alla den 3erw pws na ta fria3w thnx for your time btw....eisai magas :D

είναι καλύτερα να πάρεις ένα Source και να κάνεις εκεί πάνω δουλειές παρά ένα Compiled, άλλο που δεν μπορείς να πειράξεις τα Java των Compilted, μόνο με Decompile και αυτό πάλι θα σε φάει το κεφάλι.

άμα έχεις l2j-frozen υπάρχουν Shares που είναι μέσο python Και όχι java! αυτοί οι δυο τρόποι θα σε σώσουν μόνο

1) python Password Manager

2) ένα καινούργιο Source για να το δουλεύεις με eclipse.

Posted

είναι καλύτερα να πάρεις ένα Source και να κάνεις εκεί πάνω δουλειές παρά ένα Compiled, άλλο που δεν μπορείς να πειράξεις τα Java των Compilted, μόνο με Decompile και αυτό πάλι θα σε φάει το κεφάλι.

άμα έχεις l2j-frozen υπάρχουν Shares που είναι μέσο python Και όχι java! αυτοί οι δυο τρόποι θα σε σώσουν μόνο

1) python Password Manager

2) ένα καινούργιο Source για να το δουλεύεις με eclipse.

Nase kala file mou eisai o prwtos meta apo 15000 post 300000 pms p m eipe kati alla ama s einai efkolo na m peis h na m di3eis kapoio tutorial pws na perasw to source xwreis na gamisw to pack p exw ftia3ei mexri twra tha me voithage ama theleis sthle m to skype sou se PM na se kanw add kai euxaristw kai pallh

Posted

Nase kala file mou eisai o prwtos meta apo 15000 post 300000 pms p m eipe kati alla ama s einai efkolo na m peis h na m di3eis kapoio tutorial pws na perasw to source xwreis na gamisw to pack p exw ftia3ei mexri twra tha me voithage ama theleis sthle m to skype sou se PM na se kanw add kai euxaristw kai pallh

το Skype μου είναι προσωπικό φίλε, συγγνώμη αλλά άμα έχεις βάλει κάτι στον Server σου είναι συγκεκριμένα Server Side που μπορείς να τα κρατήσεις και απλά να περάσεις να νεα JAR και τα νέα Config.

εδώ μπορείς να δεις ένα ολόκληρο οδηγό για το πως να κάνεις έναν Server. 

http://www.maxcheaters.com/topic/153623-compile-server-set-up-add-customs-make-online-add-java-codes-592013/

Guest
This topic is now closed to further replies.


  • Posts

    • Added the protection module to the demo.   DDoS Guard Pro v2.0 is a system protection module for PlayMMO CMS designed to reduce the load on the website during HTTP floods, bot activity, suspicious frequent requests, and attacks on individual pages or API methods. Unlike simple global limiters, DDoS Guard Pro v2.0 supports flexible rules based on routes and HTTP methods. This allows you to block the entire site in a targeted manner, rather than blocking the entire site equally. You can set up protection for specific areas of the site, such as login, registration, APIs, administration, forms, and other sensitive areas. What is the purpose of the module? DDoS Guard Pro v2.0 helps protect your site from basic L7 attacks at the HTTP request level. The module is useful when your site receives: frequent requests from a single IP address; HTTP page floods; login or registration form flooding; automatic requests from bots; URL scanning; frequent API requests; suspicious activity spikes; load on individual CMS methods or pages. The module helps to reduce the load on PHP and CMS by limiting suspicious activity before it starts to create a serious load on the site. Main features Per-route and per-method Rate Limit In the new version, protection is configured not only globally, but also according to specific rules. You can set limits separately for: GET; POST; PUT; PATCH; DELETE; ALL. This allows you to flexibly protect different parts of your website. For example: for the login page, you can set a strict limit; for registration, you can set a separate limit; for the API, you can set a limit for reading and a limit for changing data; for regular website pages, you can set a soft limit or not set a limit at all. This approach reduces the risk of accidentally blocking regular users and makes the protection more accurate. Flexible rule system The module supports setting rules in the following format: METHODS|PATTERN|LIMIT|WINDOW|BURST_LIMIT|BURST_WINDOW|BLOCK_SECONDS|IDENTITY|NAME Example of rules: POST|*login*|10|60|5|10|600|ip|login_post POST|*register*|8|60|4|10|600|ip|register_post GET|*api*|300|60|80|10|120|ip|api_get PUT,PATCH,DELETE|*api*|80|60|20|10|300|ip|api_write This allows you to specify exactly: which HTTP methods to protect; which URLs or URL patterns to consider; how many requests are allowed; over what time period; what burst limit to use;  how many seconds to block the offender;  by which ID to count the limit;  what the rule is called. Burst protection against sharp spikes  In addition to the regular request limit, the module monitors sharp spikes of activity.  This is useful when a bot makes many requests in a few seconds. In this case, the protection can be activated faster, without waiting for the overall limit per minute.  Burst protection is especially useful for: authorization pages; registration; API; search; data submission forms; administrative sections. Support for different types of requests DDoS Guard Pro v2.0 works not only with POST requests. The module can control: GET — regular pages, API requests, search; POST — forms, login, registration, data submission; PUT — updating data via API; PATCH — partial data update; DELETE — data deletion; ALL — all methods at once. This makes the module suitable not only for regular sites, but also for CMS with API, personal accounts, game panels and administrative actions. Limit storage: Redis, APCu and file fallback In the new version, the module supports several options for storing temporary data. Available modes: Redis; APCu; file fallback. The auto mode tries to use the most suitable option: Redis; APCu; file storage as a fallback. Redis or APCu are suitable for more efficient operation, while the file storage is left as a fallback option for simple hosting environments that do not have additional extensions. JSONL logging The module records protection events in JSON Lines format. Logs are saved in the following file: storage/logs/ddos_guard.jsonl This format is more convenient than a regular text log, because each event is stored as a separate JSON record. The logs can record the following information: event time; IP address; HTTP method; URL; name of the triggered rule; reason for blocking; number of requests; action status; user-agent; protection mode. The JSONL format is convenient for analysis by external tools, log agents, and monitoring systems. Prometheus metrics DDoS Guard Pro v2.0 adds an endpoint for receiving metrics in Prometheus format. Endpoint: /?ddos_guard_metrics=TOKEN The token is set in the module settings. Metrics allow you to track: the number of processed requests; the number of rule activations; the number of blocks; activity by limits; protection events; module status. This allows you to connect monitoring and configure alerts so that the administrator can see when suspicious activity starts on the site. LOG ONLY mode The module has a LOG ONLY mode. In this mode, DDoS Guard Pro does not block users, but only records events and potential triggers in the log. This mode is recommended to be used after installation, in order to first see which rules are triggered, and only then to enable the real blocking.  This helps to avoid too strict limits and random blocking of regular users.  Support for Cloudflare and proxy  The module supports working behind Cloudflare or another reverse proxy.  With proper configuration, it is possible to take into account the real IP of the user, and not the IP of the proxy server.  This is important for sites that use:  Cloudflare; nginx reverse proxy; load balancers; CDN; hosting proxy protection. Nginx-recommendations DDoS Guard Pro v2.0 contains an example nginx-config: modules/ddos_guard/nginx-ddos-guard-example.conf This allows you to use the module as an additional application layer of protection, and to move the main coarse limits to the nginx level. Recommended protection scheme: Cloudflare / nginx / firewall → DDoS Guard Pro → PlayMMO CMS This approach is more correct than trying to solve all problems only at the PHP level.
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..