mirror of
https://github.com/byt3bl33d3r/MITMf.git
synced 2025-08-21 05:53:30 -07:00
second implementation of the HTTP server, you can now define shares for the SMB server in the config file, added an option to switch between the normal SMB server and the Karma version.
removed some useless code (left over from the responder plugin), serverResponseStatus hook now returns a dict (tuple was causing errors)
This commit is contained in:
parent
e985d42a8a
commit
14580f1589
14 changed files with 806 additions and 920 deletions
|
@ -1,16 +1,10 @@
|
|||
#
|
||||
#MITMf configuration file
|
||||
# MITMf configuration file
|
||||
#
|
||||
|
||||
[MITMf]
|
||||
|
||||
#
|
||||
#here you can set the arguments to pass to MITMf when it starts so all you need to do is run `python mitmf.py`
|
||||
#(assuming you config file is in the default directory)
|
||||
#
|
||||
args=''
|
||||
|
||||
#Required BeEF and Metasploit options
|
||||
# Required BeEF and Metasploit options
|
||||
[[BeEF]]
|
||||
beefip = 127.0.0.1
|
||||
beefport = 3000
|
||||
|
@ -19,37 +13,86 @@
|
|||
|
||||
[[Metasploit]]
|
||||
|
||||
msfport = 8080 #Port to start Metasploit's webserver on that will host exploits
|
||||
msfport = 8080 # Port to start Metasploit's webserver on that will host exploits
|
||||
rpcip = 127.0.0.1
|
||||
rpcpass = abc123
|
||||
|
||||
[[SMB]]
|
||||
|
||||
#
|
||||
#Here you can configure MITMf's internal SMB server
|
||||
# Here you can configure MITMf's internal SMB server
|
||||
#
|
||||
|
||||
#Set a custom challenge
|
||||
port = 445
|
||||
type = karma # Can be set to Normal or Karma
|
||||
|
||||
# Set a custom challenge
|
||||
Challenge = 1122334455667788
|
||||
|
||||
[[[Shares]]] # Only parsed if type = Normal
|
||||
|
||||
#
|
||||
# You can define shares here
|
||||
#
|
||||
|
||||
# [[[[Share1]]]] #Share name
|
||||
# readonly = yes #Be very careful if you set this to no!
|
||||
# path = /tmp #Share path
|
||||
|
||||
# [[[[Share2]]]]
|
||||
# readonly = yes
|
||||
# path = /tmp
|
||||
|
||||
[[[Karma]]] # Only parsed if type = Karma
|
||||
|
||||
#
|
||||
# Here you can configure the Karma-SMB server
|
||||
#
|
||||
|
||||
defaultfile = '' #Path to the file to serve if the requested extension is not specified below (don't comment out)
|
||||
|
||||
# exe = /tmp/evil.exe
|
||||
# dll = /tmp/evil.dll
|
||||
# ini = /tmp/desktop.ini
|
||||
# bat = /tmp/evil.bat
|
||||
|
||||
[[HTTP]]
|
||||
|
||||
#
|
||||
# Here you can configure MITMf's internal HTTP server
|
||||
#
|
||||
|
||||
port = 80
|
||||
|
||||
[[[Paths]]]
|
||||
|
||||
#
|
||||
# Here you can define the content to deliver
|
||||
#
|
||||
|
||||
# Format is urlpath = filesystem path (urlpath can be a regular expression)
|
||||
|
||||
# ".*" = "/var/www"
|
||||
# "/test" = "/var/www2"
|
||||
|
||||
[[DNS]]
|
||||
|
||||
#
|
||||
#Here you can configure MITMf's internal DNS server
|
||||
# Here you can configure MITMf's internal DNS server
|
||||
#
|
||||
|
||||
tcp = Off #Use the TCP DNS proxy instead of the default UDP (not fully tested, might break stuff!)
|
||||
port = 53 #Port to listen on
|
||||
ipv6 = Off #Run in IPv6 mode (not fully tested, might break stuff!)
|
||||
tcp = Off # Use the TCP DNS proxy instead of the default UDP (not fully tested, might break stuff!)
|
||||
port = 53 # Port to listen on
|
||||
ipv6 = Off # Run in IPv6 mode (not fully tested, might break stuff!)
|
||||
|
||||
#
|
||||
#Supported formats are 8.8.8.8#53 or 4.2.2.1#53#tcp or 2001:4860:4860::8888
|
||||
#can also be a comma seperated list e.g 8.8.8.8,8.8.4.4
|
||||
# Supported formats are 8.8.8.8#53 or 4.2.2.1#53#tcp or 2001:4860:4860::8888
|
||||
# can also be a comma seperated list e.g 8.8.8.8,8.8.4.4
|
||||
#
|
||||
nameservers = 8.8.8.8
|
||||
|
||||
[[[A]]] # Queries for IPv4 address records
|
||||
*.thesprawls.org=192.0.2.1
|
||||
*.thesprawls.org=192.168.178.27
|
||||
|
||||
[[[AAAA]]] # Queries for IPv6 address records
|
||||
*.thesprawl.org=2001:db8::1
|
||||
|
@ -85,7 +128,7 @@
|
|||
*.thesprawl.org=A 5 3 86400 20030322173103 20030220173103 2642 thesprawl.org. oJB1W6WNGv+ldvQ3WDG0MQkg5IEhjRip8WTrPYGv07h108dUKGMeDPKijVCHX3DDKdfb+v6oB9wfuh3DTJXUAfI/M0zmO/zz8bW0Rznl8O3tGNazPwQKkRN20XPXV6nwwfoXmJQbsLNrLfkGJ5D6fwFm8nN+6pBzeDQfsS3Ap3o=
|
||||
|
||||
#
|
||||
#Plugin configuration starts here
|
||||
# Plugin configuration starts here
|
||||
#
|
||||
|
||||
[Spoof]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue