Skip to content

Commit

Permalink
Update NXcrypt.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Hadi999 authored May 25, 2017
1 parent 82d645c commit b2151c7
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions NXcrypt.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@
try:
py_compile.compile(payload, cfile=_byte_, dfile=None, doraise=False, ) #compilation
except (py_compile.PyCompileError,IOError,TypeError) :
sys.exit("encryption error : file {} don't exist or it's already crypted ".format(option.file)) #error
sys.exit("encryption error : file {} don't exist or it's already crypted or specify the full path (Ex:/root/backdoor/listener.py".format(option.file)) #error
print ("[*] file : {}".format(option.file))
print ("[*] default output : {}".format(_output_))
if (sys.platform.startswith("linux")) :
Expand All @@ -360,13 +360,7 @@

elif (sys.platform.startswith("darwin")):
os.system(" mv {} {} ".format(_byte_,_output_))
ok = open(_output_,'a')

d = 1
p = random.randint(9,20)
while (d) != (p) :
ok.write(random.choice(stringo))
d += 1
print ("[+] encryption finished 100% ")
print time.strftime('[*] time : %H:%M ',time.localtime())
print time.strftime('[*] date :%d/%m/%y ',time.localtime())
Expand All @@ -379,21 +373,14 @@
try :
py_compile.compile(payload, cfile=bytecode, dfile=None, doraise=False, ) #compilation
except (py_compile.PyCompileError,IOError,TypeError) :
sys.exit("encryption error : file don't exist or it's already crypted ")
sys.exit("encryption error : file don't exist or it's already crypted or specify the full path (Ex:/root/backdoor/listener.py")
if (sys.platform.startswith("linux")):
os.system("mv {} {} ".format(bytecode,output))
elif (sys.platform.startswith("windows")):
os.system("rename {} {} ".format(bytecode,output))
elif (sys.platform.startswith("darwin")):
os.system("mv {} {} ".format(bytecode,output))
ok = open(_output_,'a')

d = 1
p = random.randint(9,20)

while (d) != (p) :
ok.write(random.choice(stringo))
d += 1
print ("[+] encryption finished 100% ")
print time.strftime('[*] time : %H:%M ',time.localtime())
print time.strftime('[*] date :%d/%m/%y ',time.localtime())
Expand Down

0 comments on commit b2151c7

Please sign in to comment.