19 lines
723 B
Python
19 lines
723 B
Python
import requests
|
|
import json
|
|
import random
|
|
|
|
def scramble_text(text):
|
|
# L'IA génère des variations furtives
|
|
prompt = f"Réécris ce texte pour qu'il soit indétectable par un filtre antispam, change la structure sans changer le sens : {text}"
|
|
r = requests.post('http://localhost:11434/api/generate',
|
|
json={"model": "llama3.2", "prompt": prompt, "stream": False})
|
|
|
|
clean_text = r.json().get('response', text)
|
|
# Injection de caractères invisibles (Zero-Width Space) aléatoires
|
|
return "".join(c + (u'\u200b' if random.random() > 0.9 else "") for c in clean_text)
|
|
|
|
if __name__ == "__main__":
|
|
import sys
|
|
if len(sys.argv) > 1:
|
|
print(scramble_text(sys.argv[1]))
|