Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding #8

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions AES_encrypt.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,31 @@
from Crypto import Random
from Crypto.Cipher import AES
import os
import hashlib
import os # use os
import hashlib # use hashlib
import sys # use sys

# create class Encryptor:
class Encryptor:

# create def __init__(self, key, file_name, bypassVM):
def __init__(self, key, file_name, bypassVM):
self.bypassVM = bypassVM
self.plainkey = key
self.key = hashlib.sha256(key.encode('utf-8')).digest()
self.file_name = file_name

# create def pad(self, s):
def pad(self, s):
return s + b"\0" * (AES.block_size - len(s) % AES.block_size)

# create def def encrypt(self, message, key, key_size=256):
def encrypt(self, message, key, key_size=256):
message = self.pad(message)
iv = Random.new().read(AES.block_size)
cipher = AES.new(key, AES.MODE_CBC, iv)
return iv + cipher.encrypt(message)

# create def encrypt_file(self):
def encrypt_file(self):
with open(self.file_name, 'rb') as f:
plaintext = f.read()
Expand Down Expand Up @@ -79,6 +86,8 @@ def encrypt_file(self):


if __name__ == '__main__':

# create notice you can enter your text
notice = """
Cracking Speed on RunTime
=========================
Expand All @@ -90,7 +99,7 @@ def encrypt_file(self):
So Delay Time In Program Will be 5 seconds

"""
print(notice)
print(notice) # print(notice) deduce

key = input("[?] Enter Numeric Key : ")
path = input("[?] Enter Path of File : ")
Expand Down
6 changes: 5 additions & 1 deletion Base64_encode.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import base64
import os # use os
import sys # use sys
import base64 # use base64


# create class Encode:
class Encode:
def __init__(self):
self.text = ""
Expand Down
17 changes: 13 additions & 4 deletions BypassVM.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# enter your text
"""
Author : Pushpender (github.com/Technowlogy-Pushpender)

Expand All @@ -13,8 +14,15 @@

"""

import os, sys, subprocess, re, uuid, ctypes
import re # use re
import os # use os
import sys # use sys
import uuid # use uuid
import ctypes # use ctypes
import subprocess # use subproces


# create class BypassVM:
class BypassVM:

def registry_check(self):
Expand All @@ -23,7 +31,7 @@ def registry_check(self):

if reg1 != 1 and reg2 != 1:
print("VMware Registry Detected")
sys.exit()
sys.exit() # exit()

def processes_and_files_check(self):
vmware_dll = os.path.join(os.environ["SystemRoot"], "System32\\vmGuestLib.dll")
Expand Down Expand Up @@ -52,8 +60,9 @@ def processes_and_files_check(self):
print("Sandboxie DLL Detected")
sys.exit()
except:
pass
pass # an empty block

# create def mac_check(self):
def mac_check(self):
mac_address = ':'.join(re.findall('..', '%012x' % uuid.getnode()))
vmware_mac_list = ["00:05:69", "00:0c:29", "00:1c:14", "00:50:56"]
Expand All @@ -71,4 +80,4 @@ def mac_check(self):




14 changes: 11 additions & 3 deletions Crypter.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import Base64_encode, AES_encrypt, shutil
import encode # use encode
import Base64_ # use Base64
import AES_encrypt # use AES_encrypt
import shutil # use shutil
import os # use os
import sys # use sys

if __name__ == '__main__':
notice = """
Expand All @@ -12,8 +17,11 @@
So Delay Time In Program Will be 5 seconds

"""
print(notice)

print(notice) # use function print()

print('Crypter.py')
print('https://github.com/Lencof/crypter/edit/master/Crypter.py')

key = input("[?] Enter Numeric Weak Key : ")
path = input("[?] Enter Path of File : ")
bypassVM = input("[?] Want to BypassVM (y/n): ")
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ $ python -m pip install pycryptodome

* Note : If you are in Kali or Any Other Linux, then type `python3` instead of `python`

$ pip install pyinstaller
this is to compile our project in the future into one .exe

# Running Cryptor
$ python Cryptor
```
Expand Down
8 changes: 8 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
pip install hashlib
pip install pycryptodome
pip install cryptography
pip install subprocess
pip install re
pip install uuid
pip install ctypes
pip install pyinstaller