JustNao / DofusHelper

Projet personnel pour apprendre Python, en créant un MITM pour Dofus.
MIT License
16 stars 4 forks source link

Why cant i import from scapy? #2

Closed Bazaltic closed 3 years ago

Bazaltic commented 3 years ago

D:\Dofus Py\DofusHelper-main>py main.py Initializing sniffer ... Traceback (most recent call last): File "main.py", line 1, in from sniffer import network File "D:\Dofus Py\DofusHelper-main\sniffer\network.py", line 22, in from scapy.all import plist, conf ImportError: cannot import name 'plist' from 'scapy.all' (C:\Users\Tomek\AppData\Local\Programs\Python\Python38\lib\site-packages\scapy-git_archive.dev36448129bf-py3.8.egg\scapy\all.py)

JustNao commented 3 years ago

Should be the scapy package version. Most recent ones had their architecture changed, you need an older one. Though that wouldn't make the whole thing work anyway; Ankama changes a lot of their packet ids each minor update, which require a manual (at least on my part) extraction of the game files to update the whole thing, and some tweaks here and there in the code that shouldn't be necessary but i can't be bothered to optimize it. That means the scripts basically only work whenever i'm playing (and updating it), which is not that often. You can update it yourself via the DofusInvoker.swf file in the game directory, which you can extract with one of the scripts of [LaBot](https://github.com/louisabraham/LaBot).

Bazaltic commented 3 years ago

That was right. 2.4.2 Scappy worked