Skip to content

Instantly share code, notes, and snippets.

View VHSCODE's full-sized avatar
🗿

V VHSCODE

🗿
View GitHub Profile

Comprobar Ceros

Puedes obtener el codigo aqui

Requisitos:

  • Sistema operativo Windows o basado en Linux
  • Python 3.16 o posterior
  • Libreria hashlib (Normalmente instalada por defecto)

Uso

  • Windows : python3 ./comprobar_ceros.py <archivo1> <archivo2>
  • Linux : ./comprobar_ceros.py
@VHSCODE
VHSCODE / comprobar_ceros.py
Last active October 18, 2023 13:52
Utilidad para comprobar el contenido de dos archivos y comprobar su prueba de trabajo
#!/bin/python
## Actividad 3
from hashlib import sha256
import secrets
import sys
if len(sys.argv) < 3 :
print("Por favor, especifica los archivos de entrada")
00
S41 39
0000000000000000000000000000000000000000000000000000000000000000
01 040458c04551833cb1ef1bf40296e775dbdf7a5f4526a669aad0f17e5b2ec9e5004c783ac61a43812ba90a8cecc7f1a6c17fd48a8d29db48fcbeda73b29ef41c5b 04 100
02 040d79573be2742b8789c136ad573a5d293e8f35e0226e2fafb2a45e67dff8b5a3117af7798f119cadb894db9a672edc706dd1cd27c0a1227108782497479b2e8a 0d 100
03 04130907aefc8893bb8769b2cfe6ec1b273ed6f7555aeb0d9723a9faa30a2cfc92f2ad05f93029f8873d8c6ef3ed1353f88d3103aede667f9d8563a3ffe56babcf 13 100
04 0416c974809f7136a4969875880bb36ed31cda95cd30480709f565e7f78c21f53c4efcc11c8ceb477613c3df62dcd91a8cd14549e7fae388359c57f78fdd68b623 16 100
05 042943cb78aa5fb79123e88448d24d1ae4d68d1c03f34778b287bb030e845d3f45d8b1552f86f140284fe69f1b3006c063d6fc4ead5d8686e5b46ec385de52360e 29 100
06 042e7a25626f9d23dc76408a24a224eed010107fc9a8e8a83ea5c8b0ee0fd36a9e2d7489ee40b048f9b46792081e3663849653a68de2b64f5180b471982a3524b1 2e 100
07 04311a5cf81d7262c3b6a840df5267180100b87b822f10aa87ee3708842b777d915222e109163ca76a94c914e25d4
@VHSCODE
VHSCODE / Payloads TCP malignos
Created April 3, 2022 16:48
Una serie de payloads de trafico maligno junto con la cantidad de veces que aparecen en la captura
Payloads TCP:
e5:00:c0:92:e5:04:30:dc:e5:07:00:53:e1:05:00:a0:11:04:00:00:1a:08:00:00:ea:00:c1:92:e7:04:30:dc:e5:07:00:53:e1:04:00:00:0a:01:00:80:e2:01:00:50:e1:f8:ff:ff:1a:00:00:a0:e3:4b:ff:ff:eb:08:00:a0:e1:09:10:a0:e1:0a:20:a0:e1:24:30:9d:e5:0f:e0:a0:e1:00:f0:9c:e5:f6:ff:ff:ea:d4:c9:01:00:d8:c9:01:00:f0:4f:2d:e9:03:00:51:e3:1c:d0:4d:e2:01:50:a0:e1:00:40:a0:e1:02:00:00:9a:04:00:51:e3:00:a0:90:e5:01:00:00:1a:1c:d0:8d:e2:f0:8f:bd:e8:05:00:51:e3:04:10:d0:e5:08:10:8d:e5:f9:ff:ff:0a:05:70:d0:e5:00:00:57:e3:f6:ff:ff:0a:07:91:a0:e1:06:60:45:e2:07:80:89:e0:08:00:56:e1:f1:ff:ff:3a:07:00:a0:e1:18:10:a0:e3:e9:fe:ff:eb:00:00:57:e3:18:00:8d:e5:06:b0:84:e2:13:00:00:da:00:10:a0:e1:08:c0:84:e0:04:00:a0:e1:00:e0:a0:e3:02:40:a0:e3:0a:30:d0:e5:06:20:90:e5:05:00:80:e2:0c:00:50:e1:14:30:c1:e5:04:20:81:e5:10:20:81:e5:00:40:c1:e5:01:e0:c1:e5:18:10:81:e2:f4:ff:ff:1a:07:30:89:e0:05:30:63:e0:06:b0:80:e2:06:60:43:e2:00:00:56:e3:0c:60:8d:05:4a:00:00:0a:00:90:db:e5:00:00:59:e3:0c:90:8d:05:10:90:8d:05:33:00:00:0a:09:00:a0:e1:08:10:a0:e3
@VHSCODE
VHSCODE / calcular_estadisticas.py
Created April 3, 2022 16:45
Script para obtener datos sobre el trafico filtrado
import pandas as pd
import subprocess
import sys
from os import path
from progress.bar import Bar
from collections import Counter
import numpy as np
import json