Skip to content

Instantly share code, notes, and snippets.

View mroberts91's full-sized avatar

Michael Robertson mroberts91

View GitHub Profile
const std = @import("std");
const net = std.net;
const Allocator = std.mem.Allocator;
pub const io_mode = .evented;
var client_id_counter: u32 = 0;
var should_server_close: bool = false;
pub fn main() !void {
@mroberts91
mroberts91 / smbloris.c
Created August 6, 2017 16:21 — forked from marcan/smbloris.c
SMBLoris attack proof of concept
/* 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