当前位置: 首页 > news >正文

超好看的排版素材网站影楼网站建设

超好看的排版素材网站,影楼网站建设,首钢建设集团山东公司网站,高端定制开发网站一#xff1a; 提要#xff1a; 参考项目#xff1a; https://github.com/Zzaphkiel/Seraphine 想做一个 lol 查战绩的软件#xff0c;并且满足自己的需求#xff08;把混子和大爹都表示出来#xff09;#xff0c;做的第一步就是获取 lcu token #xff0c;网上清一色…一 提要 参考项目 https://github.com/Zzaphkiel/Seraphine 想做一个 lol 查战绩的软件并且满足自己的需求把混子和大爹都表示出来做的第一步就是获取 lcu token 网上清一色的使用 wmic 去查询的这样也不是不行不过需要使用管理员权限恰好我在用Seraphine发现别人根本不需要管理员权限就可以获取 但是我在全网并没有找到其他的实现就自己研究了一下发现谜底就在获取 token 的方式上。 二获取过程 wmic PROCESS WHERE nameLeagueClientUx.exe GET commandline 一般来说其他进程的详细数据是敏感信息如果没有管理员权限不能随便访问。如上述代码 wmic 只能有管理员才能访问但是 commandline 又不是非常敏感的数据 这里最后是通过 windows api进行交互理论上说大部分编译型语言都没问题这里给到go的演示 package mainimport (fmtgolang.org/x/sys/windowslogos/execstrconvstringsunsafe )func getProcessPidByName(name string) ([]int, error) {cmd : exec.Command(wmic, process, where, fmt.Sprintf(name like %%%s%%, name), get, processid)output, err : cmd.CombinedOutput()if err ! nil {return nil, err}// 将输出按行分割lines : strings.Split(string(output), \n)var pids []int// 处理每行输出for _, line : range lines {trimmed : strings.TrimSpace(line)if len(trimmed) 0 {// 转换为数字并添加到结果中pid, err : strconv.Atoi(trimmed)if err nil {pids append(pids, pid)}}}return pids, nil }const (ProcessCommandLineInformation 60PROCESS_QUERY_LIMITED_INFORMATION 0x1000 )var (modntdll windows.NewLazySystemDLL(ntdll.dll)procNtQueryInformationProcess modntdll.NewProc(NtQueryInformationProcess) )type UNICODE_STRING struct {Length uint16MaximumLength uint16Buffer *uint16 }func GetProcessCommandLine(pid uint32) (string, error) {// Open the process with PROCESS_QUERY_LIMITED_INFORMATIONhandle, err : windows.OpenProcess(PROCESS_QUERY_LIMITED_INFORMATION, false, pid)if err ! nil {return , fmt.Errorf(failed to open process: %v, err)}defer windows.CloseHandle(handle)// Query the buffer length for the command line informationvar bufLen uint32r1, _, err : procNtQueryInformationProcess.Call(uintptr(handle),uintptr(ProcessCommandLineInformation),0,0,uintptr(unsafe.Pointer(bufLen)),)// Allocate buffer to hold command line informationbuffer : make([]byte, bufLen)r1, _, err procNtQueryInformationProcess.Call(uintptr(handle),uintptr(ProcessCommandLineInformation),uintptr(unsafe.Pointer(buffer[0])),uintptr(bufLen),uintptr(unsafe.Pointer(bufLen)),)if r1 ! 0 {return , fmt.Errorf(NtQueryInformationProcess failed, error code: %v, err)}// Check if the buffer length is valid and non-zeroif bufLen 0 {return , fmt.Errorf(No command line found for process %d, pid)}// Parse the buffer into a UNICODE_STRINGucs : (*UNICODE_STRING)(unsafe.Pointer(buffer[0]))cmdLine : windows.UTF16ToString((*[1 20]uint16)(unsafe.Pointer(ucs.Buffer))[:ucs.Length/2])return cmdLine, nil }func main() {pids, _ : getProcessPidByName(LeagueClientUx.exe)cmdLine, err : GetProcessCommandLine(uint32(pids[0]))if err ! nil {log.Fatalf(无法获取进程命令行: %v, err)}fmt.Printf(进程命令行: %s\n, cmdLine) }
http://www.dnsts.com.cn/news/214842.html

相关文章:

  • flask做大型网站开发手机设计
  • 宝安西乡网站建设好品质高端网站设计厂家
  • 网站宣传制作长沙网站建设价格
  • 网站tag 怎么实现站酷的网址
  • 廉洁常德网站网站中加入地图
  • 企业文化简介网站怎么做企业网站建设的常见流程
  • 怎么做交易平台网站世界著名室内设计案例
  • 能通过淘宝网站做淘宝客吗山东省工程建设协会网站
  • 玉环专业做网站厦门建设局地址
  • 顺义网站开发软件开发与网站开发
  • 学网站开发如何挣钱连云港建设厅官方网站
  • 电子商务网站怎么备案物流公司网站方案
  • 邯郸做网站的电话深圳有实力的网站建设服务商
  • 适用于手机的网站怎么建设好用的a站
  • 乐清住房和城乡建设部网站官网做网站可以用思源字体吗
  • ps怎么做网站导航内嵌式一个网站做两种产品
  • 网站开发流程电话个人网页制作模板下载
  • 建立购物网站网页设计尺寸规范及标准详解
  • 好网站推理免费建自己的网站赚钱
  • 网站icp备案证明文件网站建设需要学编程么
  • 做网站和小程序的区别南开建设网站
  • 大气门户网站企业网站建设实训
  • 中山 网站建设app发布流程
  • 免费建立企业网站深圳做网站980
  • 德尔普的网站建设的价格广州排前三的seo公司
  • 物流网站建设 市场分析做爰全过程免费网站可以看
  • 网站群项目建设实施进度计划阳江百姓网
  • 网站建设选择题百度搜索网站提交
  • 网站建设花都小程序商店
  • 兼职做网站编辑网站相对路径 .