Skip to content

Instantly share code, notes, and snippets.

View CanadianJeff's full-sized avatar

Jeffery Wilkins CanadianJeff

  • Vancouver BC CANADA
View GitHub Profile
@CanadianJeff
CanadianJeff / clean_apachelogs.sh
Created November 15, 2015 06:17
Clean cPanel Apache Logs
#!/bin/bash
echo "Stopping HTTPD"
service httpd stop &>/dev/null
killall httpd &>/dev/null
rm -rf /tmp/sess_*
find /home/share -name 'error_log' -exec rm -rf {} \;
find /home/*/public_html -name 'error_log' -exec rm -rf {} \;
find /var/www/apache -name 'error_log' -exec rm -rf {} \;
@CanadianJeff
CanadianJeff / botnetclient.py
Last active April 20, 2016 13:18
Botnet Client For Observing C&C Servers
#!/usr/bin/env python
#### TODO LIST ####
# on dissconnect put message "hes dead jim!"
# put child procs pid number into a global variable
# while no socket check and empty the queue
###################
import sys, os, random, time, socket, errno, thread, binascii, struct, unicodedata
try: