Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by alessiogua · Aug 11, 2020 at 10:17 AM · unity 2dudp

Wireshark e unity

hi everyone, for the development of the thesis in my university I need to access the udp packets exchanged between client and host of a simple game (pong), however using wireshark the content is encrypted. How could I do?


edit(moved from answer)

Let me explain better, for the university thesis I have to analyze the performance of the created pong. to do this I am using wireshark which intercepts the packets between host and client and I need to understand how to decrypt the information of the data field present in the packet because it should contain information about the position of the ball. i am using unity 2018 with network manager for the multiplayer aspect

Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Bunny83 · Aug 11, 2020 at 01:34 PM 0
Share

What do you mean? UDP is just a datagram protocol. It doesn't have any encryption unless the application layer protocol of that game encrypts the packets. I'm really not sure what you're asking here. Is that game made by yourself or is it a third party game? How is that related to the Unity game engine? The main point in encrypting network traffic is to make it more difficult to do what you want to do here. So we're not giving hacking advices here ^^


Without more information we can't really help you any further. Feel free to edit your question to add more information. Otherwise we will close the question.

avatar image Bunny83 · Aug 11, 2020 at 02:26 PM 0
Share

I've moved the content of your answer into the question. Please do not post answers unless you want to answer your own question. You can edit your question from the cogwheel menu at the top right of your question.


Well, that information is still quite useless ^^. Assu$$anonymous$$g that the packets are not actually encrypted it's just a matter of decoding the packet. However without knowing what exactly was send we can't tell. You still haven't said if you have created this game yourself or if you have at least the source code available. This would simplify this a lot. However I would assume that the position (the 3 or 2 float values) are probably just written in binary into the packet. Of course you might have to take "endianness" into account. A great tool to decode IEEE754 float values is this one. So you can just copy the the hex values into the hexadecimal representation and hit enter.


You're still very vague what networking solution you actually use. Does that game use UNet? Note that UNet is a quite advanced system with many features. The packets might be delta compessed. A packet could contain data from several logical channels. If you plan to completely disect UNets UDP format you're in for a long ride. In case of delta compession a single packet does not contain the whole data but might only include changed compared to the last packet.


Is what performance aspects do you hope to get any insights by disecting a packet? For the overall performance the content shouldn't really matter. The whole size of a packet might be relevant, but even that doesn't really help much.

avatar image alessiogua · Aug 11, 2020 at 03:14 PM 0
Share

Yes, I have the source code available and yes, I am using unet. Say me what you want to read. 00 01 30 29 18 43 00 20 00 00 00 00 sgg 0b 00 01 00 07 01 02 00 0e 00 00 00 This is the data contained in the package in the date field. Using the converter you provided, I get the result: 1.40129846432e-45 I would like to understand what the latter means. Shouldn't there be x, y, z positions since the ball is a 3D rigid body?

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

138 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

getting udp package info inside unity (GlovePIE) 0 Answers

Receive UDP Messages in Browser plugin. 0 Answers

Unity sockets 1 Answer

What properties from a HLAPI connection can be used to create a LLAPI connection? 0 Answers

Why breaks my Ethernet over USB (USB NCM) connection between HoloLens and PC? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges