Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #658

Merged
merged 4 commits into from
Feb 24, 2023
Merged

Dev #658

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions reconftw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -672,8 +672,7 @@ function sub_regex_permut(){
if { [ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]; } && [ "$SUBREGEXPERMUTE" = true ]; then
start_subfunc ${FUNCNAME[0]} "Running : Permutations by regex analysis"
cd "$tools/regulator" || { echo "Failed to cd directory in ${FUNCNAME[0]} @ line ${LINENO}"; exit 1; }
python3 main.py $domain ${dir}/subdomains/subdomains.txt $dir/.tmp/${domain}.rules
./make_brute_list.sh ${dir}/.tmp/${domain}.rules ${dir}/.tmp/${domain}.brute
python3 main.py -t $domain -f ${dir}/subdomains/subdomains.txt -o ${dir}/.tmp/${domain}.brute
cd "$dir" || { echo "Failed to cd to $dir in ${FUNCNAME[0]} @ line ${LINENO}"; exit 1; }

if [ ! "$AXIOM" = true ]; then
Expand Down Expand Up @@ -1931,15 +1930,15 @@ function webcache(){
###############################################################################################################

function deleteOutScoped(){
if [ -z "$1" ]; then
if [ ! -z "$1" ]; then
cat $1 | while read outscoped
do
if grep -q "^[*]" <<< $outscoped
if grep -q "^[*]" <<< $outscoped
then
outscoped="${outscoped:1}"
sed -i /"$outscoped$"/d $2
sed -i /"$outscoped$"/d $2
else
sed -i /$outscoped/d $2
sed -i /$outscoped/d $2
fi
done
fi
Expand Down