Skip to content

Instantly share code, notes, and snippets.

🔴
<script>alert(1);</script>

Edoardo Rosa edoz90

🔴
<script>alert(1);</script>
Block or report user

Report or block edoz90

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@edoz90
edoz90 / trashUpdate
Last active May 14, 2017
[Trashware] Update Linux Mint and change the default background
View trashUpdate
#!/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
@edoz90
edoz90 / dosnslookup.py
Last active May 14, 2017
Multi-threading script for simple DNS DOS.
View dosnslookup.py
#!/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
@edoz90
edoz90 / install_printer
Last active Sep 6, 2019
Install a printer on Arch Linux with cups using command line
View install_printer
#!/bin/bash
################################################################
# Install a printer on Arch Linux with cups using command line #
# Used for a HP PSC 1510 with default driver #
################################################################
sudo pacman -S cups
sudo systemctl start org.cups.cupsd
@edoz90
edoz90 / Thunderbird unibo
Created Oct 15, 2016
Configurare Thunderbird per la mail studio.unibo.it
View Thunderbird unibo
###############################################
Configurazione per Thunderbird per mail Unibo #
###############################################
# Server IMAP
Server Name: outlook.office365.com
Port: 993
Security: SSL/TLS
Authentication: Normal Password
@edoz90
edoz90 / DBus-spotify
Last active Aug 18, 2019
Python script to interact with DBus MediaPlayer2 interface, used by Spotify, VLC, mpd, MPlayer, etc (Info, Play/Pause, Next, Prev, Stop)
View DBus-spotify
#!/usr/bin/env python3
import sys
try:
# http://click.pocoo.org/5/why/
import click
import dbus
from colored import fg, stylize
except:
print("Need to install click, dbus-python and colored")
sys.exit(-1)
@edoz90
edoz90 / office.py
Created May 5, 2017
OLE to hash (crack password) - unknow source
View office.py
#!/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
@edoz90
edoz90 / idlescanner.py
Created May 14, 2017
Dumb script to perform a zombie (idle) port scan using some free non-related service like imgur (by Martin Obiols)
View idlescanner.py
#!/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
@edoz90
edoz90 / checkBTC.zsh
Last active Aug 31, 2017
Get information of a BTC address of a file with BTC addresses using blockexplorer
View checkBTC.zsh
#!/usr/bin/env zsh
#
# Usage: checkBTC.zsh "myBTCaddress" [.balance]
# or
# Usage: checkBTC.zsh ./listofBTCAddr.txt [.balance]
#
local baseURL="https://blockexplorer.com/api"
validateAddr() {
@edoz90
edoz90 / bulkblock.zsh
Last active Apr 15, 2018
Block an IP (better inside a loop for multiple IPs) in Wordfence plugin
View bulkblock.zsh
#/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}"
View goenv.zsh
#!/usr/bin/env zsh
#
# create a Go workspace
# Author: edoz90
# Usage: `source goenv.zsh [-u|--update]`
#
_GO_PROJECT_DIR="${_:a:h}"
if [[ $(command -v go) ]]; then
You can’t perform that action at this time.