This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Coded by Pietro Squilla | |
// Semplifica l'uso del cifrario di Hill con carta e penna ricercando matrici con det = +-1; | |
// osservazione: se la matrice ha determinante 1 o -1 la sua inversa conterrà numeri interi | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
#include <math.h> | |
// grandezza alfabeto -> modulo base = MASSIMO + 1 | |
#define MINIMO 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Coded by Scratchy | |
# inserisci i coefficienti di una matrice chiave e gli elementi di n vettori da moltiplicare modularmente | |
import numpy as np | |
n = int(input("Inserisci la dimensione della matrice quadrata: ")) | |
modulo = int(input("Inserisci il modulo di base (elementi dell'alfabeto): ")) # consigliato: 26 + 3 | |
matrice = np.zeros((n,n)) | |
# input dei coefficienti della matrice | |
for i in range(n): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Coded by ScratchyCode | |
#include <stdio.h> | |
#include <unistd.h> | |
#include <stdlib.h> | |
#include <signal.h> | |
long long int contatore = 0; | |
void stampa(int segnale); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Coded by ScratchyCode; | |
Vigenere = Vernam se: | |
- chiave lunga quanto il testo in chiaro | |
- chiave con lettere casuali | |
- chiave one time pad | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# cattura CTRL+Z | |
trap '' SIGTSTP | |
# display messaggio e metti in pausa | |
pause(){ | |
local m="$@" | |
echo "$m" | |
read -p "Premi [INVIO] per continuare..." key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Coded by ScratchyCode | |
// Cifrario a permutazioni pseudocasuali in stile CR4 | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <math.h> | |
#include <stdbool.h> | |
#define LIM 10000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Coded by Scratchy | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <math.h> | |
#include <complex.h> | |
#include <tgmath.h> | |
//#define EPSILON 0.0001 | |
void polari(long double a, long double b, long double *rho, long double *theta); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from scapy.all import * | |
import random | |
import threading | |
import signal | |
import sys | |
def address_spoofer(): | |
addr = [192,168,178,1] | |
dot = '.' | |
addr[0] = str(random.randrange(11,197)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
MIN = 0 | |
MAX = 1 | |
#lanci = int(input("Numero di lanci: ")) | |
lanci = 10000000 | |
if(lanci <= 0): | |
print("Uscita...") | |
quit() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Coded by Scratchy | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
void scadenzaCheck(void); | |
int main(void){ | |
scadenzaCheck(); |
NewerOlder