我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

在Go中挂接系统调用

I'm trying to hook the fopen syscall in linux using Go.

Normally I would use C for something like this (Example: https://stackoverflow.com/a/880278/5572976) but the CTF states that the solution needs to be written in Go.

I've looked at the syscall package and basically what I'm looking for is using the following in Go.

dlsym(RTLD_NEXT, "open");

EDIT: That's open, not fopen.

近期文章

  • 可用来逃避沙箱的最不明显的Go标准库程序包是什么?
  • 解析JSON时间错误
  • Golang,新模板中的空响应
  • 条件编译不起作用
  • 线/纤维-澄清
  • 如何从正则表达式生成字符串数组?
  • 转到Revel SSL证书中间/链证书并转发到443
  • 解组具有xmlns名称空间的xml文档
  • 如何在Golang / mgo中的Mongodb中插入子文档?
  • 如何在Heroku上使用Go Web应用程序构建实用程序?
  • 将XML结构写入文件时出错
  • STDIN未连接到重启的Docker容器
  • RSA在delphi(lockbox)和go1.5之间进行加密/解密
  • 调试卡死程序
  • MongoDB / golang mgo驱动程序的这两个import语句中的哪个正确?
  • Linux + Golang中的缓冲区性能不佳
  • Golang-发出信号通知其他goroutine停止并在一个goroutine找到结果后返回
  • requests.exceptions.ConnectionError在使用请求通过不同进程调用golang REST API时
  • 真正的单元测试可以始终并行运行吗?
  • 如何在Go应用程序中创建多个Python实例

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华