Skip to content

Instantly share code, notes, and snippets.

@djtms
djtms / info.md
Created October 24, 2024 22:55 — forked from DeezNutq/info.md
AIDA64 keys for all editions (working @ 08.04.2024)

Note : FinalWire, you can keep trying to stop us, but you can't. You know why ? You've been using the same algorithm for 10 years. Changing it would be an inconvenience for you and your customers.

By the way, I'd suggest that you proofread your DMCA requests. If you didn't know, it's "generated" and not "genereated". Also, when referencing to someone's belonging you use the possessive form "their" and not "there".

FOR EDUCATIONAL PURPOSES ONLY, PLEASE SUPPORT THE DEVELOPPERS :)

Check BLACKLISTED for blacklisted keys

@djtms
djtms / install-rabbitmq-centos-7.md
Created November 24, 2022 22:06 — forked from fernandoaleman/install-rabbitmq-centos-7.md
Install RabbitMQ on CentOS 7

Install RabbitMQ on CentOS 7

sudo yum -y install epel-release
sudo yum -y update

Install Erlang

Download repository

@djtms
djtms / gist:d2a50e954a4c4b5ed48d81c1bb9de5c7
Created November 5, 2022 15:57
PHP-FPM universal SSRF bypass safe_mode/disabled_functions/o
#!/usr/bin/ruby
# coding: ASCII-8BIT
# Exploit Title: PHP-FPM universal SSRF bypass safe_mode/disabled_functions/open_basedir/etc
# redefine any php.ini values, not specified in php_admin_value
# SSRF - Server Side Request Forgery
# additional info about techinuque: http://www.slideshare.net/d0znpp/ssrf-attacks-and-sockets-smorgasbord-of-vulnerabilities
# Google Dork: not relevant
# Date: 21/11/12
# Exploit Author: @ONsec_lab http://lab.onsec.ru
@djtms
djtms / base64decode.py
Created September 19, 2022 19:02 — forked from crashish/base64decode.py
A simple implementation of a base64 decoder that supports alternative alphabets
def b64decode(string,alphabet):
string = string.replace("=","")
ret = ""
left = 0
for i in range(0, len(string)):
if left == 0:
left = 6
else:
value1 = alphabet.index(string[i - 1]) & (2 ** left - 1)
value2 = alphabet.index(string[i]) >> (left - 2)
import textwrap, re, urllib
parse_sig = re.compile(
'\[(.*?)\]\s+?signature\s*=\s*(.*?)(\s+\?\?)*\s*ep_only\s*=\s*(\w+)(?:\s*section_start_only\s*=\s*(\w+)|)', re.S)
sig_f = urllib.urlopen('userdb.txt')
sig_data = sig_f.read()
sig_f.close()
sigs = parse_sig.findall(sig_data)
for packer_name, signature, superfluous_wildcards, ep_only, section_start_only in sigs:
print packer_name
@djtms
djtms / exbdgob.markdown
Created February 27, 2022 23:51
Exbdgob
@djtms
djtms / wget.sh
Created February 9, 2022 11:57 — forked from crittermike/wget.sh
Download an entire website with wget, along with assets.
# One liner
wget --recursive --page-requisites --adjust-extension --span-hosts --convert-links --restrict-file-names=windows --domains yoursite.com --no-parent yoursite.com
# Explained
wget \
--recursive \ # Download the whole site.
--page-requisites \ # Get all assets/elements (CSS/JS/images).
--adjust-extension \ # Save files with .html on the end.
--span-hosts \ # Include necessary assets from offsite as well.
--convert-links \ # Update links to still work in the static version.
@djtms
djtms / install_phpexcel_php73.sh
Created January 17, 2022 01:53 — forked from belgattitude/install_phpexcel_php73.sh
Install script for ilia/php_excel with PHP7.3
#!/bin/bash
#
# Example script to install LibXL, ilia/php_excel on PHP 7.3 (ondrej/ppa)
#
# Usage:
# > sudo ./install_phpexcel_php73.sh
# > sudo service php7.3-fpm reload (if using fpm)
#
# Requirements:
# - Tested with Ubuntu 64bits (14.04, 16.04+)
#!/bin/bash
#
# Example script to install LibXL, ilia/php_excel on PHP 7.2 (ondrej/ppa)
#
# Usage:
# > sudo ./install_phpexcel_php72.sh
# > sudo service php7.2-fpm reload (if using fpm)
#
# Requirements:
# - Tested with Ubuntu 64bits (14.04, 16.04+)
@djtms
djtms / checkhost.sh
Created September 2, 2021 20:19 — forked from mmrwoods/checkhost.sh
Quick hack to check a remote host is accepting connections on a tcp port (useful when doing dangerous things, like kernel updates!)
#!/bin/bash
if [ "$1" == "" ] || [ "$2" == "" ]; then
echo "usage: $0 [options] <host> <port>"
echo
echo "options:"
echo " -i <interval> Number of seconds between checks [default: 5]"
exit 1
fi