N
N
Nick V2014-05-05 02:23:35
C++ / C#
Nick V, 2014-05-05 02:23:35

How to make authorization in a browser game in C#?

There is a game fdworlds.net . There is such a form.
image.jpg
It should work like this: enter login, pass, press connect. If you went to the character, then opposite lvl, exp and hp - the corresponding values ​​\u200b\u200bappear. But damn it, nothing happens with authorization.
Could you, dear users of this resource, tell me how to carry out this action?
I'll be nicer to Velmy!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
AlexP11223, 2014-05-05
@half-life

If the game is browser-based, then I would not watch it with Wireshark, but with something like HttpFox (plugin for FF) or Fiddler.
You can use HttpWebRequest or WebClient to make HTTP requests. Just don't forget about cookies. For example, here is a simple example of a WebClient'a successor with a CookieContainer, and at the same time a UserAgent (you don't need to do anything when using it, just execute requests by the created web client, it saves and sends cookies on its own). https://gist.github.com/AlexP11223/e814a5ef8e741ead1632

G
GavriKos, 2014-05-05
@GavriKos

Are you writing a client? If the game has api - go to the manual and read it. If not, take a sniffer, see what the browser sends to the game server, repeat the requests in your program.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question