yaig

yaig Commit Details


Date:2016-04-14 21:40:44 (8 years 8 months ago)
Author:Natalie Adams
Branch:master
Commit:95defa8cfdc42888f8946f1e45f5c61ddf7c54b5
Parents: 120a432263155e31854301e7de9b3e752cb70610
Message:updating sample and engine

Changes:

File differences

sample.txt
1111
1212
1313
14
14
1515
16
16
17
18
object shodan-io2
object shodan-io3
server group shodan drop
server object local accept
server object local accept
server proto 25 drop
server proto 842 drop
yaig.py
173173
174174
175175
176
176
177177
178178
179179
......
193193
194194
195195
196
196
197197
198198
199199
for ip in getIPsInGroup(rule.source.value):
generated_ruleset.append(ruletpl % (iface, ip, action, rule))
elif rule.source.object_type == TYPES.PROTO:
generated_ruleset.append("-A INPUT -i %s -p %s -j %s -m comment --comment \"%s\"" % (iface, rule.source.value, action, rule))
generated_ruleset.append("-A INPUT -i %s -p tcp --destination-port %s -j %s -m comment --comment \"%s\"" % (iface, rule.source.value, action, rule))
for rule in global_defs:
if rule.direction == NET_DIRECTION.SERVER:
for ip in getIPsInGroup(rule.source.value):
generated_ruleset.append(ruletpl % (ip, action, rule))
elif rule.source.object_type == TYPES.PROTO:
generated_ruleset.append("-A INPUT -i %s -p %s -j %s -m comment --comment \"%s\"" % (rule.source.value, action, rule))
generated_ruleset.append("-A INPUT -p tcp --destination-port %s -j %s -m comment --comment \"%s\"" % (rule.source.value, action, rule))
for rule in generated_ruleset:
print rule

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.06704s using 14 queries.