摘要: sudo vi /lib/systemd/system/x11vnc.service [Unit] Description=Start x11vnc at startup. After=multi-user.target [Service] Type=simple ExecStart=/usr/bi 阅读全文
posted @ 2024-07-08 17:09 dk.huang 阅读(318) 评论(0) 推荐(0)
摘要: 觉得有用记录下,未验证,不知道有没有用 L3cr0f/DccwBypassUAC: Windows 8.1 and 10 UAC bypass abusing WinSxS in "dccw.exe". (github.com) 阅读全文
posted @ 2021-09-29 19:08 dk.huang 阅读(57) 评论(0) 推荐(0)
摘要: 之前写了个脚本用于客户端的安装,在生成桌面快捷方式时,直接写死了“~/Desktop”,然而在使用过程中,发现有些系统的桌面路径是”~/桌面”, 居然是中文的! 一开始想用系统语言判断,比如$LANG是zh_CN.UTF-8那么就认为是中文桌面,然而实际情况是也有可能是英文的桌面目录。。。。。 后来 阅读全文
posted @ 2021-08-24 21:18 dk.huang 阅读(2693) 评论(0) 推荐(1)
摘要: 在linux系统上装了多个Qt版本,直接修改default.conf,输入qmake -v,打印qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt5/bin/qmake' since it links to qmake itself. Check 阅读全文
posted @ 2021-06-22 18:30 dk.huang 阅读(1270) 评论(0) 推荐(1)
摘要: 场景: WPF界面调用C++动态库,由于库的名称不是固定的,因此没法用DllImport,想到了用windows api中的LoadLibrary,一番折腾后调用成功 关键代码: [DllImport("kernel32.dll")] private extern static IntPtr Loa 阅读全文
posted @ 2021-06-09 18:57 dk.huang 阅读(200) 评论(0) 推荐(0)
摘要: 许久没搞WPF了,准备用WPF开发个小工具,新建工程,默认打开MainWindow.xaml,嗯......... System.ArgumentException An item with the same key has already been added. at System.ThrowHe 阅读全文
posted @ 2021-05-28 19:24 dk.huang 阅读(281) 评论(0) 推荐(0)