Skip to content

Commit

Permalink
Updated 4 Powershell Encoders
Browse files Browse the repository at this point in the history
  • Loading branch information
spicesouls authored Mar 13, 2021
1 parent 24d25bb commit 41e08f1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions oneline.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@
else:
print('[-+-] Generating...')
result = eval(funcline + '(args.code)')
print('\n[---] RESULT :' + Fore.RED + Style.BRIGHT, result, Style.RESET_ALL)
if outputflag == False:
print('\n[---] RESULT :' + Fore.RED + Style.BRIGHT, result, Style.RESET_ALL)
elif not args.code:
try:
method = encoders.getjsonall()[args.m]
Expand All @@ -91,6 +92,7 @@
with open(args.script, 'r', encoding="utf8") as o:
code = str(o.read())
o.close()
# print(code)
print(' --> Contents Read.')
funcline = 'encoders.' + method
if args.m.startswith('/one_line/'):
Expand All @@ -100,8 +102,9 @@
result = eval(funcline + '(result)')
else:
print('[-+-] Generating...')
result = eval(funcline + '(args.code)')
print('\n[---] RESULT :' + Fore.RED + Style.BRIGHT, result, Style.RESET_ALL)
result = eval(funcline + '(code)')
if outputflag == False:
print('\n[---] RESULT :' + Fore.RED + Style.BRIGHT, result, Style.RESET_ALL)

if outputflag == False:
sys.exit()
Expand Down

0 comments on commit 41e08f1

Please sign in to comment.