[GH-ISSUE #3186] how to hide token and http_pwd when using frpc on windows? #2559

Closed
opened 2026-05-05 13:38:47 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @shabakett on GitHub (Nov 25, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/3186

I try to pass token and http_pwd to frpc.exe using a c# application, I set them as environment variables in frpc.ini then pass them to the process, but some tools like Process Explorer and Process Hacker can view those environment variables.
hiding them is required when you have a server on the internet running frps and you need to run frpc on a machine (owned by another person) behind the nat.

is there any method to hide them?
can I use P/Invoke to call frpc from c# program? this involves building frpc.dll and I do not know if it will resolve the big problem on windows: detecting golang binaries as virus by microsoft defender and some other antiviruses.

Originally created by @shabakett on GitHub (Nov 25, 2022). Original GitHub issue: https://github.com/fatedier/frp/issues/3186 I try to pass `token` and `http_pwd` to `frpc.exe` using a c# application, I set them as environment variables in `frpc.ini` then pass them to the process, but some tools like `Process Explorer` and `Process Hacker` can view those environment variables. hiding them is required when you have a server on the internet running frps and you need to run frpc on a machine (owned by another person) behind the nat. is there any method to hide them? can I use `P/Invoke` to call frpc from c# program? this involves building `frpc.dll` and I do not know if it will resolve the `big problem` on windows: detecting golang binaries as virus by `microsoft defender` and some other antiviruses.
gitea-mirror 2026-05-05 13:38:47 -06:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@Becods commented on GitHub (Nov 27, 2022):

Discard environment variables

Write these variables directly into frpc.ini

Then delete this configuration file the moment frpc starts successfully

<!-- gh-comment-id:1328253891 --> @Becods commented on GitHub (Nov 27, 2022): Discard environment variables Write these variables directly into frpc.ini Then delete this configuration file the moment frpc starts successfully
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#2559
No description provided.