Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Lambchops

Pages: 1 ... 53 54 [55] 56 57 ... 112
811
Mods & Development / Re: Lat Trick Bot
« on: May 26, 2018, 02:49:05 PM »
You "knew" the solution 2 years ago yet never programmed it. Why?


Because I didn't have time to do it properly and wouldn't bother using a crappy mass-spamming approach like the one you are attempting to use. I did discuss this approach and why it was not a good idea. All of this is published on this forum, as I'm sure you know.

You could just say "thanks" when I yet again explain things or fix stuff for you (no charge).

Seriously grow up.

Try this:




You know I would actually help you a lot more.

812
Mods & Development / Re: Lat Trick Bot
« on: May 26, 2018, 12:07:48 AM »
@iL

Shouldn't really be spending time on this, but here's a quick dll to help.

it exports 2 functions
Code: [Select]
BOOL hosting(void)
returns TRUE if local player is host and in pre-game lobby.

BOOL send_packet(CHAR* addr, int local_port, int remote_port)
sends your "For The Alliance" packet.

this way you can do something like:

Code: [Select]
if(hosting()){
    send_packet("111.222.3.44",6112,6114);
}


Havn't thoroughly tested it yet but it should work ok I think.

I can PM you the C++ source code if you want. (don't want to post it here or scrubs might use it to make hacks).



813
Mods & Development / Re: Lat Trick Bot
« on: May 25, 2018, 08:21:14 PM »
@iL

Your definition of how remote port and local port is correct actually, you are right that is how it works.

So we are able to port forward now, but possibly the problem is that Python is intercepting packets destined for War2 causing the game to disconnect. I will have to think about this...

My first idea is to try changing the "binding" IP address. 0.0.0.0 means to listen on all interfaces, but we don't actually want to listen on any interfaces.. not sure what to do. I will keep testing


I can add error checking so that if a socket fails it keeps trying instead of crashing

@AHB

Dear noob. You are not listening on any interfaces. That would require using the 'listen()' API ;D

The reason the person that you copied this code from used bind(0.0.0.0,port) is to associate the local port number with the socket, while sendto() sets the remote port...

Have you worked out what you copy/pasted yet?  #GodlyExpert  #ROTF



814
Mods & Development / Re: Lat Trick Bot
« on: May 25, 2018, 07:40:05 PM »
That will be a plan for future, as a 1-st step it's easier to send packets all the time.

And it causes disconnect, no idea why, but that's unacceptable behavior even if i sent them in wrong time and to wrong ips

This is actually a good sign. Causing the disconnect means that the packets are ending up where they should be... --> they are going to the WC2 client.

Of course at this point what you are making is a disc-bot, because you are sending the client rubbish packets - in this case "For the Alliance" which is clearly causing a problem for the client.

I discussed this in September 2016 when I first posted this solution:
The packets can be anything. Null packets would probably work fine, whatever, as long as it doesn't crash the client with garbage, its all good. We have then done our “lat trick” between the host and the joining client which is the only one not already being done. End of hosting issues forever. GG

I can quite easily help you with code that will let you detect when the client is hosting a game, and not in the channel or in game, that is very simple.

It will be up to you to make sure that your address list has ONLY the players in the channel, not those in games, otherwise you could possibly disconnect other people playing or contribute to game lag.

Sending out packets all the time to everyone is a bad idea, for a lot of reasons, not the least of which is that you are opening up your own firewall to everyone on the server for no reason. People could drop-hack you from games while they are in the channel or worse.

-- edit --

Do you see that we dont need to know the remote port? Only use the local game port as both the source and destination

Which is the reason you can't get it to work through symmetric NAT. Why not just do it properly?


I think just standard 'socket' 'connect' and 'sendto' etc. should do it for anything I've been talking about..

I'm a bit busy working on another project right now, but when I get some spare time I'll fix it for you if the 'expert' hasn't worked it out by then ;)

815
Mods & Development / Re: Lat Trick Bot
« on: May 24, 2018, 07:10:06 PM »
Ok here is the whole entire thing:
tried that, looks like not working as is.

nat_type, external_ip, external_port = stun.get_ip_info("0.0.0.0", war2_port)
Not working after you join bnet (returns "blocked").
You should check that before join bnet, then it's fine.
Not a big deal now.

And the big problem:
      # create a socket object
      client = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
      client.bind(('0.0.0.0', war2_port))

      # send some data
      client.sendto("For the Alliance", (target_host, war2_port))
      print "Sent data to " + str(player_ip) + " on port " + str(war2_port)
causes disconnect after i join the game, build TH and then building the farm or barracks (checked twice).
I still didn't try to host the game as i didn't get real list of ips.

My player_ips.php is: {"player_ips": ["45.33.94.234", "2.2.2.2", "3.3.3.3"]}

I think my router becomes confused about too many outgoing UDP from the same port to different addresses or w/e.

Also, i changed Game Data Port to 6113 to not reconfigure nat redirections on my router. Here's my code then:
Code: [Select]
war2_client_port = 6113
war2_remote_port = 6112
...
      client = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
      client.bind(('0.0.0.0', war2_client_port))
      client.sendto("For the Alliance", (target_host, war2_remote_port))

It is very simple.

WC2 worked before NAT. WC2 works over NAT. There is no problem there.
You don't need STUN. This is just the noob getting excited about stuff he read online that he doesn't actually understand.

You don't need to reverse the NAT address translation, just allow NAT to function the way it is designed.

You only need to send packets from host before game starts.

You only need to send packets to people in the channel.

That is all.

816
Server.War2.ru / Re: xbremer has left the realm
« on: May 24, 2018, 01:58:16 PM »
https://www.wthr.com/1835651

Looks like Yamon will be taking a break as well.



ROTFLMAO in fkn hysterics ;D

I don't know what's funnier, this useless loser or his useless parents who actually need to go to court to get rid of him. They obviously taught him everything he knows.

OMG some people should be sterilized at birth :))


