Skip to content

Instantly share code, notes, and snippets.

View John-Lin's full-sized avatar
👋
hi

Che-Wei Lin John-Lin

👋
hi
View GitHub Profile
@John-Lin
John-Lin / testing_log.txt
Created April 9, 2014 02:59
testing log from OFTest
-------- Testing basic.EchoWithData --------
WARNING: No route found for IPv6 destination :: (no default route?)
basic.EchoWithData ... ok
----------------------------------------------------------------------
Ran 1 test in 0.540s
OK
@John-Lin
John-Lin / iii_a.py
Last active August 29, 2015 14:05
Temp
class iii_b():
def iii_c(self):
print "Hello_c"
@John-Lin
John-Lin / main.py
Created August 12, 2014 07:21
TempMain
import iii_a
instance = iii_a.iii_b()
instance.iii_c()
> 1. why not just using Pull Request, i think it's more convenient than email
> the patch
>
> PR is open and anyone logged in GitHub can see it and leave comments for it
> or discussion.
I think that it's matter of taste. Linux kernel, one of the biggest
and most successful OSS projects, uses a way to email patches. I don't
think that there is the _best_ development process for everyone.
import os
import sys
import time
import socket
import logging
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
SOCKFILE = "/tmp/snort_alert"
@John-Lin
John-Lin / honeyd.conf
Last active August 29, 2015 14:06
honyd configuration
create default
set default default tcp action block
set default default udp action block
set default default icmp action block
@John-Lin
John-Lin / interfaces
Last active August 29, 2015 14:06
Raspberry Pi /etc/network/interfaces
root@kali:~# vim /etc/network/interfaces
auto lo
iface lo inet loopback
# For eth0 dhcp
# auto eth0
# iface eth0 inet dhcp
# For eth0 static IP
auto eth0
@John-Lin
John-Lin / moocs.py
Last active August 29, 2015 14:10
Moocs
import csv
def get_mail_list(fileobj):
mail_list = []
for row in csv.reader(fileobj):
if row[1] != '':
mail_list.append(row[1])
fileobj.close()
return mail_list
@John-Lin
John-Lin / EventOFPPortStatus
Created March 25, 2015 14:40
EventOFPPortStatus
# Copyright (C) 2011 Nippon Telegraph and Telephone Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@John-Lin
John-Lin / pyew_note
Last active August 29, 2015 14:17
A Python tool for static malware analysis
pynew download: https://code.google.com/p/pyew/downloads/list
TypicalProblems problem:
https://code.google.com/p/pyew/wiki/TypicalProblems
1. PEFILE: global name 'Decode32Bits' is not defined
Slove: https://github.com/kbandla/distorm64
X86組合語言/基本指令集