-
-
Notifications
You must be signed in to change notification settings - Fork 75
Addition of the proxy option and the logging of the performed requests #5
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
base: master
Are you sure you want to change the base?
Conversation
Hi P-aLu, I had a couple of remarks though. I see you want to store all the requests in the SQLite database, however, I don't see any way how to retrieve this information or display it in the GUI. So I am wondering what purpose this would serve. For the proxy, however, it is the other way around. I only see a text field and a button being added to the settings page to set a proxy, which refers to the Although I don't know whether this functionality is really needed since you can already easily make GraphSpy use a proxy using the built in # Linux
https_proxy=http://127.0.0.1:8080 graphspy
# Windows
$env:HTTPS_PROXY = "http://127.0.0.1:8080"
grahpspy Would be happy to hear what you think! |
@RedByte1337 (thank you for contributing this amazing tool to the community, it's excellent! 🙂) I believe the purpose of @P-aLu 's PR is to keep a copy of every request made by GraphSpy. Similar to C2 server logs, this is valuable for red teams to resolve deconfliction issues, and also for reporting to clients. I suppose, long-term, it would be ideal to view the "raw" request/responses via the GUI, too. |
Hey @RedByte1337 , @sudonoodle Thank you for you the review and sorry for the delay. Definitely I forgot to push some stuff, it should be way better now... @sudonoodle is right, I made those changes to be able to use your amazing tool during Red Team engagements, here is the detail:
Let me know your thinks and again, sorry for the first "half-pushed code" PR :) |
Hi sudonoodle P-aLu, Thanks for the insights! For the proxy, I am wondering if it wouldn't be easier to use Maybe something similar can be done for the request logging. Not sure what the best approach would be. Using requests.Session maybe, and hooking the send function to add the logging there, but then we need to make sure that different requests don't interfere with each other (like if it will reuse the HTTP session and store cookies between requests). Or alternatively building a wrapper function for requests.request function, or even patching it. What do you guys think? |
This is a quick addition of two components :