Skip to content

Instantly share code, notes, and snippets.

@Cewlt
Cewlt / posscombs.py
Created April 3, 2015 10:25
check the possible combinations of passwords
import itertools
import paramiko
def main():
regex = raw_input("Please enter what combination of characters to use: \nexample: abcdefghijklmnopqrstuvwxyz123 \n ")
length = raw_input("Okay now enter the length to check for: \n example: abcdefghijklmnopqrstuvwxyz with a length of 4 has 358,800 possible combinations \n so you would type '4' in this case \n")
go(str(regex), int(length))
def go(regex, length):
am = 0
@Cewlt
Cewlt / SlotsBypass.java
Last active September 1, 2021 21:21
Bypass pre-set slots, some shared host's do this so here is a simple bypass.
package com.colt.SlotsBypass;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerLoginEvent;
import org.bukkit.event.server.ServerListPingEvent;
import org.bukkit.plugin.java.JavaPlugin;
@Cewlt
Cewlt / StartCommand.java
Created April 3, 2015 12:55
Execute a list of commands on start-up.
package com.colt.StartCommand;
import java.util.List;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
public class StartCommand extends JavaPlugin{
List<String> cmds = getConfig().getStringList("commands");
@Cewlt
Cewlt / screenclip.sh
Last active August 31, 2016 16:33
bash screenshot script using imgur api, appended with key shortcut
clientid='<insert imgur client id here>'
img=$(mktemp '/tmp/img-XXXXXX.png')
gnome-screenshot -a -f $img >/dev/null 2>&1 || exit
res=$(curl -sH "Authorization: Client-ID $clientid" -F "image=@$img" "https://api.imgur.com/3/upload")
echo $res | grep -qo '"status":200' && link=$(echo $res | sed -e 's/.*"link":"\([^"]*\).*/\1/' -e 's/\\//g')
test -n "$link" && (x-www-browser $link && rm "$img") || echo "$res" > "$img.error"
notify-send "screenshot successful!"
List<String> automsgs = getConfig().getStringList("automessages");
Random r = new Random();
public void onEnable() {
Bukkit.getScheduler().scheduleSyncRepeatingTask(this, new Runnable() {
public void run() {
if(!(Bukkit.getOnlinePlayers().size() <= 1)) {
String msg = ChatColor.translateAlternateColorCodes('&', automsgs.get(r.nextInt(automsgs.size())));
Bukkit.broadcastMessage(msg);
@Cewlt
Cewlt / uuidconv.py
Created April 25, 2015 10:23
uuidconv without limits, using tor.
#!/usr/bin/python
# USAGE:
# ./uuidconverter <file-in> <file-out>
# file-in: a file with 1 username per line
# file-out: a file where name<tab>uuid are written to (appended)
from __future__ import print_function
import sys
@Cewlt
Cewlt / keepInventory.java
Created May 4, 2015 22:49
keepInventory but also keep XP
package com.colt.keepInventory;
import org.bukkit.Bukkit;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.PlayerDeathEvent;
import org.bukkit.plugin.java.JavaPlugin;
public class keepInventory extends JavaPlugin implements Listener {
@Cewlt
Cewlt / @Twitter.java
Last active August 29, 2015 14:20
dirty code, POC.
package com.colt.TestPlugin;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.ProtocolException;
import java.net.URL;
import net.md_5.bungee.api.ChatColor;
import net.md_5.bungee.api.chat.ClickEvent;
package com.colt.irondooropener;
import com.sk89q.worldguard.bukkit.WorldGuardPlugin;
import com.sk89q.worldguard.protection.ApplicableRegionSet;
import com.sk89q.worldguard.protection.flags.DefaultFlag;
import org.bukkit.Bukkit;
import org.bukkit.Effect;
import org.bukkit.Material;
import org.bukkit.block.Block;
import org.bukkit.block.BlockFace;
package com.colt.killerreward;
import net.md_5.bungee.api.ChatColor;
import net.milkbowl.vault.economy.Economy;
import net.milkbowl.vault.economy.EconomyResponse;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.PlayerDeathEvent;