This file contains hidden or 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 <stdlib.h> | |
#include <string.h> | |
#include "csapp.c" | |
void echo(int connfd) | |
{ | |
size_t n; | |
char buf[MAXLINE]; | |
rio_t rio; |
This file contains hidden or 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
#!/usr/bin/env python2.7 | |
import urllib2 | |
for line in open('/usr/share/dict/cracklib-small','rb'): | |
try: | |
urllib2.urlopen('https://github.com/'+line.replace('\n','')) | |
except urllib2.HTTPError as e: | |
if e.code == 404: | |
print line.replace('\n','') |