This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
require 'telegram/bot' | |
$api_telegram = "" #Your bot API. You need to enter Telegram and ask Botfather to create a Bot. He will guide you. | |
Telegram::Bot::Client.run($api_telegram) do |bot| | |
bot.listen do |message| | |
#Messages. I use an expression to make it case insensitive. | |
case message.text | |
when /\/start/i |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
#Mauro Eldritch (plaguedoktor) @ DC5411 - 2020 | |
#sudo gem install discordrb | |
require 'discordrb' | |
#The Token obtained from Discord: https://medium.com/@mauroeldritch/crear-bots-para-discord-en-ruby-en-s%C3%B3lo-10-pasos-778ab1a303f5 (Spanish) | |
$bot_token = '' | |
bot = Discordrb::Bot.new token: $bot_token | |
bot.message(with_text: "/hello") do |event| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
require 'socket' | |
puts UDPSocket.open {|s| s.connect("64.233.187.99", 1); s.addr.last} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Especial atención: Usar BASH. En este caso, creamos un diccionario de 4 letras. | |
time echo -e {a..z}{a..z}{a..z}{a..z}"\n" > dict_4letras.dict | |
#Mi tiempo: | |
#real 0m17.777s | |
#user 0m1.945s | |
#sys 0m0.551s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Chequear cada 25 segundos la IP pública brindada por TOR | |
while true; do torify wget http://ipinfo.io/ip -qO -; sleep 25; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#SAMBA_HASHES => hash.dat | |
#Output: | |
#user:{{SSHA}}$HASH | |
slapcat | awk 'BEGIN{uidFound=0};$1 ~ /^uid:/{uid=$2;uidFound=1};$1 ~ /^userPassword::/ | |
&& uidFound == 1{printf uid":";system("echo " $2 "|base64 -d"); print "";uidFound=0}; | |
$0 == ""{uidFound=0}' > hash.dat | |
john --incremental hash.dat |