-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathresponder_config.sh
executable file
·35 lines (28 loc) · 1.32 KB
/
responder_config.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
# Copyright 2024 Secureworks
#
# 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,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Technique discovered by Nevada Romsdahl in 2023
# Path for responder config, below is default for Kali and Parrot, change if needed
CONFIG_PATH=/usr/share/responder/Responder.conf
# Path for responder files, below is default for Kali and Parrot, change if needed
FILES_PATH=/usr/share/responder/files/
# Make a backup of the original config
cp $CONFIG_PATH $CONFIG_PATH.bak
echo "Backup created at " $CONFIG_PATH.bak
#Copy our 302.html into the Responder Files directory
cp ./302.html $FILES_PATH
# Change the config to point to our 302.html file locally
sed -i 's/HtmlFilename\ \=\ files\/AccessDenied.html/HtmlFilename\ \=\ files\/302.html/g' $CONFIG_PATH
# Change the config to serve HTML
sed -i 's/Serve\-Html\ \=\ Off/Serve\-Html\ \=\ On/g' $CONFIG_PATH