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

Lower-Level Forced-Proxy via System Call Interception? #157

Open
Azuresonance opened this issue Sep 26, 2023 · 1 comment
Open

Lower-Level Forced-Proxy via System Call Interception? #157

Azuresonance opened this issue Sep 26, 2023 · 1 comment
Labels

Comments

@Azuresonance
Copy link

Description:

Hello proxychains maintainers and community,

I've benefited immensely from proxychains and truly value its capabilities. Recently, I encountered a scenario involving Go programs where traditional methods of enforcing proxy via libc didn't yield the desired results. This led me to contemplate a more refined approach using ptrace to intercept system calls directly, providing a deeper level of proxy enforcement.

Proposal:

  1. System Call Interception with ptrace: The idea is to utilize ptrace() to monitor and potentially alter system calls made by a child process, especially the socket-related ones (socket(), connect(), send(), recv(), etc.).
  2. Proxy Redirection: Once intercepted, the intention would be to reroute these calls via a designated proxy, ensuring a more comprehensive enforcement than higher-level hooks can provide.

Context:

While my initial interest stemmed from issues proxying Go programs, I believe this approach's utility can extend beyond this specific case, offering more robust proxy enforcement for a variety of applications, including statically linked binaries or others that might bypass conventional hooks.

Request:

  1. Feature Consideration: I'm keen to see if such a feature aligns with proxychains' objectives and if it could be considered for future integrations.
  2. Feasibility Assessment: If this proposal doesn't resonate with the project's direction, I'd greatly appreciate any feedback or insights on the feasibility and potential pitfalls of this approach. As I'm mulling over possibly implementing this, guidance from the seasoned proxychains community would be invaluable.

Thank you for your continued efforts on proxychains and for taking the time to review this proposal. I look forward to any feedback or insights.

Copy link

Stale issue message

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

No branches or pull requests

2 participants