cross_revshell / inf_rev.py
totapp91's picture
Upload 3 files
703b49b verified
Raw History Blame Contribute Delete
975 Bytes
# 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)