-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpolymorph.py
More file actions
executable file
·57 lines (52 loc) · 1.92 KB
/
polymorph.py
File metadata and controls
executable file
·57 lines (52 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/usr/bin/env python3
from functions.functions import *;
print("Welcome to the Polymorphic Shellcode Tool from the Cebago TEAM")
quit = False
choice = 0
while not quit:
print("What do you want to do ?")
print("1- Polymorph a file")
print("2- See a polymorphed file")
print("3- Generate the shellcode")
print("4- Verify a shellcode")
print("5- Quit")
choice = input("choice: ")
if choice == "1":
print("\n\n\n=====Polymorph File=====")
print("Which file do you want to polymorph ?")
file = selectFile("input")
if file != False:
readAsm(file)
print(f"Polymorphed file generated in 'shellcode/{file}'")
print("=====End Polymorph File=====\n\n\n")
elif choice == "2":
print("\n\n\n=====See Assembly File=====")
print("Which file do you want to see ?")
file = selectFile("output")
if file != False:
displayFile("output", file)
print("goToFunction")
print("=====End See Assembly File=====\n\n\n")
elif choice == "3":
print("\n\n\n=====Generate Shellcode=====")
folder = chooseFolder()
if folder != False:
print("Which file do you want to generate shellcode from :")
file = selectFile(folder)
if file != False:
generateShellcode(folder, file)
print("=====End Generate Shellcode=====\n\n\n")
elif choice == "4":
print("\n\n\n=====Shellcode scanner=====")
print("Which file do you want to scan ?")
file = selectFile("shellcode")
if file != False:
if verifyFile("shellcode", file):
print("No null bytes detected")
else:
print("Oh a null-byte was found but always try the shellcode :)")
print("=====End Shellcode scanner=====\n\n\n")
elif choice == "5":
quit = True
else:
print("Bad choice")