817
Mods & Development / Re: Lat Trick Bot
« on: May 24, 2018, 01:41:13 PM »
BAHAHAHAHA

The little noob has put parts of my email address in his post LOLOLOL That's what all the weird capitol letters are in his last post.

ooooo scary, what are you going to do phishing scam me?

Everybody already knows you pulled the SQL db from the server years ago. Then you got locked out because you bragged about it like the little wannabe script kiddie that you are and now you're trying to scam your way back in.

Are you actually trying to threaten me with my email address? ;D ROTF


the nat stats arent even a necessary component of the program so take it or leave it.

DUH. My point EXACTLY. So leave it.

you should know we know much more than just your nat type lmao jeez quit trippin. no need for the nasty Gram

Who is "we"?  .... you and your mom?

Point proven - this guy is a complete dick.

818
Server.War2.ru / Re: xbremer has left the realm
« on: May 23, 2018, 05:44:45 PM »
I should quit more often. Havn't quit in ages  :blank:

819
Mods & Development / Re: Lat Trick Bot
« on: May 22, 2018, 10:45:18 AM »
You do know that the definition of a script kiddie is someone who uses code that other people write, and cant write their own code right?

So by definition I wrote the code, and you know nothing about programming as youve made apparent, so that would make you a script kiddie lol

I know this is really hard for you to understand, but the part of the PHP code where it says "username=username" and "password=password" is intended to be changed by iL to his own credentials which I wont know what they are, so no I dont have SQL access. Sorry no time to keep explaining how these basic things work.


Every time you dodge questions, and answer unasked ones just further proves your dishonest intentions.

So you are doing backfilps to include this unnecessary data collection yet you are NOT trying to get access to the results? ROTF ;D

You claim to be a SQL expert yet you pretend that giving you SQL access doesn't open up the sever and everyone's personal data to a range of potential attacks. "Everyone" knows you have already devoted a lot of time to DDOS attacking the server and stealing personal information.

I call bullshit. So just get rid of your little unneeded SQL db, you're not fooling anyone.

@iL if you want to use this approach, just impliment it yourself without the lame hacker's code - you don't need him.

820
Mods & Development / Re: Lat Trick Bot
« on: May 20, 2018, 09:54:49 PM »
Everyone knows me in in real life here, and anyone with a brain can read the code and see there is no backdoor in it...

Keep telling yourself you solved hosting lol congrats to you

Inventing a non-existant excuse for you to have SQL access to the server is a back-door.

So who are you then? Who is "everyone"? Where is "here"?

The threads of  me explaining the problem and the solution to your newb ass are all on this forum. HF with your fantasy that you're not a self-promoting script-kiddie.

821
Mods & Development / Re: Lat Trick Bot
« on: May 20, 2018, 10:14:47 AM »
man you talk tooooo much dude. Its really simple and Ive already explained how it works too many times...

LOL.

I have been explaining how it works to everyone for years.

This is just a re-hashing of what I have already posted EXCEPT you have built in a back door for yourself.

So how about you post your REAL NAME so everyone knows who is getting SQL access to the server.


I'm just the guy who solved a 20+ year old hosting problem after

... after reading the fix that I posted 2 years ago  ;D

822
Mods & Development / Re: Lat Trick Bot
« on: May 19, 2018, 11:25:32 AM »
No there is no problem with the Python client, Ive already tested and it works :D :D :D



the Python client doesnt work for Symmetric NAT so we are curious to see how many people are actually behind an unfixable Symmetric NAT

The only problem is that UDP hole punching doesnt work when behind certain type of NAT,

Much as I would hate to upset your newly achieved expert status, UDP hole punching absolutely works for every single person on the server, regardless of the network protocols in use. If it didn't nobody could join a game. If you can join a game, you can punch a hole.

You are telling me your python client doesn't work, so I believe you, however your assumption that this is because "hole punching doesn't work" seems about as likely as anyone becoming an expert on anything because they read a few articles online last week ;)

but it is a less common type (we think) so it shouldnt be a problem. But because of that, the Python code checks what type of NAT and doesnt run if it finds that it is a type of NAT that wont work. It also sends simple ping to a PHP script to record what type of NAT so that we can find out if the script is actually helping people or if they are all behind the type of NAT that doesnt work

