Skip to content

Instantly share code, notes, and snippets.

View notdodo's full-sized avatar
☁️
randomASDF' or '1'='1

Edoardo Rosa notdodo

☁️
randomASDF' or '1'='1
View GitHub Profile
@notdodo
notdodo / Thunderbird unibo
Created October 15, 2016 23:06
Configurare Thunderbird per la mail studio.unibo.it
###############################################
Configurazione per Thunderbird per mail Unibo #
###############################################
# Server IMAP
Server Name: outlook.office365.com
Port: 993
Security: SSL/TLS
Authentication: Normal Password
@notdodo
notdodo / dosnslookup.py
Last active May 14, 2017 23:34
Multi-threading script for simple DNS DOS.
#!/usr/bin/python2
from threading import Thread
from threading import Event
from threading import stack_size
from Queue import Queue
from Queue import Empty
import os
@notdodo
notdodo / trashUpdate
Last active May 14, 2017 23:34
[Trashware] Update Linux Mint and change the default background
#!/bin/bash
if [ `id -u` -ne 0 ]; then
printf "The script must be run as root!\n"
exit 1
fi
# Adds a progressbar
TEMPFILE=/etc/apt/apt.conf.d/00newconftemp
echo 'Dpkg::Progress-Fancy "1";' > /etc/apt/apt.conf.d/99progressbar
@notdodo
notdodo / idlescanner.py
Created May 14, 2017 23:32
Dumb script to perform a zombie (idle) port scan using some free non-related service like imgur (by Martin Obiols)
#!/usr/bin/python
'''
Dumb script to perform a zombie (idle) port scan
using some free non-related service like imgur
Questions/Comments:
twitter.com/olemoudi
http://blog.makensi.es
@notdodo
notdodo / share_eth0.zsh
Created February 7, 2018 17:44
Share WIFI network with a wired device (i.e.: RaspberryPI) using dnsmasq
#!/usr/bin/env zsh
INTERFACE_WIRED="enp6s0"
INTERFACE_INTERNET="wlp2s0"
sudo ip addr add 192.168.2.1/24 dev ${INTERFACE_WIRED}
# NAT
sudo iptables -A FORWARD -o eth0 -i ${INTERFACE_WIRED} -s 192.168.2.0/24 -m conntrack --ctstate NEW -j ACCEPT
sudo iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
sudo iptables -t nat -F POSTROUTING
@notdodo
notdodo / getETH.py
Last active February 28, 2018 08:48
Check current informations from ethermine API and ETH/EUR value
#!/usr/bin/env python3
import aiohttp
import asyncio
import async_timeout
import datetime
from colored import fg, stylize, attr
wallet_address = "ADDRESS"
urlAPI = "https://api.ethermine.org/miner/{}".format(wallet_address)
coinbase = "https://www.coinbase.com/api/v2/prices/ETH-EUR/spot"
@notdodo
notdodo / anti-memcached.py
Last active March 12, 2018 18:16
List of all memcached servers from shodan and script to kill (flush_all) DDoSing IPs.
#!/usr/bin/env python
import json
import socket
import urllib.request
from random import shuffle
def send_flush(s):
s.sendall("{}\r\n".format("flush_all").encode())
print(s.recv(4096).decode().strip())
@notdodo
notdodo / bulkblock.zsh
Last active April 15, 2018 21:17
Block an IP (better inside a loop for multiple IPs) in Wordfence plugin
#/usr/bin/env zsh
#
echo "Block IP \"${1}\""
echo "========================================="
local domain="www.mymegasite.org"
local user_agent="Mozilla/5.0 (X11; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0"
local nonce="COPY-PASTED-NONCE"
local data="IP=${1}&reason=Manual+block+by+administrator&perm=1&action=wordfence_blockIP&nonce=${nonce}"
@notdodo
notdodo / caesar.py
Last active May 4, 2018 13:59
Caesar Cipher bruteforcer with basic support for advanced string trasformation
#!/usr/bin/env python3
import sys
import base64
try:
import click
except Exception as e:
print(e)
print("Install click")
sys.exit(-1)
@notdodo
notdodo / office.py
Created May 5, 2017 02:41
OLE to hash (crack password) - unknow source
#!/usr/bin/env python
# olefile (formerly OleFileIO_PL) version 0.42 2015-01-25
#
# Module to read/write Microsoft OLE2 files (also called Structured Storage or
# Microsoft Compound Document File Format), such as Microsoft Office 97-2003
# documents, Image Composer and FlashPix files, Outlook messages, ...
# This version is compatible with Python 2.6+ and 3.x
#
# Project website: http://www.decalage.info/olefile