File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed
Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change 1- import win32security # get sid
1+ import os
22import json as jsond # json
3-
43import time # sleep before exit
5-
64import binascii # hex encoding
7-
85from uuid import uuid4 # gen random guid
96import platform
10- import os
11- import requests # https requests
127
138try :
9+ if os .name == 'nt' :
10+ import win32security # get sid (WIN only)
11+ import requests # https requests
1412 from Crypto .Cipher import AES
1513 from Crypto .Hash import SHA256
1614 from Crypto .Util .Padding import pad , unpad
1715except ModuleNotFoundError :
1816 print ("Exception when importing modules" )
19- print ("installing necessary modules...." )
20- os .system ("pip install pycryptodome" )
17+ print ("Installing necessary modules...." )
18+ if os .path .isfile ("requirements.txt" ):
19+ os .system ("pip install -r requirements.txt" )
20+ else :
21+ os .system ("pip install pywin32" )
22+ os .system ("pip install pycryptodome" )
23+ os .system ("pip install requests" )
2124 print ("Modules installed!" )
2225 time .sleep (1.5 )
2326 os ._exit (1 )
You can’t perform that action at this time.
0 commit comments