This program could easily be rewritten in C++, it would just take me a few more hours so I dont feel like it... the "performance boost" isnt worth it when you are talking about a tiny simple program

What "performance boost" are you quoting there? I can't see there being any relevant performance boost regardless of the language.

The Python code already works perfectly... and I even gave all the instructions to compile to exe (its one simple command)

Perfectly? I thought you said it was failing with some types of NAT. Isn't that the whole point of this and why you want iL to install a SQL db to collect your curiosity information?

The SQL login needs to be changed by iL to his own username, password, and database, nothing "strange" there. It is simply used to record the stats from the NAT type collector

Oh so YOU don't get a login so you can have SQL access to the DB on the server?.... Whatever, I really don't care, I just wish that once in a while somebody would make some software without trying to back-door data for themselves... oh but its all just friendly white-hat data ... who are you, Google? I don't like it when they do it either.

You don't need to, you just want to. It has nothing to do with hosting and everything to do with you collecting data.

Also I don't actually know who you are Mr "AHB" but I certainly hope that iL has good reason to trust you before he gives you SQL access to his server.

I wasnt a NAT expert last week but I can honestly say I am basically an expert now. I spent probably a dozen hours reading about the different types of NAT and how they work, so I know exactly why this works for the types of NAT that it does work for, and exactly why it doesnt work for Symmetric NAT type


You really should be paying more attention, or are you just being deliberatly obtuce so that you have an excuse to do what you want to? Please supply you "expert" explaination of how people can join games if hole punching doesn't work?

War2 games are peer-to-peer UDP. Unless you have correctly configured your routing/NAT ( in which case you would be able to host anyway ) then the ONLY way people can play games is via hole-punching. All day, every day.

So either you really don't have a clue what you are talking about, or you are hoping that nobody will understand the nerd-speak so you can do whatever it is that you want to do.


823
Mods & Development / Re: Lat Trick Bot
« on: May 19, 2018, 06:36:40 AM »
@Lambchops
Sure you could rewrite it with network primitives, whatever language you want, doesnt matter but why would you? You can write it in assembly if you want. But why stop there when you can write machine code for each specific cpu architecture? Python with sockets library is just fine.

umm.. you were the one who said there was a problem with your python client.

I was suggesting making it simpler not more complex.

"machine code for each specific cpu architecture" are you tripping on peyote right now?


Anyway, if you are willing to do this and you can get iL to help you server side, then cool - when you get it working there are more games hosted. This is a good thing, I would like to see it happen regardless of whether or not I choose to use it.

Any HLL actually adds complexity as a direct consequence of making it appear simpler to the user. AFAIK war2, ce, and the autoloader are all C++ programs (compiled into ML of course). I have no idea why you would want to complicate things by throwing python in the middle, but if that is the way you know how to do it, and you are willing to put in the time to do it then go for it.


I do know there is absolutely no reason for you to introduce an SQL login, however you seem to have contrived a reason anyway. When you remove all reference to this from your code I will be a lot less sceptical about your intentions.


you dont need to know the port the other players have for their war2 client, all that matters is that you source the traffic from your own war2 port.

Have you considered that this is the source of your NAT problems? You are only considering the local routing table for the host, not the address translation for the joining client.

I'm not a NAT expert, but we do know that ANYONE who can join a game can successfully hole-punch regardless of the intervening protocols. That is proven every time they join a game. Just use the right port number, it's only 2 bytes, pretty sure that wont blow your budget  ;)


And quite honestly: if you do just want to do this, but you have just got it a bit muddled up, then PM or discord me and I'll give you what advice I can.


824
Mods & Development / Re: Lat Trick Bot
« on: May 18, 2018, 12:19:50 PM »
@Lambchops

uhhh yeah thats exactly what it does actually lol! ... its not too complicated

3 parts:

1. Python client (runs on client machine who wants to host) - downloads list of IPs and sends UDP traffic to them

you dont need to know the port the other players have for their war2 client, all that matters is that you source the traffic from your own war2 port. This creates an entry in your router that will allow that other players IP to communicate back to you on your war2 port

2. player_ips.php - provides player IPs to Python client
3. nat_stats.php - this is for us to track what types of NAT people are behind because the Python client doesnt work for Symmetric NAT so we are curious to see how many people are actually behind an unfixable Symmetric NAT

Ok. Cool.

IDK how any language could not accomplish such a simple task.

I'm quite sure it could be done in python, its a very robust language, perhaps not with the library you want to use. Why not just do it with networking primatives?. This task does not require any fancy network programming at all... also I cant imagine why you would want to use python there are a lot of better options.

I presume you are talking about a complied executable? Personally I do not wish to install python on my machine to run scripts, and most certainly would NOT be running anything that allowed you to collect stats because you are curious behind my firewall. Sorry, but no thank you.

825
General Discussion / Re: Bitcoin up to 19000 today
« on: May 18, 2018, 09:31:13 AM »



Yeah at this point the human race kind of deserves it, don't we? ;D


Pages: 1 ... 53 54 [55] 56 57 ... 112