Création d'un sniffer "MITM"

A

Anonymous

Invité
#1
Salut à tous,
je commence doucement la création d'un bot en faisant un sniffer, une passerelle pour analyser les packets plus facilement qu'avec wireshark. (Un MITM simplifié).
Le problème c'est que je me heurte direct à un soucis: le client ne veut pas s'y connecter, il ne peut "pas authentifier le serveur".
J'écoute sur le port 5555, j'ai essayé avec le 443, aucun packet ne part du client !
Dans le config.xml, j'ai comme ip 127.0.0.1 et j'écoute bien sur 0.0.0.0. Je ne vois pas le problème.
Je ne dis pas non à un coup de main !

Amicalement bisou
 

Shornaal

Membre Actif
Inscrit
17 Février 2011
Messages
194
Reactions
0
#2
Le client refuse de s'authentifier si l'adresse contenu dans config.xml n'est pas celle des serveurs de Dofus. Tu dois patcher dynamiquement le client via une injection de DLL pour contourner ce problème. En fouillant rapidement il te sera possible de trouver facilement la dite DLL et ce n'est pas les injecteurs qui manquent.
 
A

Anonymous

Invité
#3
Zut, je suis sous linux. Il faut que je trouve une autre solution. Merci quand même !
 

ToOnS

Membre Actif
Inscrit
8 Avril 2009
Messages
974
Reactions
0
#4
remplacer 2 fois 1111 par le port du jeu et 2.2.2.2 par l'ip du serveur local (j'imagine 127.0.0.1)
# iptables -t nat -A PREROUTING -p tcp --dport 1111 -j DNAT --to-destination 2.2.2.2:1111
(biensur le serveur local devra utiliser l'autre port sinon il sera lui aussi redirigé ... sur lui meme)
 
A

Anonymous

Invité
#5
Salut Toons !
J'avais pensé à une règle iptables, le seul soucis c'est qu'elle va aussi s'appliquer au packets sortant de mon proxy !
Edit: Je n'avais pas vu la fin de ton message. Donc par autre port, tu entend de modifier le config.xml pour changer le port et non l'ip du coup ?
J'ai fait ceci dans le config.xml: " <entry key="connection.port">444,4444</entry> " J'ai deux serveurs écoutant sur chacun des ports.
J'ai également mis deux règles :
iptables -t nat -A PREROUTING -p tcp --dport 444 -j DNAT --to-destination 127.0.0.1:444
iptables -t nat -A PREROUTING -p tcp --dport 4444 -j DNAT --to-destination 127.0.0.1:4444
Je ne reçois une unique connexion sur le 4444 à l'ouverture d'une fenetre dofus, qui m'envoie un packet que je n'arrive pas à lire: en suivant le protocole décris par bouh2, j'ai un packet d'id 2132 de lentype 3 et de len 5198652.. un peu beaucoup (je suis bien en big endian).

Edit2: Voilà pourquoi j'arrivais pas à le lire, je reçois ça:
SOS<showMessage key="debug"><![CDATA[[Reg] REG with AIR]]></showMessage>!SOS<showMessage key="warning"><![CDATA[[FileProtocol] onFailed file://config.meta]]></showMessage>!SOS<showMessage key="info"><![CDATA[[Reg] Config file loaded]]></showMessage>!SOS<showMessage key="warning"><![CDATA[[AudioBus] Bus (0) vol. réel : NaN (vol. max : 1 / % vol : 1) [channel_music]]]></showMessage>!SOS<showMessage key="warning"><![CDATA[[AudioBus] Bus (1) vol. réel : NaN (vol. max : 1 / % vol : 1) [channel_atmosphere]]]></showMessage>!SOS<showMessage key="warning"><![CDATA[[AudioBus] Bus (2) vol. réel : NaN (vol. max : 1 / % vol : 1) [channel_localized_sounds]]]></showMessage>!SOS<showMessage key="warning"><![CDATA[[AudioBus] Bus (3) vol. réel : NaN (vol. max : 1 / % vol : 1) [channel_sfx]]]></showMessage>!SOS<showMessage key="warning"><![CDATA[[AudioBus] Bus (4) vol. réel : NaN (vol. max : 1 / % vol : 1) [channel_ui]]]></showMessage>!SOS<showMessage key="warning"><![CDATA[[AudioBus] Bus (5) vol. réel : NaN (vol. max : 1 / % vol : 1) [channel_npc_foleys]]]></showMessage>!SOS<showMessage key="warning"><![CDATA[[AudioBus] Bus (6) vol. réel : NaN (vol. max : 1 / % vol : 1) [channel_fight]]]></showMessage>!SOS<showMessage key="warning"><![CDATA[[AudioBus] Bus (7) vol. réel : NaN (vol. max : 1 / % vol : 1) [channel_barks]]]></showMessage>!SOS<showMessage key="warning"><![CDATA[[AudioBus] Bus (8) vol. réel : NaN (vol. max : 1 / % vol : 1) [channel_gfx]]]></showMessage>!SOS<showMessage key="warning"><![CDATA[[AudioBus] Bus (9) vol. réel : NaN (vol. max : 1 / % vol : 1) [channel_fight_music]]]></showMessage>!SOS<showMessage key="warning"><![CDATA[[AudioBus] Bus (0) vol. réel : 0.8 (vol. max : 0.8 / % vol : 1) [channel_music]]]></showMessage>!SOS<showMessage key="warning"><![CDATA[[AudioBus] Bus (1) vol. réel : 0.7 (vol. max : 0.7 / % vol : 1) [channel_atmosphere]]]></showMessage>!SOS<showMessage key="warning"><![CDATA[[AudioBus] Bus (2) vol. réel : 0.7 (vol. max : 0.7 / % vol : 1) [channel_localized_sounds]]]></showMessage>!SOS<showMessage key="warning"><![CDATA[[AudioBus] Bus (3) vol. réel : 0.5 (vol. max : 0.5 / % vol : 1) [channel_sfx]]]></showMessage>!SOS<showMessage key="warning"><![CDATA[[AudioBus] Bus (4) vol. réel : 0.7 (vol. max : 0.7 / % vol : 1) [channel_ui]]]></showMessage>!SOS<showMessage key="warning"><![CDATA[[AudioBus] Bus (5) vol. réel : 0.7 (vol. max : 0.7 / % vol : 1) [channel_npc_foleys]]]></showMessage>!SOS<showMessage key="warning"><![CDATA[[AudioBus] Bus (6) vol. réel : 0.77 (vol. max : 0.77 / % vol : 1) [channel_fight]]]></showMessage>!SOS<showMessage key="warning"><![CDATA[[AudioBus] Bus (7) vol. réel : 0.77 (vol. max : 0.77 / % vol : 1) [channel_barks]]]></showMessage>!SOS<showMessage key="warning"><![CDATA[[AudioBus] Bus (8) vol. réel : 0.77 (vol. max : 0.77 / % vol : 1) [channel_gfx]]]></showMessage>!SOS<showMessage key="warning"><![CDATA[[AudioBus] Bus (9) vol. réel : 0.8 (vol. max : 0.8 / % vol : 1) [channel_fight_music]]]></showMessage>!SOS<showMessage key="warning"><![CDATA[[AudioBus] Bus (0) vol. réel : 0.16 (vol. max : 0.8 / % vol : 0.2) [channel_music]]]></showMessage>!SOS<showMessage key="warning"><![CDATA[[AudioBus] Bus (9) vol. réel : 0.16 (vol. max : 0.8 / % vol : 0.2) [channel_fight_music]]]></showMessage>!SOS<showMessage key="warning"><![CDATA[[AudioBus] Bus (4) vol. réel : 0.14 (vol. max : 0.7 / % vol : 0.2) [channel_ui]]]></showMessage>!SOS<showMessage key="warning"><![CDATA[[AudioBus] Bus (1) vol. réel : 0.14 (vol. max : 0.7 / % vol : 0.2) [channel_atmosphere]]]></showMessage>!SOS<showMessage key="warning"><![CDATA[[AudioBus] Bus (2) vol. réel : 0.14 (vol. max : 0.7 / % vol : 0.2) [channel_localized_sounds]]]></showMessage>!SOS<showMessage key="warning"><![CDATA[[AudioBus] Bus (7) vol. réel : 0.154 (vol. max : 0.77 / % vol : 0.2) [channel_barks]]]></showMessage>!SOS<showMessage key="warning"><![CDATA[[AudioBus] Bus (6) vol. réel : 0.154 (vol. max : 0.77 / % vol : 0.2) [channel_fight]]]></showMessage>!SOS<showMessage key="warning"><![CDATA[[AudioBus] Bus (8) vol. réel : 0.154 (vol. max : 0.77 / % vol : 0.2) [channel_gfx]]]></showMessage>!SOS<showMessage key="warning"><![CDATA[[AudioBus] Bus (5) vol. réel : 0.14 (vol. max : 0.7 / % vol : 0.2) [channel_npc_foleys]]]></showMessage>!SOS<showMessage key="warning"><![CDATA[[AudioBus] Bus (3) vol. réel : 0.1 (vol. max : 0.5 / % vol : 0.2) [channel_sfx]]]></showMessage>!SOS<showMessage key="warning"><![CDATA[[FileProtocol] onFailed file://./config.meta]]></showMessage>
 
Haut Bas