Skip to content

Instantly share code, notes, and snippets.

View Congee's full-sized avatar
🤔
Focus

Changsheng Wu Congee

🤔
Focus
View GitHub Profile
@Congee
Congee / conv_2_utf8.py
Last active August 29, 2015 14:00
convert 2 utf-8
#!/usr/bin/env python3
# encoding: utf-8
import os
import sys
#import chardet
dir = sys.argv[1]
#def convert(source_file):
@Congee
Congee / gets()
Created March 14, 2014 06:24
Dangerous function gets() in C89, c99's <stdio.h>
#include <stdio.h>
int main(void) {
char a[] = "ABCD";
char b[] = "BCDE";
char c[] = "CDEF";
puts(a);
puts(b);
puts(c);
@Congee
Congee / nikto.rb
Last active August 29, 2015 13:57
nikto 2.1.5 for Mac OS X via Homebrew
require 'formula'
class Nikto < Formula
homepage 'http://cirt.net/nikto2'
url 'https://github.com/sullo/nikto.git', :revision => '8bb017d76e592793da3c06cdbb8d31bfdffdf2eb'
version '2.1.5'
# version 2.1.6 is still under developing
def install
# adjust default paths in perl script