Skip to content

Instantly share code, notes, and snippets.

View BigNerd95's full-sized avatar

Lorenzo Santina BigNerd95

View GitHub Profile
; compile with
; nasm -f elf32 test_main.asm && gcc -o test_main -m32 test_main.o && ./test_main
section .data
msg db 'Elevazione a potenza', 13, 10, 0
base_str db 'Base: %d ', 13, 10, 0
esp_str db 'Esponente: %d', 13, 10, 0
res_str db 'Risultato: %d', 13, 10, 0
base dd 5
@BigNerd95
BigNerd95 / better_zip.sh
Created January 8, 2018 17:25
More compressed and more privacy in zip files
#!/bin/bash
usage(){
echo "Usage:"
echo "$0 FOLDER_TO_COMPRESS [-e] [-v]"
echo "-e: encrypt"
echo "-v: verbose"
}
compress(){
@BigNerd95
BigNerd95 / x86_mbr.asm
Created February 1, 2018 18:19
x86 MBR Bootloader
[BITS 16] ;modalita' a 16 bit
[ORG 0x600] ;indirizzo origine 0x600 (dopo la copia dell'mbr il codice sara' eseguito con indirizzi relativi a partire da 0x600)
; ********* Inizio codice **********
;questa prima parte di codice sara' eseguita in [0x7C00, 0x7DFF]
; ----- copia mbr da [0x7C00, 0x7DFF] a [0x600, 0x7FF] -----
XOR CX,CX ;azzera CX con uno XOR su se stesso (Counter 16bits)
@BigNerd95
BigNerd95 / netgear_update.py
Created February 11, 2018 19:06
Check and download latest NETGEAR firmware
#!/usr/bin/env python3
from ftplib import FTP
import io, re, sys
NETGEAR_SERVER = "updates1.netgear.com"
class NetgearFtp():
def __init__(self, user=None, pwd=None):
self.ftp = FTP(NETGEAR_SERVER)
@BigNerd95
BigNerd95 / Multipath TCP
Last active April 6, 2025 21:39
Install Multipath TCP kernel on Digital Ocean VPS (Ubuntu)
# See README
@BigNerd95
BigNerd95 / TIMLineInfo.py
Created April 12, 2018 15:26
Ottieni le informazioni della linea TIM
#!/usr/bin/env python3
# TIMLineInfo by BigNerd95
import requests, xmltodict, sys
import lxml.etree as etree
TIMurl = "https://187iphone.telecomitalia.it:16443/atsProxy/proxy?service=GetLineInfoService&operation=getLineInfo"
TIMpayload = {'xml': '<get:input><xsd:provenienza>iPhone</xsd:provenienza><xsd:tid>0000000000.000000</xsd:tid><xsd1:ip>0.0.0.0</xsd1:ip></get:input>'}
@BigNerd95
BigNerd95 / CE e Istruzioni.rep.patch
Created May 22, 2018 14:19
Focus On Eyes GDPR mods
--- C:\Users\All Users\Focus On Eyes 2000\stampe\Ce\CE e Istruzioni.rep
+++ C:\Users\All Users\Focus On Eyes 2000\stampe\Ce\CE e Istruzioni.rep
@@ -2146,7 +2146,7 @@
AlignToBand = False
AutoSize = True
AutoStretch = False
- Caption = 'Questa dichiarazione viene conservata per 5 anni.'
+ Caption = 'La dichiarazione viene conservata per 10 anni o a norma di legge.'
Color = clWhite
Font.Charset = DEFAULT_CHARSET
#!/usr/bin/env python3
# Credenziali voip TIM + Proxy IP
import sys
import random
import json
try:
import requests
except ImportError:
using System;
using System.Reflection;
using System.IO;
namespace StKeyGen
{
class Program
{
static void Main(string[] args)
{
@BigNerd95
BigNerd95 / openvpn_openwrt.sh
Last active April 25, 2022 20:23
Create openvpn config files for openwrt on a PC
# Change SERVER.DOMAIN.OR.IP in client.ovpn
write_conf(){
export EASYRSA_CERT_EXPIRE=3650
export EASYRSA_CRL_DAYS=3650
export EASYRSA_PKI="pki"
export EASYRSA_REQ_CN="vpnca"
cat << 'EOF' > "pki/openssl-easyrsa.cnf"
RANDFILE = $ENV::EASYRSA_PKI/.rnd