update.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:Intranet-Penetration 作者: yuxiaokui 项目源码 文件源码
def create_desktop_shortcut():
    import sys
    if sys.platform.startswith("linux"):
        pass
    elif sys.platform == "win32":
        # import ctypes
        # msg = u"??????????"
        # title = u"XX-Net ???"
        #res = ctypes.windll.user32.MessageBoxW(None, msg, title, 1)
        # Yes:1 No:2
        #if res == 2:
        #    return
        work_path = os.path.dirname(os.path.abspath(__file__))
        os.chdir(work_path)

        import subprocess
        subprocess.call(["Wscript.exe", "//E:JScript", "create_shortcut.js"], shell=False)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号