-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexploit.py
52 lines (45 loc) · 1.03 KB
/
exploit.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
import requests
import sys
import struct
import socket
import ssl
import urllib3
import re
import time
import random
import threading
import statistics
import openai
import os
from pymongo import MongoClient
from datetime import datetime
import json
import subprocess
from bson.int64 import Int64
# Disable SSL warnings
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
# MongoDB setup
MONGO_URI = "mongodb://localhost:27017/"
DATABASE_NAME = "Cyin"
client = MongoClient(MONGO_URI)
db = client[DATABASE_NAME]
collection = db["exploit_results"]
# OpenAI API setup
OPENAI_API_KEY = "XXXX" # Add your open ai api key
openai.api_key = OPENAI_API_KEY
OFFSET = 500
ATTEMPT_LIMIT = 256
ATTACKER_IP = "127.0.0.1"
ATTACKER_PORT = 4444
NUMBER_OF_ATTEMPTS = 5
chat_history = []
MAX_RETRIES = 3
DEFAULT_SHELLCODE = b"\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90"
MAGIC_STRING = b"__EXPLOIT_SUCCESS__"
....
....
....
...
..
.
#For full code and secure download link, please contact me on Telegram: @AnonStorks