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
-------- Testing basic.EchoWithData -------- | |
WARNING: No route found for IPv6 destination :: (no default route?) | |
basic.EchoWithData ... ok | |
---------------------------------------------------------------------- | |
Ran 1 test in 0.540s | |
OK |
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
class iii_b(): | |
def iii_c(self): | |
print "Hello_c" |
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
import iii_a | |
instance = iii_a.iii_b() | |
instance.iii_c() |
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
> 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. |
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
#-------------------------------------------------- | |
# VRT Rule Packages Snort.conf | |
# | |
# For more information visit us at: | |
# http://www.snort.org Snort Website | |
# http://vrt-blog.snort.org/ Sourcefire VRT Blog | |
# | |
# Mailing list Contact: [email protected] | |
# False Positive reports: [email protected] | |
# Snort bugs: [email protected] |
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
import os | |
import sys | |
import time | |
import socket | |
import logging | |
logging.basicConfig(level=logging.INFO) | |
logger = logging.getLogger(__name__) | |
SOCKFILE = "/tmp/snort_alert" |
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
create default | |
set default default tcp action block | |
set default default udp action block | |
set default default icmp action block | |
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
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 |
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
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 |
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
# 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, |
OlderNewer