0.0.1 • Published 4 years ago

dofus-protocol v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

dofus-protocol

Try it on gitpod NPM version Build Status

Network protocol for dofus : create client and servers for dofus 1.30

Installation

npm i

Sniffer

cd examples/sniffer && npm i

Usage

Sniffer

Yes node-pcap need root

sudo node examples/sniffer/sniffer.js [network interface(ifconfig)]

Bot

node examples/simpleBot.js -u [my_username] -p [my_password] [-d [delay_between_packets] default: 0]

Proxy

Add IP table rule

sysctl -w net.ipv4.conf.[YOUR_NETWORK_INTERFACE].route_localnet=1
sudo iptables -t nat -A OUTPUT -p tcp --dport 887 -d 190.115.26.127 -j DNAT --to-destination 127.0.0.1:34555

Remove all non default IP table rule

sudo iptables -P INPUT ACCEPT
sudo iptables -P FORWARD ACCEPT
sudo iptables -P OUTPUT ACCEPT
sudo iptables -t nat -F
sudo iptables -t mangle -F
sudo iptables -F
sudo iptables -X