- 0
question EXE lin...
-
Posts
-
Some pictures and I uplade also some interface to be tested. Interfaces to download (ofc compiled just to test): Protocol 166: https://drive.google.com/file/d/1_ZMfCJVplQg8uXnP3nn2w9OByIyKhqXV/view?usp=sharing Protocol 447 Classic: https://drive.google.com/file/d/1tG07r4GgdgCv_9IHdUROFfxe_yKqkno1/view?usp=sharing Protocol 542 Live: https://drive.google.com/file/d/1d9woGO5icCP6l9VT2tDpcqPaFtXYVGiG/view?usp=sharing Protocol 557 Live: https://drive.google.com/file/d/1s4HkuIUXtCWUO_qwZ9bX3JNjQ9VXlk6f/view?usp=sharing Protocol 557 Classic: https://drive.google.com/file/d/1xwaJh09wabvKlz80K_nbQq2JtNRnwhF-/view?usp=sharing Images:
-
By adm.l2pvpbrasil · Posted
Tem esse npc no fórum, porém sem o efeito, alguém tem pra interlúdio com o efeito? -
By Out of Time · Posted
And whats the reason posting this here? GoldMembership in 2026 in MAXC. -
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

Question
horo
Hi to all! I found an article here in the explained forum as add adena in char. I tried to make with another one procedure that I found. more it is generating an error…. could speak to me where is the error? I go to post scripts to facilitate.
precedure: lin_BetaAddItem
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
GO
/****** Object: Stored Procedure dbo.lin_BetaAddItem Script Date: 2003-09-20 ?? 11:51:56 ******/
ALTER PROCEDURE [dbo].[lin_BetaAddItem]
(
@char_id int,
@Item_type int,
@amount int
)
AS
SET NOCOUNT ON
DECLARE @tempRowCount INT
DECLARE @bIsStackable TINYINT
SELECT @bIsStackable = IsStackable FROM ITEMNAME WHERE id = @Item_type
If @bIsStackable Is NULL
Begin
RAISERROR ('Not exist Item Type', 16, 1)
End
Else
Begin
If @bIsStackable = 1
Begin
Update user_item set amount = amount + @amount where item_type = @Item_type and char_id = @char_id
Set @tempRowCount = @@ROWCOUNT
If @tempRowCount = 0
INSERT INTO user_item (char_id, item_type, amount, enchant, eroded, bless, ident, wished, warehouse) VALUES (@char_id, @Item_type, @amount, 0,0,0,0,0,0)
End
Else If @amount = 1
Begin
INSERT INTO user_item (char_id, item_type, amount, enchant, eroded, bless, ident, wished, warehouse) VALUES (@char_id, @Item_type, @amount, 0,0,0,0,0,0)
Set @tempRowCount = @@ROWCOUNT
End
Else
Begin
RAISERROR ('Amount is invalid', 16, 1)
End
End
If @tempRowCount Is NOT NULL
Select @tempRowCount
==================
script PHP
<? session_start(); $mssql_host = '127.0.0.1'; $mssql_user = 'sa'; $mssql_pass = ''; $store_cashier = array('local'=>"127.0.0.1", 'pc2'=>"192.168.0.1"); $store = ""; foreach ($store_cashier as $key=>$value) { $rip = $_SERVER['REMOTE_ADDR']; if ($rip == $value) { $store = $key; } } if ($store != "") { $_SESSION['store'] = $store; } else { die("You are not permitted to view this page, actually who gave you this url?"); } function antiinjection($str) { $banwords = array ("'", ",", ";", "--"); if ( eregi ( "[a-zA-Z0-9]+", $str ) ) { $str = str_replace ( $banwords, '', strtolower ( $str ) ); } else { $str = NULL; } return $str; } ?> <html> <head> <title>Lineage II Adena Managment</title> <style> .style1 { font-family:Verdana, Arial, Helvetica, sans-serif; font-size:14px; } .formPaneGeneral { font: normal 12pt/10px Verdana, sans-serif; background:#F2FDFF; border: 1px groove #6600FF; vertical-align: middle; } .formButtonGeneral { font: 9pt/10pt Verdana, sans-serif; color:#333333; background:#F2FDFF; border: 1px solid #666666; } .border { border: 1px groove #000000; } </style> </head> <body topmargin="150" leftmargin="0" rightmargin="0" bottommargin="0" bgcolor="#CCCCCC"> <div align="center"> <table cellpadding="0" cellspacing="0" border="1" bgcolor="#FFCC33"> <tr> <td align="center" bgcolor="#000000"> <font face="Geneva, Arial, Helvetica, sans-serif" size="+1" color="#FFFFFF">ADENA MANAGMENT</font> </td> </tr> <tr> <td> <form name="addadena" method="post" action="addadena.php"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="center" colspan="2" bgcolor="#FFCC99" class="border"> <? $error = 0; $noname = FALSE; $noamount = FALSE; if ($_POST['action']) { if ($_POST['charname']) { $character_name = antiinjection($_POST['charname']); } else { echo "<font face=\"Times New Roman, Times, serif\" color=\"#FF0000\">- Please insert a character name</font> "; $error=1; $noname = TRUE; } if ($_POST['item_type']) { $item_type = antiinjection($_POST['item_type']); } else { echo "<font face=\"Times New Roman, Times, serif\" color=\"#FF0000\">- Please insert a item id</font> "; $error=1; $noitem = TRUE; } if ($_POST['amount']) { $amount = antiinjection($_POST['amount']); } else { echo "<font face=\"Times New Roman, Times, serif\" color=\"#FF0000\">- Please insert adena amount</font> "; $error=2; $noamount = TRUE; } } if (($error == 0) && $_POST['action']) { $connection = mssql_connect($mssql_host,$mssql_user,$mssql_pass); if ($connection) { mssql_select_db('lin2world',$connection); $query = mssql_query("EXEC lin_BetaAddItem '$character_name', $item_type, $amount"); $arr = mssql_fetch_array($query); $last_msg = mssql_get_last_message(); if (empty($last_msg) && empty($arr['amount'])) { echo "<font face=\"Times New Roman, Times, serif\" color=\"#FF0000\">Account does not exists</font>"; mssql_close($connection); } else if(empty($arr['amount'])) { echo "<font face=\"Times New Roman, Times, serif\" color=\"#FF0000\">-$last_msg</font>"; mssql_close($connection); } else { echo "<font face=\"Times New Roman, Times, serif\" color=\"#0000FF\">{$amount} adena added to $character_name Total: {$arr['amount']} adena</font>"; } mssql_close($connection); } else { echo "Can't connect to the database"; } } ?> </td> </tr> <tr> <td align="right" height="30"> <span class="style1"> <? echo ($noname?"<font color=\"#FF0000\">Character Name</font>" : "Character Name"); ?></span> </td> <td align="left" width="150"> <input type="text" name="charname" size="15" maxlength="15" class="formPaneGeneral" value=<? echo ($_POST['charname'] ? $_POST['charname'] : "" ); ?> > </td> </tr> <tr> <td height="5"> </td> </tr> <tr> <td align="right" height="30"> <span class="style1"> <? echo ($noitem?"<font color=\"#FF0000\">Id Item</font>" : "Item Type"); ?></span> </td> <td align="left" width="150"> <input type="text" name="item_type" size="15" maxlength="15" class="formPaneGeneral" value=<? echo ($_POST['item_type'] ? $_POST['item_type'] : "" ); ?> > </td> </tr> <tr> <td height="5"> </td> </tr> <tr> <td align="right"> <span class="style1"><? echo ($noamount?"<font color=\"#FF0000\">Adena amount</font>" : "Adena amount"); ?></span> </td> <td align="left"> <input type="text" name="amount" size="15" maxlength="15" class="formPaneGeneral" value=<? echo ($_POST['amount'] ? $_POST['amount'] : "" ); ?>> </td> </tr> <tr> <td> </td> <td align="left" height="30"> <input type="submit" name="submit" value="Add Item" class="formButtonGeneral"> <input type="hidden" name="action" value="action"> </td> </tr> </table> </td> </tr> <tr> <td height="15" bgcolor="#000000"> </td> </tr> </table> </form> </div> </body> </html>thanks a lot to all
0 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now