This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <arpa/inet.h> | |
#include <sys/stat.h> | |
#include <sys/mman.h> | |
#include <string.h> | |
#include <stdio.h> | |
#include <unistd.h> | |
#include <fcntl.h> | |
#include <err.h> | |
typedef unsigned int uint; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main(void) | |
{ | |
char esc=033; | |
int i; | |
printf(" "); | |
for(i = 0; i < 16; i++) | |
printf(" %X", i % 16); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main(void) | |
{ | |
int i; | |
for(i = 30; i <= 37; i++) | |
printf("\033[0;%im-- 0:%i --\033[1;%im-- 1:%i --\033[0m\n", i, i, i, i); | |
for(i = 40; i <= 47; i++) | |
printf("\033[0;%im-- 0:%i --\033[1;%im-- 1:%i --\033[0m\n", i, i, i, i); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main(void) | |
{ | |
int i; | |
for(i = 30; i <= 37; i++) | |
printf("\033[0;%im-- 0:%i --\033[1;%im-- 1:%i --\033[0m\n", i, i, i, i); | |
for(i = 40; i <= 47; i++) | |
printf("\033[0;%im-- 0:%i --\033[1;%im-- 1:%i --\033[0m\n", i, i, i, i); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/net2/ifmon_netlink.c b/src/net2/ifmon_netlink.c | |
index c697af4..f61195d 100644 | |
--- a/src/net2/ifmon_netlink.c | |
+++ b/src/net2/ifmon_netlink.c | |
@@ -9,6 +9,7 @@ | |
#include <netlink/dump.h> | |
#include <string.h> | |
+#include <printf.h> | |
#include <util.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sysname=`uname` | |
case "$sysname" in | |
Darwin*) | |
nonl() { /bin/echo -n "$@"; } | |
;; | |
*) | |
nonl() { echo -n "$@"; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adduser | |
apt | |
base-files | |
base-passwd | |
bash | |
bsdutils | |
bzip2 | |
coreutils | |
dash | |
debconf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <inttypes.h> | |
#include <sys/time.h> | |
static char * | |
coolsize_f(off_t size) | |
{ | |
static const char * const U = "BKMGTPEZY"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Quick explanation of the KRACK bug and exploit | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
The announcement of the vulnerability caused a lot of discussion around | |
wpa_supplicant and WPA2, and since I'm coincidentally releasing my own | |
supplicant soon, I expect a lot of questions to be asked on this. | |
The initial announcement sadly did not provide much context for people | |
unfamiliar with the WPA2/RSN key exchange or the inner workings | |
of wpa_supplicant, and the patches were likely even more confusing. | |
Since I still have lots of it in mind, I'll try to provide some additional |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface Foo { | |
getstuff(); | |
} | |
class RealFoo implements Foo { | |
backend: Backend; | |
RealFoo(injectedBackend: Backend) { | |
backend = injectedBackend; | |
} |
NewerOlder