Skip to content

Instantly share code, notes, and snippets.

View BigNerd95's full-sized avatar

Lorenzo Santina BigNerd95

View GitHub Profile
##### WiIvrea Authentication for OpenWRT ####
is_authenticated(){
local res=$(wget -q -O - http://172.172.172.1/login | grep "You are logged in" | wc -l)
if [ $res = "1" ]
then
return 0 # true
else
return 1 # false
fi
@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 / 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
using System;
using System.Reflection;
using System.IO;
namespace StKeyGen
{
class Program
{
static void Main(string[] args)
{
#!/usr/bin/env python3
# Credenziali voip TIM + Proxy IP
import sys
import random
import json
try:
import requests
except ImportError:
@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 / glddnsupdater.sh
Last active May 1, 2019 00:24
GL.iNet ddns update script [will associate your wan IP to puXXXXX.gl-inet.com where XXXXX are the latest 5 bytes of the mac address]
#!/bin/sh
# OpenWRT support libs
. /lib/functions.sh
. /lib/functions/network.sh
. /usr/share/libubox/jshn.sh
ip_regex="[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}"
ddns=
code=
@BigNerd95
BigNerd95 / openwrt_curl_second_pppoe.sh
Created November 13, 2019 20:55
Make a curl request using a new pppoe connection (this allows you to make requests using many different IPs without dropping your internet connection)
#!/bin/sh
url="http://api.ipify.org/"
user="pppoeuser"
pass="pppoepwd"
nic="dsl0.835"
name="wan100"
echo "Starting new pppoe connection"
/usr/sbin/pppd updetach ipparam $name ifname pppoe-$name user $user password $pass lcp-echo-interval 86400 lcp-echo-failure 1024 lcp-echo-adaptive +ipv6 set AUTOIPV6=1 set PEERDNS=0 nodefaultroute usepeerdns maxfail 1 ip-up-script /lib/netifd/ppp-up ipv6-up-script /lib/netifd/ppp6-up ip-down-script /lib/netifd/ppp-down ipv6-down-script /lib/netifd/ppp-down mtu 1492 mru 1492 plugin rp-pppoe.so nic-$nic
# BigBlueButton downloader by BigNerd95
url="$1"
proto=$(echo "$url" | sed -e 's|^\(.*://\).*|\1|g')
domain=$(echo "$url" | sed -e 's|^[^/]*//||' -e 's|/.*$||')
mid=$(echo "$url" | sed -e 's|.*meetingId=||')
base=$(echo "$proto$domain/presentation/$mid")
audio=$(echo "$base/video/webcams.mp4")
video=$(echo "$base/deskshare/deskshare.mp4")