question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Modify packet before it's sent

See original GitHub issue

I need to modify a packet before it’s sent (namely, I need to change the UUID of a LoginSuccessPacket). Since I’m using PacketLib, I have no control over what UUID is used during the sending of said packet, and would like to change it after session#send has been called, but before it’s actually sent. Is there a way I can do this, or no? Thanks!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:5
  • Comments:20 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
Steveice10commented, Jun 25, 2017

Yes, but as I keep saying, why do you need to modify packets to accomplish this when you can just disable authentication and give it whatever username you want to begin with?

My point is, if you are using authentication, modifying packets won’t work because it will be invalid, and if you aren’t, you can just use any username you want anyway.

1reaction
DaMatrixcommented, Jun 25, 2017

I’ve fixed it by making my own class with the same canocial name as the class of the packet I was trying to modify, just tweaking a copypaste of the original code. But there should be a way to do this less hackily

Read more comments on GitHub >

github_iconTop Results From Across the Web

how to edit any tcp packets alive on the fly then re send it?
all these tool are capable to modify (edit) any packet of any protocol on the fly then re send it on the wire...
Read more >
Stopping, editing, then sending packets in Windows 10
There a few differents way to do this: On windows there are the tool windiver who can modify packets on the fly; You...
Read more >
Modifying Packets with BurpSuite - YouTube
Today we discuss how to modify packets before transmission (or receiving) using the BurpSuite Free Edition. We also quickly cover HTTP basic ...
Read more >
Packet Modification Examples - Windows drivers
The following example code shows how to modify and inspect packets with WFP. Inline packet Modification from Outgoing Transport Layers. C++
Read more >
How to modify packet header(IP header, TCP ... - iTecNote
I want to modify packet header(IP header, TCP Header) before the host send them into the network. For example, if I'm using firefox...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found