This repository has been archived by the owner on Aug 28, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
byt3bl33d3r
committed
Aug 23, 2015
1 parent
27c28e5
commit db5b65c
Showing
2 changed files
with
17 additions
and
5 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
# | ||
|
||
[MITMf] | ||
|
||
# Required BeEF and Metasploit options | ||
[[BeEF]] | ||
host = 127.0.0.1 | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,23 @@ | ||
import unittest | ||
from commands import getstatusoutput | ||
import logging | ||
|
||
class BasicTests(unittest.TestCase): | ||
|
||
def test_exec(self): | ||
status, res = getstatusoutput('sudo python mitmf.py --help') | ||
self.assertEqual(0, status, msg=res) | ||
def test_configfile(self): | ||
from configobj import ConfigObj | ||
config = ConfigObj('config/mitmf.conf') | ||
|
||
def test_logger(self): | ||
from core.logger import logger | ||
logger.log_level = logging.DEBUG | ||
formatter = logging.Formatter("%(asctime)s [unittest] %(message)s", datefmt="%Y-%m-%d %H:%M:%S") | ||
log = logger().setup_logger("unittest", formatter) | ||
|
||
def test_DNSChef(self): | ||
from core.logger import logger | ||
logger.log_level = logging.DEBUG | ||
from core.servers.DNS import DNSChef | ||
DNSChef().start() | ||
|
||
if __name__ == '__main__': | ||
unittest.main() |