mirror of
https://github.com/XiaoliChan/wmiexec-Pro.git
synced 2026-10-18 22:50:54 +08:00
681cc87406
Signed-off-by: XiaoliChan <30458572+XiaoliChan@users.noreply.github.com>
10 lines
299 B
Python
10 lines
299 B
Python
import sys
|
|
import os
|
|
|
|
def get_vbs(filename):
|
|
# The directory of the main file
|
|
main_dir = os.path.dirname(os.path.abspath(sys.modules["__main__"].__file__))
|
|
abs_path = os.path.join(main_dir, "lib", "vbscripts", filename)
|
|
with open(abs_path) as f:
|
|
vbs = f.read()
|
|
return vbs |