Skip to content

Instantly share code, notes, and snippets.

View curl_errors.go
var error_codes = []string{
"CURLE_OK",
"CURLE_UNSUPPORTED_PROTOCOL", /* 1 */
"CURLE_FAILED_INIT", /* 2 */
"CURLE_URL_MALFORMAT", /* 3 */
"CURLE_NOT_BUILT_IN", /* 4 - [was obsoleted in August 2007 for 7.17.0, reused in April 2011 for 7.21.5] */
"CURLE_COULDNT_RESOLVE_PROXY", /* 5 */
"CURLE_COULDNT_RESOLVE_HOST", /* 6 */
"CURLE_COULDNT_CONNECT", /* 7 */
"CURLE_WEIRD_SERVER_REPLY", /* 8 */
@DeadNumbers
DeadNumbers / imap-search
Created Dec 4, 2018 — forked from martinrusev/imap-search
IMAP Search criteria
View imap-search
@DeadNumbers
DeadNumbers / lz4_example.go
Created Aug 8, 2018
Golang example for compress file with LZ4
View lz4_example.go
package main
import (
"bytes"
"fmt"
"io/ioutil"
"log"
"os"
"runtime"
"time"
@DeadNumbers
DeadNumbers / whatcms.go
Created May 30, 2018
client for whatcms.org
View whatcms.go
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"log"
"net/http"
"net/url"
"os"
@DeadNumbers
DeadNumbers / mozlz4a.py
Created Jan 5, 2018 — forked from Tblue/mozlz4a.py
MozLz4a compression/decompression utility
View mozlz4a.py
#!/usr/bin/env python
#
# Decompressor/compressor for files in Mozilla's "mozLz4" format. Firefox uses this file format to
# compress e. g. bookmark backups (*.jsonlz4).
#
# This file format is in fact just plain LZ4 data with a custom header (magic number [8 bytes] and
# uncompressed file size [4 bytes, little endian]).
#
# This Python 3 script requires the LZ4 bindings for Python, see: https://pypi.python.org/pypi/lz4
#
@DeadNumbers
DeadNumbers / smbloris.c
Created Aug 3, 2017 — forked from marcan/smbloris.c
SMBLoris attack proof of concept
View smbloris.c
/* SMBLoris attack proof-of-concept
*
* Copyright 2017 Hector Martin "marcan" <marcan@marcan.st>
*
* Licensed under the terms of the 2-clause BSD license.
*
* This is a proof of concept of a publicly disclosed vulnerability.
* Please do not go around randomly DoSing people with it.
*
* Tips: do not use your local IP as source, or if you do, use iptables to block
@DeadNumbers
DeadNumbers / targa3.c
Created Jul 10, 2017 — forked from z0mbiehunt3r/targa3.c
targa3 is a DoS exploit that sends random IP packets with parameters known to cause crashes on various machines, and can be used to determine if a systems IP stack is really stable and crash-proof under unexpected conditions.
View targa3.c
/*
* targa3 - 1999 (c) Mixter <mixter@newyorkoffice.com>
*
* IP stack penetration tool / 'exploit generator'
* Sends combinations of uncommon IP packets to hosts
* to generate attacks using invalid fragmentation, protocol,
* packet size, header values, options, offsets, tcp segments,
* routing flags, and other unknown/unexpected packet values.
* Useful for testing IP stacks, routers, firewalls, NIDS,
* etc. for stability and reactions to unexpected packets.
@DeadNumbers
DeadNumbers / bang.c
Created Jul 10, 2017 — forked from z0mbiehunt3r/bang.c
TCP SYN Denial of Service Exploit (bang.c) (amp.)
View bang.c
/*
* BANG.C Coded by Sorcerer of DALnet
*
* FUCKZ to: etech, blazin, udp, hybrid and kdl
* PROPZ : skrilla, thanks for all your help with JUNO-Z and especially this code :)
* --------------------------------
* REDIRECTION DOS FINALLY DISTRIBUTED !!!!!!
*
* This is POC and demonstrates a new method of DoS. The idea
* behind it is that the attacker generates connection requests
@DeadNumbers
DeadNumbers / ssyn.c
Created Jul 10, 2017 — forked from z0mbiehunt3r/ssyn.c
Spoofed SYN by eKKiM - ssyn.c
View ssyn.c
/*
Spoofed SYN by eKKiM
Educational purpose only please.
Compile with
gcc syn.c -pthread
*/
#include <stdio.h>
#include <stdlib.h>
#include <netinet/tcp.h>
#include <netinet/ip.h>