How to make a script in bash that:
- Based on this example url: link
- Select the 12620 folder.
- Open the index.html of this folder in a Firefox tab in Kali (Debian)
- Select folder 12620, add +1, getting 12621, and open index.html from that folder in a new tab.
- And so on.
I thought of something like:
FOLDER=12620
for (($FOLDER, $FOLDER =< 12660, $FOLDER++))
do
firefox -new-tab http://www.exemple.com/1/43530/.'$FOLDER'./index.html
done
I did in JavaScript, just wanted to switch to Bash and open in Firefox
<!DOCTYPE html>
<html>
<body>
<button onclick="abrirHTML()">Abrir</button>
<script>
function abrirHTML() {
var folder = 12690;
for (folder = 12690; folder < 12695; folder++) {
window.open("http://www.exemple.com/1/43530/" + folder + "/index.html");
}
}
</script>
</body>
</html>