add: file icon
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from randomness import *
|
||||
|
||||
def change_metadata() :
|
||||
def change_metadata(icon_file) :
|
||||
f = open("DllExecutor.rc", "r")
|
||||
f_c = f.readlines()
|
||||
f.close()
|
||||
@@ -22,6 +22,9 @@ def change_metadata() :
|
||||
elif "ProductName" in line :
|
||||
line = f'\t\t\tVALUE "ProductName", "{GetRandomString(7)}.exe"\n'
|
||||
|
||||
elif "MAINICON" in line and icon_file != "":
|
||||
line = f'MAINICON ICON "{icon_file}"\n'
|
||||
|
||||
o.write(line)
|
||||
|
||||
o.close()
|
||||
Reference in New Issue
Block a user