Linux 程序自定义启动参数实现隐藏
前言:Linux 程序自定义启动参数
参考文章:https://xz.aliyun.com/t/15609
参考文章:https://xz.aliyun.com/t/10235
参考文章:https://blog.lyle.ac.cn/2024/01/21/arg-hide/
参考文章:https://blog.csdn.net/dog250/article/details/115411814
参考文章:https://github.com/shadow1ng/fscan/pull/429/files
参考文章:https://github.com/lylemi/passerby
参考文章:https://github.com/hackerschoice/zapper
execvp
hide_args_execvp.c
#include <stdio.h> #include <stdlib.h> #include <unistd.h> int main(int argc, char *argv[]) { // 检查是否提供了 -c proxy 参数 for (int i = 1; i < argc; i++) { if (strcmp(argv[i], "-c") == 0 && i + 1 < argc && strcmp(argv[i + 1], "proxy") == 0) { // 准备新的参数列表,只保留程序名 char *new_argv[] = {argv[0], NULL}; // 获取环境变量 extern char **environ; // 使用 execvp 重新执行当前程序,但不带参数 if (execvp(argv[0], new_argv) == -1) { perror("execvp"); exit(EXIT_FAILURE); } // execvp 成功后不会返回到这里 // 如果到达这里,说明 execvp 调用失败 exit(EXIT_FAILURE); } } // 如果没有 -c proxy 参数,继续正常运行程序 printf("Program is running with arguments: "); for (int i = 0; i < argc; i++) { printf("%s ", argv[i]); } printf("\n"); // 睡眠一段时间以便观察 ps 输出 sleep(60); return 0; }
Windows下载文件规避杀毒拦截
/S: 静默安装
/D:指定安装路径
静默安装 /S (大写S)
MuMuNG-setup-V4.0.2.3233-0808023553.exe /S
静默安装 /silent
MuMuNG-setup-V4.0.2.3233-0808023553.exe /silent
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY