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
diff --git a/supervisor/dispatchers.py b/supervisor/dispatchers.py | |
index 5a96199..dc8087a 100644 | |
--- a/supervisor/dispatchers.py | |
+++ b/supervisor/dispatchers.py | |
@@ -134,7 +134,7 @@ class POutputDispatcher(PDispatcher): | |
maxbytes = getattr(config, '%s_logfile_maxbytes' % channel) | |
backups = getattr(config, '%s_logfile_backups' % channel) | |
- fmt = '%(message)s' | |
+ fmt = '%(asctime)s: %(message)s' |
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
function cat() { | |
if [ -f $1 ]; then | |
terminal_height=$(tput lines) | |
file_lines=$(wc -l < $1 | awk '{print $1}') | |
if (( $file_lines > $terminal_height )); then | |
less $1 | |
else | |
/bin/cat $1 | |
fi |
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
import requests | |
def post(url=None, payload=None): | |
if not url: | |
url = getinput("Enter POST url : ") | |
if not payload: | |
payload = getinput("Enter POST data : ") | |
r = requests.post(url, data=payload) |
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
import sys | |
import time | |
def main(): | |
program = animate() | |
program.data = input("Enter string : ") + " " | |
program.width = int(input("Enter width : ")) | |
program.animate() |
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/env python | |
import timeit | |
import os | |
""" | |
When : 18/11/2015 | |
Where : Home | |
What : A program to remove duplicate words inside a wordlist | |
Why : Because it seems like a good idea at that time, | |
to know, understand or even create a better algorithm for it. |
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
import random | |
import time | |
import sys | |
import string | |
def generate_random_guess(chars): | |
return random.choice(chars) | |
def repeated_guesses(target): |
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
# Powerline shell install | |
# Source : http://askubuntu.com/a/283909 | |
sudo apt-get install python-pip git -y | |
sudo pip install git+git://github.com/Lokaltog/powerline | |
# Font installation | |
wget https://github.com/Lokaltog/powerline/raw/develop/font/PowerlineSymbols.otf https://github.com/Lokaltog/powerline/raw/develop/font/10-powerline-symbols.conf | |
sudo mv PowerlineSymbols.otf /usr/share/fonts/ |
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
import urllib | |
import Queue | |
import threading | |
import time | |
import sys | |
global vulnSite | |
vulnSite = [] | |
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/env python | |
import socket, os, sys, getopt | |
from struct import * | |
print "\033[95m /\\ /\\/ __\\" | |
print " / /_/ / / Honeypy - A HoneyPot for port scans" | |
print "/ __ / /___ Made for http://HackCommunity.com by H3R0" | |
print "\\/ /_/\\____/ \033[0m" | |
print "Usage: ./honeypy -p 1337\n" |
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
import sys | |
con = '#' | |
if __name__ == '__main__': | |
fname = sys.argv[0] | |
content = open(fname).read() | |
newfile = open(fname,'w') |
NewerOlder