Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help me please #3

Open
briggitteorellana opened this issue Oct 5, 2020 · 11 comments
Open

Help me please #3

briggitteorellana opened this issue Oct 5, 2020 · 11 comments

Comments

@briggitteorellana
Copy link

briggitteorellana commented Oct 5, 2020

Hi I need help, I am trying to run this project but I am getting various errors.
dump2

@py60800
Copy link
Owner

py60800 commented Oct 6, 2020

Please proceed as stated in the README.md file and build tuyadump with a single command line :
go build tuyadump.go comm-msg.go crypto.go dodump.go debug.go
In addition, you are trying to run Tuyadump in VirtualBox, you will most probably run into trouble because in such an environment, libPCAP has limited access to the network device. Let me suggest to run tuyadump on the host.

@briggitteorellana
Copy link
Author

briggitteorellana commented Oct 6, 2020

Mmm, can I then run your dump on windows? How would its execution be?

@briggitteorellana
Copy link
Author

dump3

this I got when running

@py60800
Copy link
Owner

py60800 commented Oct 7, 2020

Tuyadump could be run on Windows system with Winpcap or Npcap library. Read gopacket documentation.

I don't know Spanish but I guess that "order no encontrada" means "Command not found"... you must be very new to Linux for not being able to correct the command line to "sudo ./tuyadump...".

@briggitteorellana
Copy link
Author

briggitteorellana commented Oct 10, 2020

I already installed in windows go, ncap, I want to run the program but I get this and I have the device connected, what should I do?
nuevo

@py60800
Copy link
Owner

py60800 commented Oct 10, 2020

Unfortunately, I do not have any Windows machine to run similar test (I use Linux as my main OS).
Anyway, the command line should look like:
tuyadump -C tuyaconfig.json -i eth0 port 6668

The "-i" option can be used to set the network interface on which tuyadump can listen. If you have a single network interface, you should not need to set this option but if multiple exist, you will have to specify it. eth0 defines an Ethernet local network.

My suggestion is to install wireshark in order to identify the configuration that is effective for you environment and to use wireshark to view the encrypted packets. Once, wireshark can view the message to/from the connected devices, you should be able to do the same with tuyadump, using similar parameters.

@briggitteorellana
Copy link
Author

enviardump

masterIP is the ip of the computer? or which?

@briggitteorellana
Copy link
Author

I get these results, but I cannot differentiate any clear information
enviardump3

@py60800
Copy link
Owner

py60800 commented Oct 11, 2020

You almost get it.
a) The master IP is the IP on which runs the software that controls your devices and where, most probably, you run tuyadump.
b) I understand that you have a device that uses 3.3 protocol.
You should have downloaded the tuyadump version that support this protocol. Anyway, I just made the version with 3.3 protocol support, the default one.
So I suggest to rename the tuyadump directory in order to have a backup and than to run go get ... to download tuyadump with 3.3 protocol support.
You must also specify the protocol version in the config file (according to the documentation).

@pergolafabio
Copy link

hey @py60800 , also wanted to try out this one, to snif my pet feeder
first installed : libpcap-dev
then afterwards
go get "github.com/google/gopacket"
go get "github.com/py60800/tuyadump"

But the build gives me issues?

What am i missing?

image

@pergolafabio
Copy link

seems its looking in the wrong directorys ? how can i add that path so it can find the fies?

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants