Skip to content

Commit

Permalink
Removing the part where the white list duplicated the black list, I h…
Browse files Browse the repository at this point in the history
…ear that is bad.
  • Loading branch information
Your full name committed Mar 19, 2012
1 parent f536b15 commit 9a2f5a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README
Expand Up @@ -5,12 +5,13 @@ Wharf Whacker is a Port knocking suite, it was designed to have the following fe
- Portable (you only need python and iptables installed)

It is going to have some other features
- Two-Factor Authentication.
- Logging

And currently has a few features that I don't like
- Not technically released yet
- Not finished
- It has a default password
- It has a default password, which you should change

The core code is all located in wharfwhacker.py, inside there you will find two classes that are what you will access most of the time when it comes to using WharfWhacker.
- WharfWhacker
Expand Down
2 changes: 1 addition & 1 deletion wharfwhacker.py
Expand Up @@ -45,7 +45,7 @@ def start(self):
for i in self.secured_ports:
self.add_iptable_rule("INPUT -p tcp --destination-port " + str(i) + " -j WharfWhacker")
#Take care of the white and black lists
for i in self.black_list:
for i in self.white_list:
self.add_iptable_rule("WharfWhacker -p tcp --source " + i.strip() + " -j ACCEPT")
for i in self.black_list:
self.add_iptable_rule("WharfWhacked -p udp --source " + i.strip() + " -j REJECT")
Expand Down

0 comments on commit 9a2f5a7

Please sign in to comment.