ShalawHibblo

New Member
Jun 26, 2013
23
1
What happens to PlusEmu receiving zombies connections? I say this because I have proxcy http and tcp and have never lay my site and the client , but now the new way is to inject zombies connections to the emulator , so much so that sometimes get to 3400 online . And there are real connections and are thwarting my hotel , and when they reach those connections not allow anyone to connect, the client stays at 76%



What should I do? that this problem is due , if all are in and starts the attack, nobody falls or is disconnected, the website never falls only thing that happens is that nobody can enter again because the client does not exceed 76%
c6ae72d1e9d847d2abe8a56f354ce77c.png



You not see that happening ? look at the time of the connections are followed 100 connections per second . And I have put only 100 connections per IP so you can see the problem , but I've tried "game.tcp.conperip=2147483"
sEAUEYS.png


How can i fix that?
 

MayoMayn

BestDev
Oct 18, 2016
1,423
683
@Sentinel you could provide the example of loading info using ajax and then he could add bitninja to that = problem solved!
Here's an example:
PHP:
public function checkXMLHttpRequest() {
        if(empty($_SERVER['HTTP_X_REQUESTED_WITH']) ||
        strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) != "xmlhttprequest") {
           die(http_response_code(403));
        }
   }
if(isset($_GET['ajax']) && $_GET['ajax'] == "callback") {
    $core->checkXMLHttpRequest();
   if(!isset($_POST['ajax']) || $_POST['ajax'] != "data")
       die(http_response_code(403));
   echo '{"HOST": "'.$config->hotel('server_ip').'", "PORT": "'.$config->hotel('bind_tcp_port').'", "SWF": "'.$config->hotel('swf_folder').'"}';
   exit();
}
client.php
HTML:
var BaseUrl="{hotelurl}/swfs/gordon/"+SWF;
var flashvars={"connection.info.host":FUCK,"connection.info.port":OFF};

Then in your swfobject javascript file, add this:
HTML:
var g=null;
$.ajax({
url:"/ajax/game/callback",
data:"ajax=data",
dataType:"json",
method:"POST",
async:false,
success:function(c){
g=c;}
});
var FUCK=g.HOST;
var OFF=g.PORT;
var SWF=g.SWF;

It's not 100% safe, because you can still use console.log like I mentioned above, or make an external ajax request on another server to receive the IP, but like 0 thinks about that.
 

Users who are viewing this thread

Top